RASPAY

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.

pixKeyTypepixKey format
cpf11 digits
cnpj14 digits
emailEmail
phone10 to 14 digits, with optional +
randomRandom 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.

Response 201
{
  "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

statusMeaning
pending_approvalAmount held, waiting for approval. Can be canceled.
processingApproved and being sent.
paidCompleted. payout.paid sent.
failedNot completed. Held amount returned and payout.failed sent.
rejectedRejected 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.

failureReasonMeaning
pix_key_not_foundThe Pix key does not exist.
invalid_pix_keyThe Pix key is invalid (format, email, or CPF/CNPJ with a wrong digit).
document_mismatchThe document sent is not the one of the Pix key owner.
receiver_bank_rejectedThe receiving bank refused the transfer.
receiver_account_blockedThe receiving account is blocked.
recipient_not_allowedThis type of recipient is not accepted on the account.
fraud_suspectedRefused by fraud prevention (flagged key or origin).
amount_out_of_limitsAmount below the minimum or above the maximum per transaction.
settlement_timeoutSettlement timed out and was canceled. You can try again.
settlement_failedSettlement failed. You can try again.
provider_unavailablePayment system down. Try again in a few minutes.
provider_rejectedRefused with no reason given.
manual_resolutionClosed 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"