Pix payouts
Transfer the balance to any Pix key.
Create
Send the amount, the Pix key and its type. The amount and the fee leave available immediately and stay in held until the payout ends. Idempotency-Key is required.
In live mode, the key must have been created with the option Allow withdrawals with this key; without it the response is 403 key_not_allowed. Test keys make payouts without this option.
| pixKeyType | pixKey format |
|---|---|
cpf | 11 digits |
cnpj | 14 digits |
email | |
phone | 10 to 14 digits, with optional + |
random | Random key, with or without hyphens |
name is optional and stores the name of the key holder. The response returns pix.document and pix.name as sent, or null.
curl -X POST "https://api.raspay.io/v1/payouts" \
-H "Authorization: Bearer $GATEWAY_API_KEY" \
-H "Idempotency-Key: payout-supplier-77" \
-H "Content-Type: application/json" \
-d '{
"amount": 50000,
"pixKey": "finance@example.com",
"pixKeyType": "email",
"reference": "SUPPLIER-77"
}'Approval
In live mode, by default, every payout goes through approval before being sent and starts as pending_approval. That way, a leaked API key does not empty the account. If your operation requires automatic payouts, contact support. There is no approval in the sandbox.
{
"id": "e4b9a1d6-6f02-4c37-8b15-90d3c7a2f4e8",
"object": "payout",
"livemode": true,
"type": "pix",
"status": "pending_approval",
"amount": 50000,
"fee": 150,
"currency": "BRL",
"reference": "SUPPLIER-77",
"pix": {
"key": "finance@example.com",
"keyType": "email",
"document": null,
"name": null
},
"payer": null,
"beneficiary": null,
"endToEndId": null,
"ispb": null,
"failureReason": null,
"completedAt": null,
"createdAt": "2026-11-01T15:04:05.000Z"
}Lifecycle
| status | Meaning |
|---|---|
pending_approval | Amount held, waiting for approval. Can be canceled. |
processing | Approved and being sent. |
paid | Completed. payout.paid sent. |
failed | Not completed. Held amount returned and payout.failed sent. |
rejected | Rejected in review or canceled by you. Held amount returned and payout.failed sent. |
In failed, failureReason has one of the codes below. In rejected, it has canceled_by_merchant or the reason written by the reviewer. New codes may appear: treat any other as provider_rejected and build your logic on status.
| failureReason | Meaning |
|---|---|
pix_key_not_found | The Pix key does not exist. |
invalid_pix_key | The Pix key is invalid (format, email, or CPF/CNPJ with a wrong digit). |
document_mismatch | The document sent is not the one of the Pix key owner. |
receiver_bank_rejected | The receiving bank refused the transfer. |
receiver_account_blocked | The receiving account is blocked. |
recipient_not_allowed | This type of recipient is not accepted on the account. |
fraud_suspected | Refused by fraud prevention (flagged key or origin). |
amount_out_of_limits | Amount below the minimum or above the maximum per transaction. |
settlement_timeout | Settlement timed out and was canceled. You can try again. |
settlement_failed | Settlement failed. You can try again. |
provider_unavailable | Payment system down. Try again in a few minutes. |
provider_rejected | Refused with no reason given. |
manual_resolution | Closed by the operations team. |
Cancel
Only payouts in pending_approval can be canceled. In any other state, the API returns 403 forbidden.
curl -X POST "https://api.raspay.io/v1/payouts/e4b9a1d6-6f02-4c37-8b15-90d3c7a2f4e8/cancel" \
-H "Authorization: Bearer $GATEWAY_API_KEY"