Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. The contract that you've created are still charged at the end of the period, unless manually canceled. The canceled Subscription object. Its subscription status will be set to Inactived.
Request Body Params application/xml
{
"merchant_id": "1018001",
"account_id": "1018001003",
"recurring_id": "Recurring_123456778",
"contract_name": "Recurring Order",
"encryption_data": "dd7272885fd236dfb8962292b70cfa89e4f17cd509dc822d87de60bdc4e385f7"
}
Request samples curl --location --request POST 'https://test-api.sufupayment.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"
}'
Responses application/json Generate Code
{
"merchant_id" : "1018001" ,
"account_id" : "1018001003" ,
"recurring_id" : "Recurring_123456778" ,
"contract_name" : "Recurring Order" ,
"cancel_status" : "1" ,
"error_message" : "" ,
"encryption_data" : "dd7272885fd236dfb8962292b70cfa89e4f17cd509dc822d87de60bdc4e385f7"
}
Modified at 2025-07-08 10:16:25