Skip to main content

Pay out order creation

Use the following POST request to create a pay out order:

POST https://api.transavex.com/api/v1/payout/create

The following fields have to be passed as a request body (optionals are marked):

FieldTypeDescriptionExample
paymentIdUUIDv4Your system's unique id11111111-1111-1111-1111-111111111111
client.idUUIDv4Your client's unique id22222222-2222-2222-2222-222222222222
client.ipstringIP of your client90.0.12.111
client.emailstringemail of your client[email protected]
client.tinstring (required for PIX_OUT_* methods)Brazil TINbrazil TIN number
amountnumberPayment amount1000
countrystringCountry code (ISO 3166-1 alpha-2)RU
paymentMethodstringPayment methodCard
trafficTypestringClient traffic type (ALL / FTD / STD)ALL
bankIdnumber (optional)Must be used in combination with SBP method31
payoutDetails.ccNostring (optional)Card number4627342642639018
payoutDetails.ccHolderNamestring (optional)Card holder nameJohn Doe
payoutDetails.ccExpirationMonthstring (optional)Card expiration month09
payoutDetails.ccExpirationYearstring (optional)Card expiration year26
payoutDetails.phoneNumberstring (optional)SBP bound phone number79999999999
payoutDetails.payeeNamestring (optional)Receiver's name for SBP methodJohn Doe
payoutDetails.bankAccountNostring (optional)Bank account number457575757457457
postbackUrlstringThe URL we POST a callback to you athttps://...

payoutDetails are provided according to the payment method of your client's choice:

  • Card - ccNo, ccHolderName, ccExpirationMonth и ccExpirationYear - required.
  • SBP - phoneNumber - required. payeeName is also required but left optional for compatibility.
  • BankAccount - bankAccountNo - required.

Request example (Card method)

curl --request POST \
--url 'https://api.transavex.com/api/v1/payout/create' \
--header 'Content-Type: application/json' \
--header 'X-Client-Id: {{token}}' \
--header 'X-Signature: {{signature}}' \
-d '{
"paymentId": "11111111-1111-1111-1111-111111111111",
"client": {
"id": "22222222-2222-2222-2222-222222222222",
"ip": "90.0.12.111",
"email": "[email protected]"
},
"amount": 8000,
"country": "US",
"paymentMethod": "Card",
"trafficType": "ALL",
"payoutDetails": {
"ccNo": "4627342642639018",
"ccHolderName": "John Doe",
"ccExpirationMonth": "09",
"ccExpirationYear": "30"
}
}'

Request example (SBP method)

curl --request POST \
--url 'https://api.transavex.com/api/v1/payout/create' \
--header 'Content-Type: application/json' \
--header 'X-Client-Id: {{token}}' \
--header 'X-Signature: {{signature}}' \
-d '{
"paymentId": "11111111-1111-1111-1111-111111111111",
"client": {
"id": "22222222-2222-2222-2222-222222222222",
"ip": "90.0.12.111",
"email": "[email protected]"
},
"amount": 8000,
"country": "US",
"paymentMethod": "SBP",
"trafficType": "ALL",
"bankId": 31,
"payoutDetails": {
"phoneNumber": "9999999999",
"payeeName": "John Doe"
}
}'

Request example (метод PIX_OUT_CPF)

curl --request POST \
--url 'https://api.transavex.com/api/v1/payout/create' \
--header 'Content-Type: application/json' \
--header 'X-Client-Id: {{token}}' \
--header 'X-Signature: {{signature}}' \
-d '{
"paymentId": "11111111-1111-1111-1111-111111111111",
"client": {
"id": "22222222-2222-2222-2222-222222222222",
"ip": "90.0.12.111",
"email": "[email protected]",
"phone": "553030000721",
"tin": "some TIN number"
},
"amount": 100,
"country": "BR",
"paymentMethod": "PIX_OUT_CPF",
"trafficType": "ALL"
}'

Request example (метод PIX_OUT_EMAIL)

curl --request POST \
--url 'https://api.transavex.com/api/v1/payout/create' \
--header 'Content-Type: application/json' \
--header 'X-Client-Id: {{token}}' \
--header 'X-Signature: {{signature}}' \
-d '{
"paymentId": "11111111-1111-1111-1111-111111111111",
"client": {
"id": "22222222-2222-2222-2222-222222222222",
"ip": "90.0.12.111",
"email": "[email protected]",
"phone": "553030000721"
},
"amount": 100,
"country": "BR",
"paymentMethod": "PIX_OUT_EMAIL",
"trafficType": "ALL"
}'

Request example (метод PIX_OUT_PHONE)

curl --request POST \
--url 'https://api.transavex.com/api/v1/payout/create' \
--header 'Content-Type: application/json' \
--header 'X-Client-Id: {{token}}' \
--header 'X-Signature: {{signature}}' \
-d '{
"paymentId": "11111111-1111-1111-1111-111111111111",
"client": {
"id": "22222222-2222-2222-2222-222222222222",
"ip": "90.0.12.111",
"email": "[email protected]",
"phone": "553030000721"
},
"amount": 100,
"country": "BR",
"paymentMethod": "PIX_OUT_PHONE",
"trafficType": "ALL"
}'

Request example (метод PIX_OUT_EVP)

curl --request POST \
--url 'https://api.transavex.com/api/v1/payout/create' \
--header 'Content-Type: application/json' \
--header 'X-Client-Id: {{token}}' \
--header 'X-Signature: {{signature}}' \
-d '{
"paymentId": "11111111-1111-1111-1111-111111111111",
"client": {
"id": "22222222-2222-2222-2222-222222222222",
"ip": "90.0.12.111",
"email": "[email protected]",
"phone": "553030000721"
},
"amount": 100,
"country": "BR",
"paymentMethod": "PIX_OUT_EVP",
"trafficType": "ALL",
"payoutDetails": {
"evp": "evp string from bank"
}
}'

Response example

{
"id": "8594c7b6-373c-4baa-a5ee-b5b5bf462d85",
"status": "In progress"
}