cURL
curl --request POST \ --url https://api.xpaycheckout.com/payments/cancel/{xIntentId} \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "xIntentId": "in_fooBOwYsaK50AEfK" } '
{ "errorCode": "bad_request", "errorDescription": "Failed to read request" }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Cancel Payment
Unique identifier of the payment
"in_fooBOwYsaK50AEfK"
Cancel Payment response
Was this page helpful?