Criar um link de pagamento
Changed onCria um link de pagamento (checkout com frequency MULTIPLE_PAYMENTS). Vários clientes podem pagar o mesmo link; não suporta customerId.
post/payment-links/create
Request
- Base URLhttps://api.abacatepay.com/v2
- URLhttps://api.abacatepay.com/v2/payment-links/create
- AuthHTTP bearer
Request body
Example request
{
"items": [
{
"id": "prod-1234",
"quantity": 2
}
],
"methods": [
"PIX",
"CARD"
]
}Response
Link de pagamento criado com sucesso.
Example response
{
"data": {
"id": "bill_abc123xyz",
"externalId": "pedido-123",
"url": "https://app.abacatepay.com/pay/bill_abc123xyz",
"amount": 10000,
"items": [
{
"id": "prod_456",
"quantity": 2
}
],
"status": "PENDING",
"coupons": [],
"upSellProductId": "prod_bump456xyz",
"installmentsCount": 3,
"card": {
"maxInstallments": 12
},
"dueDate": "2026-08-15",
"interest": {
"value": 100
},
"fine": {
"value": 200,
"type": "PERCENTAGE"
},
"metadata": {},
"createdAt": "2024-11-04T18:38:28.573Z",
"updatedAt": "2024-11-04T18:38:28.573Z"
},
"success": true
}Changes
- warning
added the new
REDEEMEDenum value to the/response property for the response status - info
added the new optional request property
/ - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- warning
- warning
removed the request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- warning