Cancels one or more active subscriptions for the user and device.
Authentication
This endpoint requires Signature Authentication .
When cancelling subscriptions, the signature must be generated using the sorted, comma-separated list of subscription IDs as the additionalData parameter.
Endpoint
Method Path Description DELETE/subscriptionCancels one or more active subscriptions for the user and device
Current Unix timestamp (seconds)
HMAC-SHA256 signature (see authentication note above)
Request Body
The unique identifier of the user whose subscriptions are being cancelled.
The unique identifier of the device.
The unique identifier for your application.
An array of subscription ID strings to cancel.
{
"userId" : "user_123456" ,
"deviceId" : "device_abc123def456" ,
"appId" : "app_xyz789" ,
"subscriptionIds" : [ "sub_111111" , "sub_222222" ]
}
Response
Indicates if the cancellation was successful.
Error message if the request failed.
Success
Error
Authentication Error
HTTP Status Codes
Status Meaning When 200Success Subscription cancelled successfully 400Bad Request Invalid subscription IDs or missing required fields 401Unauthorized Missing or invalid signature 403Forbidden Invalid app ID or user does not own the subscriptions 404Not Found No valid subscriptions found for the specified IDs 500Server Error Internal error occurred
HMAC-SHA256 signature of the request.
Subscription cancelled successfully