{
"amount": 50,
"pix_key_type": "cpf",
"pix_key": "39053344705",
"notification_url": "https://loja.com/webhooks/agitapay"
}
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"store": { "id": "uuid-da-loja", "name": "Padrão" },
"status": "requested",
"amount": 50,
"fee": 5,
"net": 45,
"currency": "BRL",
"notification_url": "https://loja.com/webhooks/agitapay"
}
Saldo e saques
Solicitar saque
Solicite um saque do saldo da loja por PIX out.
POST
/
withdrawals
{
"amount": 50,
"pix_key_type": "cpf",
"pix_key": "39053344705",
"notification_url": "https://loja.com/webhooks/agitapay"
}
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"store": { "id": "uuid-da-loja", "name": "Padrão" },
"status": "requested",
"amount": 50,
"fee": 5,
"net": 45,
"currency": "BRL",
"notification_url": "https://loja.com/webhooks/agitapay"
}
Solicita um saque e debita o saldo da loja vinculada ao token. Requer
A resposta não expõe a chave PIX. O saque exige saldo disponível, KYC aprovado, PIX ligado no admin e respeito à janela de horário da política da plataforma.
withdrawals:write.
string
Recomendado. Até 128 caracteres e escopo por loja.
number
required
Valor bruto do saque, em reais.
string
required
cpf, cnpj, phone, email ou aleatoria.string
required
Chave PIX de destino.
string
HTTPS público para os eventos do saque.
string
Observação interna; não é enviada no PIX.
{
"amount": 50,
"pix_key_type": "cpf",
"pix_key": "39053344705",
"notification_url": "https://loja.com/webhooks/agitapay"
}
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"store": { "id": "uuid-da-loja", "name": "Padrão" },
"status": "requested",
"amount": 50,
"fee": 5,
"net": 45,
"currency": "BRL",
"notification_url": "https://loja.com/webhooks/agitapay"
}