Skip to main content
POST

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password. Use your client_id as the username and your secret as the password value.

Body

application/json

The input parameters required for cancelling a subscription or bill on a merchant account.

external_user_id
string
required

Your unique identifier for the user.

Example:

"abc"

merchant_id
integer
required

The unique ID of the merchant whose linked account the subscription is cancelled on.

Example:

18

simulate

The cancellation attempt fails and triggers the CANCELLATION_FAILED webhook. Requires exactly one cancellable subscription on the merchant account; otherwise the matching CANCELLABLE_SUBSCRIPTION_NOT_FOUND or MULTIPLE_CANCELLABLE_SUBSCRIPTIONS_FOUND error is returned instead.

Allowed value: "failed"
Example:

"failed"

Response

Cancellation request accepted.

message
string
Example:

"Success"