v1
latestOpenAPI 3.1.02026-07-263436159.3 KBCreate Transaction
Use this method to create a new transaction / deposit and get paid by your customers!
post/transactions
Headers
Ocp-Apim-Subscription-Keystring required
The subscription key has a length of 32 characters and will be provided within the API keys. Will be available for new integrations from July 24th onwards.
Request body
Response
200
Example response
{
"uid": "105433d8-74584-40b1-8f0e-3d543bbc0648",
"type": "payment",
"status": "PENDING",
"trackingId": "10010000A100028",
"amount": 1768,
"currency": "USD",
"description": "Payment Test",
"createdAt": "2023-03-13T12:16:17.6633918Z",
"updatedAt": "2023-03-13T12:16:17.6633918Z",
"pspTransactionId": "840480",
"fxBreakdown": {
"exchangeRate": 0.1883,
"components": {
"merchantSpreadPercent": 1,
"pspSpreadPercent": 1,
"localTaxPercent": 1.1,
"operationFeePercent": 1.5
},
"contexts": {
"base": {
"currency": "USD",
"topUpAmount": 941.5,
"merchantSpreadAmount": 9.42,
"pspSpreadAmount": 9.42,
"localTaxAmount": 10.36,
"operationFee": 74.25,
"netDepositAmount": 898.83
},
"local": {
"currency": "CRC",
"topUpAmount": 5000,
"merchantSpreadAmount": 50,
"pspSpreadAmount": 50,
"localTaxAmount": 55,
"operationFee": 74.25,
"netDepositAmount": 4770.75
}
}
},
"customer": {
"firstName": "John",
"lastName": "Doe",
"country": "BR",
"city": "Sao Paulo",
"address": "R. Sao Joaquim, 596",
"phone": "5511999999999",
"ip": "81.47.160.151",
"personalId": "00113562600",
"email": "test@payretailers.com"
},
"form": {
"action": "https://api.gateway.payretailers.com/v2/public/transactions/gateway/105433d8-74584-40b1-8f0e-3d543bbc0648",
"method": "GET"
},
"paymentMethod": {
"id": "20421d39-5236-5421-9d0a-a9453279c98f",
"name": "TEST",
"type": "Online"
},
"billing": {
"currency": "BRL",
"amount": 10000
}
}