Create PayOut

Sends a Pix transfer from the authenticated account to a Pix key. Funds are
reserved against the account balance before the transfer is dispatched, so a
200 means the money is committed locally and the transfer is in flight - it
does not mean the recipient has been credited. Settlement arrives on the
PayOutCompleted webhook, or by polling GET /api/payout/{reference_code}.

Requires an access key with cash-out enabled. This route is idempotent: an
Idempotency-Key header is required, and a repeat of the same key replays the
first response instead of sending a second transfer.

Possible Status

  • done
  • failed
  • totally_refunded
  • partially_refunded

Idempotency-Key

The Idempotency-Key is a required header for ensuring the idempotency of API requests. It allows clients to safely retry a request without accidentally performing the same operation multiple times. This is especially critical for operations like payment processing, payouts, or other actions that should not be executed more than once.

Key Points:

  • Required: Every idempotent API request must include the Idempotency-Key header.
  • Uniqueness: The key must be unique for each distinct operation. For example, a new key should be generated for every new payout request.
  • Format: The key should be a unique string, typically a UUID (e.g., 123e4567-e89b-12d3-a456-426614174000). You can use the same value used in reference_code.
  • Lifetime: The key's validity is tied to the server's caching mechanism. Use the same key for retries of the same operation within the expiration window, which is 1 hour.

Client request timeout

We recommend setting a generous timeout for your client requests, as the PIX network can experience latency during peak hours. A timeout of 30 seconds is a good starting point, but you may need to adjust it based on your specific needs.

Body Params

PayOut Details

number
required

Amount is the transfer in reais, with at most two decimal places. It is
reserved against the account balance before the transfer is dispatched.

string | null

DocumentNumber is the recipient's CPF or CNPJ, digits only, checked the
same way as RecipientName.

string | null

RecipientName is checked against the name the key resolves to when both are
known. Omit to accept whatever the key resolves to.

string
required
length ≥ 1

RecipientPixKey is the destination Pix key: CPF, CNPJ, e-mail, phone in
+5511999999999 form, or a random (EVP) key.

string
required
length between 1 and 255

ReferenceCode is your own identifier for the transfer, and the key you
fetch it back by. A reference code that is already in use is rejected, so
give every transfer its own.

boolean

PixKeyEnableCache is accepted for compatibility and always forced on for
this route, which resolves the key from the local cache when it can.

Headers
string
required

Client-generated key that makes the request replayable. Reusing a key returns the first response for one hour instead of sending a second transfer.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json