Skip to main content
POST
/
api
/
v1
/
order
/
cancel
Order cancel
curl --request POST \
  --url https://www.waffo.com/api/v1/order/cancel \
  --header 'Content-Type: application/json' \
  --data '
{
  "merchantId": 1000000201,
  "orderRequestedAt": "2023-11-07T05:31:56Z",
  "paymentRequestId": "<string>",
  "acquiringOrderId": "<acquiringOrderId>"
}
'
{
  "code": "<string>",
  "msg": "<string>",
  "data": {
    "paymentRequestId": "<string>",
    "merchantOrderId": "<string>",
    "acquiringOrderId": "<string>",
    "orderStatus": "ORDER_CLOSE"
  }
}

Body

application/json
merchantId
string
default:1000000201
required

Merchant Id assigned by Waffo

Maximum string length: 64
Example:

1000000201

orderRequestedAt
string<date-time>
required

Merchant-side cancel request time

paymentRequestId
string

Payment request id sent from Merchant. It will also be used for idempotent check. (provide paymentRequestId or acquirerOrderId)

Maximum string length: 32
acquiringOrderId
string

Waffo acquiring order Id
(provide paymentRequestId or acquirerOrderId)

Maximum string length: 32
Example:

"<acquiringOrderId>"

Response

200 - */*

OK

response data

code
string
msg
string
data
object