Listar assinaturas
Changed onRetorna as assinaturas (subs_...) da sua loja, com paginação por cursor.
A assinatura só existe depois que o cliente paga o checkout de assinatura. Para listar os checkouts de assinatura (bill_...), inclusive os que ainda não foram pagos, use GET /subscriptions/checkouts/list.
Cada assinatura traz o checkoutId do checkout que a originou. Um mesmo checkout pode gerar várias assinaturas, uma por cliente que o pagou; use o filtro checkoutId para encontrá-las.
Request
- Base URLhttps://api.abacatepay.com/v2
- URLhttps://api.abacatepay.com/v2/subscriptions/list
- AuthHTTP bearer
Query parameters
Cursor para buscar itens após este ponto (use o publicId retornado em pagination.next).
Cursor para buscar itens antes deste ponto (use o publicId retornado em pagination.before).
Quantidade de itens por página (1-100).
Filtra registros criados a partir desta data (inclusive). Formato YYYY-MM-DD. O intervalo é interpretado no fuso horário America/Sao_Paulo (00:00 do dia inicial).
Filtra registros criados até esta data (inclusive). Formato YYYY-MM-DD. O intervalo é interpretado no fuso horário America/Sao_Paulo (23:59:59.999 do dia final).
Filtrar por status da assinatura
Filtrar pelo checkout de assinatura que originou a assinatura. Um checkout inexistente retorna lista vazia.
Response
Lista de assinaturas retornada 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 enum value
EXPIREDfrom thequeryrequest parameterstatus - breaking
removed the enum value
PAIDfrom thequeryrequest parameterstatus - breaking
removed the enum value
PENDINGfrom thequeryrequest parameterstatus - breaking
removed the enum value
REFUNDEDfrom thequeryrequest parameterstatus - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
added the new
ACTIVEenum value to the//response property for the response status - info
added the new optional
queryrequest parametercheckoutId - info
added the new enum value
ACTIVEto thequeryrequest parameterstatus - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
removed the
EXPIREDenum value from the//response property for the response status - info
removed the
PAIDenum value from the//response property for the response status - info
removed the
REFUNDEDenum 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
- warning
deleted the
queryrequest parameteremail - warning
deleted the
queryrequest parameterexternalId - warning
deleted the
queryrequest parameterid - warning
deleted the
queryrequest parametertaxId
- warning