cURL
curl --request POST \ --url https://api.xpaycheckout.com/subscription/merchant/cancel \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "subscriptionId": "sub_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 Subscription
Unique identifier of the subscription
"sub_fooBOwYsaK50AEfK"
Cancel Subscription response
Was this page helpful?