Skip to main content

PIX 2

To enable the PIX payment method, you need to use direct integration. When creating a payment, send a request with the following parameters:

ParameterTypeRequiredDescription
pos_idUUID✅Merchant's identifier (POS_ID)
modeMODE✅direct
methodMETHOD✅Payment method (purchase)
amountNumber✅Transaction amount. Must be a positive number. The number of decimal digits must be less than or equal to 2 (e.g., 100.00, 250, 50.50)
currencyCURRENCY✅Transaction currency (ISO_4217)
order_3ds_bypassString✅3-D Secure flow option
order_idString✅Unique identifier of order
descriptionString✅Payment description
paywayString✅pix
server_urlURLWebhook notification will be sent to this URL
result_urlURLCustomer will be redirected to this URL after payment.
customer_fnameString✅payer’s first name
customer_lnameString✅payer’s last name
customer_emailString✅payer’s email address
customer_phoneString✅payer’s phone number
properties.instrument_typeString✅payer’s document type
properties.document_idString✅payer’s document ID

Request example:

{
"pos_id": "<POS_ID>",
"mode": "direct",
"amount": 5.50,
"method": "purchase",
"currency": "BRL",
"payway": "pix",
"order_3ds_bypass": "supported",
"customer_lname": "Doe",
"customer_fname": "John",
"customer_phone": "+5511987654321",
"customer_email": "joaosilva@hotmail.com",
"description": "Test description",
"order_id": "<ORDER_ID>",
"properties": {
"instrument_type": "pix",
"document_id": "50284414727"
},
"server_url": "https://callback.blackhole.com/callback",
"result_url": "https://example.com/result"
}