/
/CHECKOUT - V2
DocsSign in
Sign in
  • APIs
  • Generators
  • Stacks
  • Projects
  • Docs
  • History
  • Schema
Checked 1mo ago · Updated 1mo ago
  • postCreate Session
  • postCreate Session - Subscription
  • post/payment-intent/api/v2/direct/session/saveCard
  • postCreate Quick Payment Invoice
  • getFetch All or Search Payment invoices
  • putUpdate Payment invoice
  • postCreate Payment Invoice
  • getFetch Payment Invoice Details
  • deleteDelete Payment invoice
  • postSend Payment Invoice by Email
  • postSend Payment Invoice by SMS
  • postApple Pay Direct API
  • postInitiate Authentication
  • postAuthenticate Payer
  • postPay
  • postMerchant Initiated Transactions
  • postCapture Transaction
  • postVoid Payment
  • postRefund - Full or Partial
  • postCancel Order
  • getFetch all or Search Transactions or Orders
  • getFetch Transaction or Order
  • getRetrieve Token
  • deleteDelete Token
  • getFetch Transaction or Order by Merchant Reference Id
  • postCreate QR Code
  • postRequest to Pay

Cancel Order

post/pgw/api/v1/direct/cancel

Request body

orderIdstring required

Unique ID for the order.

reason'CancelledByUser' | 'TimedOut' | 'TimedOutOn3DS'

Reason for cancellation of order

Response

200

orderIdstring
reasonstring

Example response

{
  "orderId": "10f76592-a9cf-497d-a8a2-08db0d953e54",
  "reason": "Cancelled By User"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.