1. Get your API key
Log in to the YuvexPay dashboard and navigate to Settings > 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).
Direct credit card charges
For headless direct credit card charges, send a singleCARD method together
with the card payload. The payer must have name and document available
through customer or customerId.
3. Listen for webhooks
Set up a webhook endpoint to receive payment notifications. Configure it in the dashboard under Settings > Webhooks. When the customer pays, you receive aPAYMENT_PAID 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.

