POST
/
withdraw
/
create
Criar um novo saque
curl --request POST \
  --url https://api.abacatepay.com/v1/withdraw/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "Saque para conta principal",
  "externalId": "withdraw-1234",
  "method": "PIX",
  "amount": 5000,
  "pix": {
    "type": "CPF",
    "key": "123.456.789-01"
  }
}'
{
  "data": {
    "id": "tran_123456",
    "status": "PENDING",
    "devMode": true,
    "receiptUrl": "https://abacatepay.com/receipt/tran_123456",
    "kind": "WITHDRAW",
    "amount": 5000,
    "platformFee": 80,
    "externalId": "withdraw-1234",
    "createdAt": "2025-03-24T21:50:20.772Z",
    "updatedAt": "2025-03-24T21:50:20.772Z"
  },
  "error": null
}

Authorizations

Authorization
string
header
required

Cabeçalho de autenticação Bearer no formato Bearer <abacatepay-api-key> onde <abacatepay-api-key> é a sua chave de API.

Body

application/json

Dados necessários para criar um saque.

Response

200
application/json

Saque criado com sucesso.

The response is of type object.