Cancel Payment
PUT/v1/payments/:paymentId
Click on Send API Request after entering the required data, to o cancel a barcode/payment. You must include the status parameter set to CANCELLED in body.
Note: This is applicable to Paysafecash payment method. You can cancel a barcode/payment only if the Payment is in PROCESSING.
Request
Path Parameters
This is the ID returned in the response of the Payments request.
Header Parameters
Possible values: [EXTERNAL
, INTERNAL
]
Default value: EXTERNAL
Possible values: [application/json
]
- application/json
Body
Cancel Payment
Possible values: [CANCELLED
]
This is the status of the cancel request.
Responses
- 200
OK
Response Headers
Content-Type
string
- application/json
- Schema
- Example (from schema)
- Cancel Payment
Schema
This is the ID returned in the response. This ID can be used for future associated requests, for example, to look up the Payment.
This is the date and time the transaction was processed.
Possible values: [CANCELLED
]
This is the status of the cancel request.
{
"id": "string",
"txnTime": "2024-11-08T11:57:08.147Z",
"status": "CANCELLED"
}
{
"id": "920e9e36-4234-40e6-8c94-43296eb60fe2",
"txnTime": "2023-01-10T12:57:22Z",
"status": "CANCELLED"
}