post https://api.sandbox.midtrans.com/v1/subscriptions//disable
Disable a customer's subscription account with a specific subscription_id
so that the customer is not charged for the subscription in the future. Successful request returns status_message
indicating that the subscription details are updated.
Note
Disable subscription does not stop any pending retries on subscription. Pending retry is caused by failure on previous subscription payment. Any pending retries will still be executed after subscription is disabled for trying to resolve previous pending payments.
To disable subscription and stop all pending retries, you can use Cancel Subscription instead.
Disable Subscription Method
HTTP Method | Endpoint | Description |
---|---|---|
POST | BASE_URL/v1/subscriptions/{subscription_id} /disable | Disable subscription |
Disable Subscription Response
{
"status_message": "Subscription is updated."
}
{
"status_message": "Subscription doesn't exist."
}
{
"status_message": "Sorry, our system is recovering from unexpected issues. Please retry."
}
JSON Attribute | Description | Type |
---|---|---|
status_message | Message describing the status of the result of API request. | String |