1. Get your API key
Log in to the YuvexPay dashboard and navigate to Desenvolvedores > Chaves de API (Developers > API keys). Create a new key, choose Sandbox for testing, and copy the full secret — the secret is shown only once. Each key is scoped to a single company and carries one or more permissions (payments:write, payments:read, payments:refund, withdrawals:write,
withdrawals:read, customers:write, customers:read, products:write,
products:read, documents:read, webhooks:read). Choose the smallest set of
scopes the integration needs.
2. Create a payment
Authenticate each request with your API key as a Bearer token. All write endpoints require anX-Idempotency-Key header so retries never double-charge
a customer.
pixCopyPaste as a copy-paste string and qrCodeBase64 as a QR code
image. Use id as the path parameter for follow-up calls (GET /v1/payments/{paymentId},
POST /v1/payments/{paymentId}/refund).
To accept a card, create the payment with mode: "hosted" and CARD in
methods, and send the payer to the returned checkoutUrl: see Card payments.
3. Listen for webhooks
Set up a webhook endpoint to receive payment notifications. Configure it in the dashboard under Desenvolvedores > Webhooks (Developers > Webhooks). When the customer pays, your endpoint receives aPOST whose
X-Webhook-Event header is PAYMENT_PAID. The body is the event itself —
there is no envelope, and the event name is not in the body:
X-Webhook-Event, and always
verify the webhook signature before
acting on the event.
Webhook guide
Learn how to verify signatures, handle retries and dedupe events.
Next steps
Payments guide
PIX, card and boleto in detail.
Refunds
Refund eligibility, lifecycle and error codes.
Withdrawals
Move BRL from your balance via PIX.
Sandbox
Deterministic recipes for testing.

