Transaction Response

Here you can find information about the response received after sending a POST Create Transaction request.

If successful, the response returns the transaction ID under the parameter uid as well as information about the transaction. This transaction ID can be used as parameter of the Get Transaction by UID request to retrieve the transaction information at any time. It can also be used as parameter of the Get Landing Info request to get the checkout information of some payment methods and design your own checkout page.

📘

Checkout page

The object form contains the URL of the checkout page. You must redirect your users to this URL after sending the request for them to get the payment instructions.

Transaction Response Fields

FieldDescription
uidThe ID of the transaction created.
typeWill always have a value of payment.
statusThe current status of the transaction. Will be PENDING after creation.
messageThe value that was put in the description field of the request. If omitted, the value will be null.
trackingIdThe tracking ID used in the request. If omitted, the value will be null.
amountThe amount of the transaction.
currencyThe currency of the shop used.
descriptionThe value that was put in the description field of the request. If omitted, the value will be null.
createdAtThe timestamp of the creation date of the transaction.
updatedAtThe time of the last status change of the transaction.
pspTransactionIdThe transaction ID on the side of the PSP.
isValidPaymentMethodDepreciated. Will always have a value of null.
customerThe object containing the customer information. Any unrequired field left out of the request will have a value of null.
formThe object that contains the URL of the checkout that must be used to redirect the user.
paymentMethodAn object containing the name, ID and type of payment method used to create the transaction.
billingAn object containing the amount and currency sent in the request.
conversionInfoDepreciated. Will always have a value of null.

Response Example

{
  "uid": "105433d8-74584-40b1-8f0e-3d543bbc0648",
  "type": "payment",
  "status": "PENDING",
  "message": null,
  "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",
  "isValidPaymentMethod": null,
  "customer": {
    "firstName": "John",
    "lastName": "Doe",
    "middleName": "",
    "country": "BR",
    "city": "Sao Paulo",
    "zip": "",
    "address": "R. Sao Joaquim, 596",
    "phone": "5511999999999",
    "deviceId": "",
    "ip": "81.47.160.151",
    "personalId": "00113562600",
    "uniqueCustomerIdentifier": null,
    "accountCreationDate": null,
    "accountCreationCountry": null,
    "email": "[email protected]"
  },
  "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
  },
  "conversionInfo": null
}