Cancel
Cancel an active subscription. No further payments will be collected.
Cancel subscription
PATCH https://api.stage.localpayment.com/api/payin/subscriptions/:externalId/status
Path Parameters
Name
Type
Description
id*
string
Subscription External ID as returned by POST method
Headers
Name
Type
Description
Authorization*
string
JWT token in format Bearer eyJ0... . For more information about authentication, please refer to Authentication.
Request Body
Name
Type
Description
status*
string
Fixed value: CANCEL
{
"externalId": "1623451995",
"subscriptionId": "498e4a08-13a8-405e-96a5-eccb44345ada",
"status": {
"code": "903",
"description": "CANCELLED",
"detail": "The subscription was canceled - merchant request"
}
}{
"status": {
"code": "400",
"description": "ERROR",
"detail": "Invalid operation"
}
}{
"status": {
"code": "404",
"description": "ERROR",
"detail": "Subscription not found"
}
}Last updated
Was this helpful?