Skip to main content
POST

Authorizations

Authorization
string
header
required

YuvexPay API key. Include as Authorization: Bearer ypk_<env>_<kid>_<secret> where <env> is test (sandbox) or live (production). Create and manage keys in the dashboard under Settings > API Keys.

Headers

X-Idempotency-Key
string
required

A unique string to ensure the request is processed only once. Must be unique per request. Valid for 24 hours.

Maximum string length: 100

Body

application/json
amount
number
required

The NET amount in BRL — exactly what the recipient receives. The platform fee is added on top, never deducted: your balance is debited amount + feeAmount (returned as grossAmount), and that gross is what counts against INSUFFICIENT_BALANCE, the daily/nightly limits and the per-transaction cap. The R$10.00 minimum is compared against amount (the net); it is the floor the platform never goes below, and the value that actually applies to you is minAmount from GET /v1/withdrawals/limits. The 1,000,000 ceiling is a request-validation bound, not your limit — the per-transaction cap that applies to your account is returned by GET /v1/withdrawals/limits.

Required range: 10 <= x <= 1000000Must be a multiple of 0.01
destination
PIX destination · object
required

Where to send the funds.

method
enum<string>
default:PIX

Public withdrawals currently support PIX only.

Available options:
PIX
currency
enum<string>
default:BRL
Available options:
BRL
description
string

Internal description for this withdrawal.

Maximum string length: 500

Response

Withdrawal created.

withdrawal
object

The withdrawal as returned by POST /v1/withdrawals. This response is deliberately narrower than the object returned by the read endpoints: it omits pixKey, pixKeyType, processedAt and errorMessage, which are only meaningful once the network has acted.