Reactivate subscription
PATCH
/v1/subscriptions/{id}/activate
Reactivates a paused or canceled subscription. Requires no body. Returns the updated details.
- Paused: resumes the recurring charges.
- Canceled due to payment failure: the outstanding charge is
made immediately. For cards, the charge goes to the saved card; if approved,
the subscription goes back to
ACTIVEand the next charge is rescheduled. If the card network declines, the response is402and the subscription stays canceled. To try another card, use Change payment method. For PIX, a new PIX is generated for the outstanding charge and the subscription goes back toACTIVEimmediately; the payment follows the normal PIX flow. - Canceled by the customer or by the store: goes back to
ACTIVEwith no immediate charge. If the next charge date has not arrived yet, it is kept; if it has passed, the charge goes into the next charge run, within one hour.
The can_reactivate field of the
subscription details
tells whether the canceled subscription can be reactivated. Subscriptions canceled
by the Appmax team (for example, duplicates) cannot be reactivated, nor
can those of a customer who already has another active, overdue or
suspended subscription in the store: in those cases the response is 400.
Authorizations
bearerAuth
Bearer token of the merchant obtained via POST /oauth2/token using the
merchant's credentials (not the app's). See
Authentication.
Type
HTTP (bearer)
Parameters
Path Parameters
id*
Subscription identifier.
Type
Requiredinteger
Example
10Responses
Subscription reactivated. Returns the updated details.
application/json
JSON "data": { "subscription_id": 10, "status": "ACTIVE", "paused_from": null, "paused_until": null }
{
}
PATCH
/v1/subscriptions/{id}/activate