Admin API / Mutations

cancelUnpaidOrder

Cancels an unpaid, off-platform order and releases its reserved inventory. A repeat on a cancelled order succeeds and changes nothing. Returns OrderNotFoundError when the caller cannot read the order, and UnauthorizedError with requiredRole: null when the caller can read the order but its seller is not the caller and not the owner of a store that the caller staffs. A caller below the SELLER role who has open seller obligations cancels only their own orders with open obligations. While that caller has another open obligation, they can also repeat the request on an order that they cancelled.

Requires a client key with one of these scopes: admin:orders:settleRequires this member role or higher: SELLER A member below this role, or an inactive member, who has outstanding seller obligations can also call it.
cancelUnpaidOrder(
  input: CancelUnpaidOrderInput!
): CancelUnpaidOrderPayload!

Arguments

ArgumentTypeDescription
inputCancelUnpaidOrderInput!The order to cancel.

Return type

CancelUnpaidOrderPayload!