Cancel a subscription
POST
/v1/cancelsubscription
The contract that you've created are still charged at the end of the period, unless manually canceled.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test.your-api-server.com/v1/cancelsubscription' \
--header 'Content-Type: application/xml' \
--data-raw '{
"merchant_id": "1018001",
"account_id": "1018001003",
"recurring_id": "Recurring_123456778",
"contract_name": "Recurring Order",
"encryption_data": "dd7272885fd236dfb8962292b70cfa89e4f17cd509dc822d87de60bdc4e385f7"
}'
Response Response Example
{
"merchant_id": "1018001",
"account_id": "1018001003",
"recurring_id": "Recurring_123456778",
"contract_name": "Recurring Order",
"cancel_status": "1",
"error_message": "",
"encryption_data": "dd7272885fd236dfb8962292b70cfa89e4f17cd509dc822d87de60bdc4e385f7"
}
Request
Body Params application/xml