A payment is a charge against a payer for a fixed amount in BRL. YuvexPay exposes a singleDocumentation Index
Fetch the complete documentation index at: https://docs.yuvexpay.com/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/payments endpoint that creates payments across
three methods (PIX, CARD, BOLETO) and two presentation modes (headless
and hosted).
Methods at a glance
| Method | Headless | Hosted |
|---|---|---|
PIX | Returns the BR-Code (copy-paste) and a QR code image. You render them in your own UI. | Returns a checkoutUrl to the YuvexPay-hosted checkout. |
CARD | Direct charge: send card details server-side. Single-method, single-installment only. | Multi-method or multi-installment card flows. The payer enters card details on YuvexPay’s hosted page. |
BOLETO | Returns a boleto barcode and a downloadable PDF. | Available through the hosted checkout. |
headless when you want to render the payment yourself; pick hosted
when you want YuvexPay to render the checkout, including method selection.
Amounts and currency
- All amounts are in BRL as decimal numbers (e.g.
49.90), not cents. - The minimum chargeable amount is
R$ 0.01. The maximum isR$ 1,000,000.00. - Card payments currently require
installments: 1(a single installment). Larger card transactions must be sent through the hosted multi-installment flow.
Identifiers
Every payment has two identifiers:id— an internal UUID. Use it as the path parameter forGET /v1/payments/{paymentId}andPOST /v1/payments/{paymentId}/refund.txId— a stable, prefixed transaction id (PAY+ 32 hex characters) that identifies the payment across logs, reports and the dashboard.
externalId on creation — typically your own order id —
which is stored on the payment for cross-referencing. externalId is unique
per company and environment.
Lifecycle
| Status | Meaning |
|---|---|
NEW | Created and waiting for the payer. |
PENDING_METHOD_SELECTION | A hosted multi-method checkout is created and the payer hasn’t picked a method yet. |
PROCESSING | The card or PIX network is processing the charge. |
CONFIRMED | The payment was authorized but funds are not yet settled (typical for cards/boleto). |
PAID | Funds were received and credited to your balance. |
EXPIRED | The payment window passed without payment. |
CANCELLED | The payment was cancelled before being paid. |
PARTIAL_REFUND | A partial refund has been issued (currently only via inbound provider events). |
REFUNDED | A full refund has been issued. |
CHARGEBACK | A chargeback was filed and processed. |
MED_FROZEN | A PIX MED (special refund) is open; funds are temporarily held. |
Headless PIX
Headless PIX is the simplest flow. Create the payment, render the QR code or copy-paste string, and listen forPAYMENT_PAID:
methodData.pixCopyPaste (the BR-Code string) and
methodData.qrCodeBase64 (a data URI). Render either to the payer.
Headless direct credit card
Direct card payments charge the card immediately on creation. The payer never leaves your UI, but you assume PCI scope: card data flows through your servers.methods: ["CARD"] (a single method),
installments: 1, and require card.holderInfo and card.remoteIp. For
multi-method or multi-installment card flows, use the hosted checkout.
Hosted checkout
Setmode: "hosted" to receive a checkoutUrl. Redirect the payer there;
YuvexPay handles method selection, card capture and PIX rendering.
returnUrlis where YuvexPay sends the payer if they abandon the checkout.completionUrlis where YuvexPay redirects after a successful payment.
PENDING_METHOD_SELECTION until the payer picks a
method, then transition through the same lifecycle as a headless payment.
Fees and net amount
Each payment response includes:amount— the gross amount charged to the payer.feeAmount— the YuvexPay processing fee.netAmount— the amount credited to your balance once the payment settles.
passFeeToPayer: true shifts the fee onto the payer (the payer is charged
amount + feeAmount); when false, the fee is deducted from amount.
Pagination and filtering
GET /v1/payments supports the standard page (default 1) and limit
(default 20, max 100) parameters along with these filters:
status— filter byPaymentStatus.method— filter byPIX,CARDorBOLETO.startDate/endDate— ISO 8601 date or date-time bounds.minAmount/maxAmount— decimal BRL bounds.environment—SANDBOXorPRODUCTION(defaults to the API key’s environment).
Receipts
Once a payment isPAID or REFUNDED, you can fetch a printable receipt:

