Виплати через PIX
Для проведення зарахувань на електронні гаманці PIX у Бразилії запит до API Tranzzo повинен містити такі параметри:
Parameter | Type | Required | Description |
---|---|---|---|
pos_id | UUID | ✅ | Merchant's identifier (POS_ID ) |
mode | MODE | ✅ | direct |
method | METHOD | ✅ | Payment method (credit ) |
amount | Number | ✅ | 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) |
currency | CURRENCY | ✅ | Transaction currency (ISO_4217) |
order_3ds_bypass | String | ✅ | 3-D Secure flow option |
order_id | String | ✅ | Unique identifier of order |
description | String | ✅ | Payment description |
payway | String | ✅ | pix |
server_url | URL | Webhook notification will be sent to this URL | |
result_url | URL | Customer will be redirected to this URL after payment. | |
properties.instrument_type | String | ✅ | instrument type (pix) |
properties.instrument_method | String | ✅ | instrument method alias (pix) |
properties.document_id | String | ✅ | payer’s document number (CPF) |
properties.pix_key | String | ✅ | payer’s pix key |
Значення параметру payway
має бути передане як pix
.
Приклад запиту:
{
"pos_id": "'$POS_ID'",
"mode": "direct",
"amount": 5,
"method": "credit",
"currency": "BRL",
"payway": "pix",
"order_3ds_bypass": "supported",
"customer_lname": "Doe",
"customer_fname": "John",
"customer_email": "[email protected]",
"customer_phone": "1234567890",
"description": "Test description",
"order_id": "'$ORDER_ID'",
"properties": {
"document_id": "50284414727",
"document_type": "CPF"
},
"server_url": "https://callback.blackhole.com/callback",
"result_url": "https://example.com/result"
}