Skip to main content

orderPaymentStatus

Requires a customer (portal or buyer app) session.

Returns the live payment status for an order. Scoped to the authenticated buyer — another buyer's order returns not-found.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query OrderPaymentStatus($orderId: ID!) {
orderPaymentStatus(orderId: $orderId) {
errorCode
status
errorMessage
orderId
orderStatus
}
}

Variables:

{
"orderId": "id"
}

Response:

{
"data": {
"orderPaymentStatus": {
"errorCode": "string",
"status": "CANCELLED",
"errorMessage": "string",
"orderId": "id",
"orderStatus": "string"
}
}
}
orderPaymentStatus(
orderId: ID!
): MobileOrderPaymentStatus!

Arguments​

orderPaymentStatus.orderId ● ID! non-null scalar​

The ID of the order.

Type​

MobileOrderPaymentStatus object​

Live payment status for an order: combines order status + latest transaction status.