Pix
Create Pix Payment and Retrieve Order ID
Pix is Brazil's instant bank payment system. Customers pay in Brazilian reais from their own bank app.
Who can pay: customers with a Brazilian bank account and a CPF (Brazilian personal tax ID) or CNPJ (Brazilian company tax ID).
Automatic Pix for Brazil: if you offer card payments, customers we detect in Brazil are shown Pix instead of card automatically, even if you have not added Pix to your integration. Adding Pix to your integration also shows it to Brazilian customers we can't detect by location.
POST
/payment/pixAuthentication
Authorization: Bearer <YOUR_API_key>
Request Parameters
| Field | Type | Description | Required |
|---|---|---|---|
amount | number | Payment amount | ✅ |
currency | string | Currency code (e.g., USD). available currencies | ✅ |
customer | string | The customer ID should be your customer's email. This email should be unique for each customer. | ✅ |
product | string | The product information you display to users | ❌ |
redirect_url | string | Redirect URL after successful payment. | ❌ |
Response Fields
- 200
- 400
- 401
{
"order_url": "string",
"order_id": 0,
"amount": "string"
}
{
"detail": "Bad Request"
}
{
"detail": "Unauthorized Bearer token"
}
Behavior
When you receive a 200 OK response, you must redirect the user to the URL specified in the order_url field.
This URL points to the Pix checkout page where the customer can complete the payment.
Example:
window.location.href = response.order_url;
Request Samples
curl -X POST https://luxfin.org/payment/pix \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 100,
"currency": "USD",
"customer": "test@gmail.com",
"product": "test product",
"redirect_url": "https://your_domain.com/redirect_page"
}'