post https://api.sandbox.midtrans.com/v1/subscriptions//enable
Activate a customer's subscription account with a specific subscription_id
, so that the customer can start paying for the subscription immediately. Successful request returns status_message
indicating that the subscription details are updated.
Enable Subscription Method
HTTP Method | Endpoint | Description |
---|---|---|
POST | BASE_URL/v1/subscriptions/{subscription_id} /enable | Enable subscription |
Enable 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 | Status message describing the result of the API request. | String |