Skip to main content

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/pix

Authentication​

Authorization: Bearer <YOUR_API_key>

Request Parameters​

FieldTypeDescriptionRequired
amountnumberPayment amount✅
currencystringCurrency code (e.g., USD). available currencies✅
customerstringThe customer ID should be your customer's email. This email should be unique for each customer.✅
productstringThe product information you display to users❌
redirect_urlstringRedirect URL after successful payment.❌

Response Fields​


{
"order_url": "string",
"order_id": 0,
"amount": "string"
}

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"
}'