You can cancel a membership in the Vendo database using the cancel subscription API. The membership is cancelled, and the delUser postback is sent when the subscription expires and not when 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.