| Field | Field Alias | Description | Validation |
|---|---|---|---|
| beneficiary_name | name | Full name of the beneficiary | Length >= 2 <= 60 |
| beneficiary_type | person_type | Indicates whether the beneficiary is an individual or a company | From options: individual, company |
| beneficiary_id | document_number | CPF or CNPJ of the beneficiary. CNPJ must be enabled for your account; contact support | RegEx ^(\d{3}\.?\d{3}\.?\d{3}-?\d{2}|\d{2}\.?\d{3}\.?\d{3}/?\d{4}-?\d{2})$ Must be a valid CPF or CNPJ |
| beneficiary_pix_key | account_number | Registered PIX key to identify the beneficiary which can be one of the following: CPF, CNPJ, Email, Phone (must include prefix “+55”) | Must be valid PIX key |
You can send each field using either its name or its alias.
curl --location 'https://api.v2.stg.paypaga.com/payout' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data '{
"country_code": "BR",
"currency": "BRL",
"payment_method_code": "BNKTR",
"transaction": {
"beneficiary": {
"beneficiary_name": "Pedro Lopes",
"beneficiary_type": "individual",
"beneficiary_id": "43000000003",
"beneficiary_pix_key": "43000000003"
},
"transaction_data": {
"payout_concept": "brazil payout transaction",
"merchant_transaction_reference": "10000",
"transaction_total": 100.25
}
}
}'{
"datetime": "2024-04-09 18:47:07.960978",
"message": "Payment processing initiated",
"details": {
"result": "success",
"transaction_processed": {
"transaction_id": "20240409-1847-0783-90cc-133c988ef5c6",
"merchant_transaction_reference": "150267"
}
},
"version": "0.1"
}