Cancelar uma assinatura
Changed onCancela imediatamente uma assinatura ativa.
A assinatura passa para o status CANCELLED e nenhuma cobrança futura será gerada. Esta operação é irreversível.
Request
- Base URLhttps://api.abacatepay.com/v2
- URLhttps://api.abacatepay.com/v2/subscriptions/cancel
- AuthHTTP bearer
Request body
Example request
{
"id": "subs_abc123xyz"
}Response
Assinatura cancelada com sucesso.
Example response
{
"data": {
"id": "subs_abc123xyz",
"checkoutId": "bill_abc123xyz",
"customerId": "cust_abc123xyz",
"amount": 10000,
"status": "ACTIVE",
"method": "CARD",
"coupons": [],
"retryPolicy": {
"maxRetry": 3,
"retryEvery": 1
},
"createdAt": "2024-11-04T18:38:28.573Z",
"updatedAt": "2024-11-04T18:38:28.573Z"
},
"success": true
}Changes
- breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - info
removed the
EXPIREDenum value from the/response property for the response status - info
removed the
FAILEDenum value from the/response property for the response status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status
- breaking