Referência da API/Saques
POST
Solicita um envio Pix (saque)
Solicita um envio Pix (saque)
POST
/v1/payoutshttps://integrate.api.kyvopay.com.br
cURL
curl -X POST https://integrate.api.kyvopay.com.br/v1/payouts \
-H "X-API-Key: ky_XXXXX-XXXXX-XXXXX" \
-H "Content-Type: application/json" \
-d '{
"amount_centavos": 4990,
"idempotency_key": "pedido-12345",
"pix_key": "cliente@example.com",
"pix_key_type": "email"
}'Resposta200 OK
{
"data": {
"amount_centavos": "4990",
"end_to_end_id": "E12345678202601011200abcdef123456",
"failure_reason": "string",
"fee_centavos": "4990",
"id": "01HZ8K3M5N",
"net_centavos": "4990",
"pix_key": "cliente@example.com",
"pix_key_type": "email",
"public_id": "01HZ8K3M5N",
"status": "pending"
},
"error": {
"code": "string",
"details": {},
"message": "string"
},
"request_id": "req_01HZ8K3M5N"
}Autenticação
X-API-Keystring · headerobrigatórioUse a chave ky_... criada em Integrações → Chaves de API no painel KyvoPay.
Requisição
Corpo
amount_centavosintegerobrigatórioValor em centavos. R$ 49,90 = 4990.
idempotency_keystringChave de idempotência. Repetir a chamada com a mesma chave devolve o resultado original em vez de criar de novo.
pix_keystringobrigatórioChave Pix de destino.
pix_key_typestringobrigatórioTipo da chave Pix: cpf, cnpj, email, phone ou evp (chave aleatória).