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.
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 |