Criar um payout
Changed onSaca o saldo da sua conta AbacatePay para uma chave PIX do mesmo CNPJ da conta. Para enviar dinheiro a terceiros, use POST /pix/send.
post/payouts/create
Request
- Base URLhttps://api.abacatepay.com/v2
- URLhttps://api.abacatepay.com/v2/payouts/create
- AuthHTTP bearer
Request body
Example request
{
"amount": 10000,
"externalId": "saque-123",
"pix": {
"key": "11987654321",
"type": "PHONE"
}
}Response
Payout criado com sucesso.
Example response
{
"data": {
"id": "tran_abc123xyz",
"status": "COMPLETE",
"receiptUrl": "https://app.abacatepay.com/receipt/tran_abc123xyz",
"amount": 10000,
"platformFee": 80,
"externalId": "saque-123",
"createdAt": "2024-11-04T18:38:28.573Z",
"updatedAt": "2024-11-04T18:38:28.573Z"
},
"success": true
}Changes
- warning
added the new
FAILEDenum value to the/response property for the response status - info
the request property
became optional - info
removed the
CANCELLEDenum value from the/response property for the response status - info
removed the
EXPIREDenum value from the/response property for the response status - info
removed the
PENDINGenum value from the/response property for the response status - info
removed the
REFUNDEDenum value from the/response property for the response status
- warning
- breaking
added the new required request property
- breaking