You can cancel a subscription using the Cancel Subscription API. The subscription will be canceled at the end of its current billing period, and the delUser postback will be sent when the subscription expires, not at the time the API is called.

On successful cancellation, a response 5915 is returned (Subscription successfully cancelled.), otherwise the API returns one of the following errors:

Response codeDescription
5909An exception occurred in the API.
5910Mandatory parameters missing.
5911Merchant-ID is invalid
5912Subscription-ID is invalid.
5913Subscription already cancelled.
5914AuthToken is incorrect.
5915Subscription successfully cancelled.
5916Subscription cancellation failed.
5917Reason ID is invalid.
Language