Skip to main content

Pay in order creation

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

POST https://api.transavex.com/api/v1/payin/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.phonestring (optional)Phone number of your client79999999999
client.firstNamestring (optional)Client's first nameJohn
client.lastNamestring (optional)Client's last nameDoe
amountnumberPayment amount1000
countrystringCountry code (ISO 3166-1 alpha-2)RU
paymentMethodstringPayment methodCard
trafficTypestringClient traffic type (ALL / FTD / STD)ALL
postbackUrlstringThe URL we POST a callback to you athttps://...
bankIdnumber (optional)This can be used to specify inner methods if applicable (alpha-alpha, sber-sber, ...) (We have a api/v1/bank/available?country=<alpha-2> method to retrieve banks)12
addRandomCentsboolean (optional)Whether you want us to add random cents to the amounttrue

Request example

curl --request POST \
--url 'https://api.transavex.com/api/v1/payin/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": "199999999",
"firstName": "John",
"lastName": "Doe"
},
"amount": 8000,
"country": "US",
"paymentMethod": "Card",
"trafficType": "ALL"
}'

Card / CrossBorderCard response example

{
"status": "In progress",
"id": "9c7ffb7b-6d81-4321-ae6f-515f7140d484",
"expiresAt": "2025-05-16T18:05:23Z",
"bankDetails": {
"card": {
"cardNumber": "2202206137337635",
"cardHolderName": "John Doe"
},
"bankName": "CITIBANK"
}
}

SBP / CrossBorderSBP response example

{
"status": "In progress",
"id": "9c7ffb7b-6d81-4321-ae6f-515f7140d484",
"expiresAt": "2025-05-16T18:05:23Z",
"bankDetails": {
"phoneNumber": "79149000186",
"bankName": "CITIBANK",
"payeeName": "John Doe"
}
}

QRNSPK/QRNSPKCrossBorder response example

qr object model:

{
// Could be a url
url?: string;
// Or a code to generate QR image
code?: string;
// Or both
}
{
"status": "In progress",
"id": "9c7ffb7b-6d81-4321-ae6f-515f7140d484",
"expiresAt": "2025-05-16T18:05:23Z",
"bankDetails": {
"qr": {
"url": "...url to qr code...",
"code": "...code to generate qr image..."
},
"bankName": "CITIBANK",
"bankId": 1123
}
}

PIX response example

qr object model:

{
// Code to generate QR image
code?: string;
}
{
"status": "In progress",
"id": "9c7ffb7b-6d81-4321-ae6f-515f7140d484",
"expiresAt": "2025-05-16T18:05:23Z",
"bankDetails": {
"qr": {
"code": "...code to generate qr image..."
},
"bankName": "Banco do Brasil",
"bankId": 1123
}
}