Cancel SuperPay payment
POST/orders/:guid/payments/superpay/cancel
Cancels SuperPay on the order and records how you will pay the carrier instead. method and
terms accept the same values as payment.method and payment.terms in the Orders API,
except superpay and 1_3_days, and must form a valid pair.
If funds were collected, the refund starts automatically; watch refund.status until completed.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 410
- 429
The updated payment
VALIDATION_ERROR: method or terms is missing or unknown, or the pair is not one the Orders API accepts together.
Not authenticated
Forbidden
ORDER_NOT_FOUND: no such order, or the order is not yours.
The payment state does not allow a cancel. Codes include:
PAYMENT_NOT_INITIALIZED: there is no payment record yet.PAYMENT_ALREADY_PAID: the carrier is already paid.PAYOUT_ALREADY_STARTED: funds are moving to the carrier.PAYMENT_CANCELED: the payment is already canceled.
ORDER_IS_DELETED: the order is deleted
CONCURRENT_REQUEST: another write on this order is in flight. Retry after a few seconds.