Cancel an invoice
POST/checkout/cancel
Use this API to cancel a payment invoice from the POS system. A canceled invoice cannot be paid. Paid invoices cannot be canceled.
Request
Header Parameters
Authorization stringrequired
Send client_secret as a Bearer token
- application/json
Body
required
The entityId (client_id) and client_secret will be provided when registering as a merchant.
checkoutId stringrequired
Checkout ID
Responses
- 200
Request Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
code stringrequired
Possible values: [0
, 1
]
Request status
description stringrequired
Possible values: [SUCCESS
, UNSUCCESS
, USER_PAYMENT_VERIFICATION_FAILED
, RISK_REJECT
, REGULATION_RESTRICTION
, PROCESS_FAIL
]
Status information
message string
Алдааны мэдээлэл
[
{
"code": 1,
"description": "SUCCESS, PROCESS_FAIL,UNSUCCESS etc.",
"message": "invalid or missing entityId parameter"
}
]
Loading...