Get Transaction
Use this endpoint to get a specific transaction by its id.
Available Environments
- Production
https://api.gateway.com.br/core
Endpoint
- Method:
GET - Endpoint:
/transaction/{id} - Authentication: Bearer token
Path Params
| Name | Type | Required | Description | Validations |
|---|---|---|---|---|
id | string (UUID) | Yes | Transaction identifier | Must be a valid UUID |
Request Example
- cURL
- JavaScript
curl --request GET \
--url https://api.gateway.com.br/core/transaction/553e8400-e29b-41d4-a716-436251480000 \
--header 'Authorization: Bearer your-jwt-token'
const response = await fetch('https://api.gateway.com.br/core/transaction/553e8400-e29b-41d4-a716-436251480000', {
method: 'GET',
headers: {
'Authorization': 'Bearer your-jwt-token'
}
});
const data = await response.json();
Success Response
| Field | Type | Required | Description |
|---|---|---|---|
id | string (UUID) | Yes | Unique identifier of the transaction |
acquirerCode | string | No | Acquirer code |
acquirer | string | Yes | Acquirer of the transaction |
amount | number | Yes | Transaction amount (integer, in cents) |
paymentMethod | string (enum) - PIX | Yes | Payment method |
webhookUrl | string | No | Configured webhook URL |
externalCode | string | No | Your reference code |
paymentReceipt | object | No | Payment receipt (see Sub-Object PaymentReceiptUrl) |
refundReceipt | object | No | Refund receipt (see Sub-Object PaymentReceiptUrl) |
customer | object | No | Customer data (see Sub-Object Customer) |
seller | object | No | Seller data (see Sub-Object Seller) |
isInfoProduct | boolean | Yes | Flag for digital or physical products |
address | object | No | Customer address (see Sub-Object Address) |
items | object[] | No | List of products (see Sub-Object Item) |
metadata | object | No | Metadata |
createdAt | string (ISO) | Yes | Creation date |
status | string (enum) - PENDING, PIX_QRCODE_GENERATED, PAID, PROCESSING_REFUND, PROCESSING_INFRACTION, REFUNDED, INFRACTION, FAILED, BLOCKED | Yes |
|
statusHistory | array | Yes | Status history (see Sub-Object StatusHistory) |
updatedAt | string (ISO) | Yes | Last update date |
amountPaid | number | No | Amount actually paid (integer, in cents) |
paymentDate | string (ISO) | No | Payment date |
infractionDate | string (ISO) | No | Infraction date |
infractionAmount | number | No | Infraction amount (integer, in cents) |
refundDate | string (ISO) | No | Refund date |
refundAmount | number | No | Refund amount (integer, in cents) |
pixResponse | object | No | PIX data (see Sub-Object PixResponse) |
errorMessage | string | No | Error message |
errorMessageRefund | string | No | Refund error message |
endToEnd | string | No | End-to-end identifier of the transaction |
endToEndRefund | string | No | End-to-end identifier of the refund |
payer | object | No | Payer data (see Sub-Object AccountHolder) |
receiver | object | No | Receiver data (see Sub-Object AccountHolder) |
feeAmount | number | No | Fee amount |
Sub-Objects
Customer
| Field | Type | Required | Description |
|---|---|---|---|
ip | string | No | IP |
name | string | Yes | Name |
email | string | No | |
document | object | Yes | Document (see Sub-Object DocumentVo) |
landline | string | No | Landline phone |
mobilePhone | string | No | Mobile phone |
Seller
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name |
document | object | Yes | Document (see Sub-Object DocumentVo) |
DocumentVo
| Field | Type | Required | Description |
|---|---|---|---|
value | string | Yes | Document |
type | string (enum) - CPF, CNPJ | Yes | Document type |
Address
| Field | Type | Required | Description |
|---|---|---|---|
postalCode | string | Yes | Brazilian CEP |
number | string | Yes | House number |
street | string | Yes | Street name |
neighborhood | string | Yes | Neighborhood name |
city | string | Yes | City name |
state | string | Yes | State name or abbreviation |
country | string | Yes | Country name |
complement | string | No | Additional information |
Item
| Field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Title |
unitPrice | number | Yes | Item amount (integer, in cents) |
quantity | number | Yes | Quantity of this item |
description | string | No | Additional information |
StatusHistory (item)
| Field | Type | Required | Description |
|---|---|---|---|
status | string (enum) - PENDING, PIX_QRCODE_GENERATED, PAID, PROCESSING_REFUND, PROCESSING_INFRACTION, REFUNDED, INFRACTION, FAILED, BLOCKED | Yes | Transaction status |
date | string (ISO) | Yes | Date of the status |
durationInMilliseconds | number | Yes | Duration of the status in milliseconds |
PixResponse
| Field | Type | Required | Description |
|---|---|---|---|
uri | string | Yes | Copy-and-paste code of the QR Code |
qrCodeBase64 | string | Yes | QR Code image |
expirationDate | string | Yes | Expiration date of the QR Code |
AccountHolder
| Field | Type | Required | Description |
|---|---|---|---|
type | string (enum) - PF, PJ | Yes | Holder type |
name | string | Yes | Holder name |
document | string | Yes | Holder document |
bankAccount | object | Yes | Bank data (see Sub-Object BankAccount) |
pix | object | Yes | PIX key of the holder (see Sub-Object PixKeyVo) |
BankAccount
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Account type |
digit | string | Yes | Account check digit |
ispb | string | Yes | ISPB of the bank |
PaymentReceiptUrl
| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | URL of the receipt |
expirationDate | string (ISO) | Yes | Expiration date of the receipt |
Response Example
Masked data
Sensitive values may be masked with ***.
{
"id": "553e8400-e29b-41d4-a716-436251480000",
"acquirerCode": "ACQ-123",
"acquirer": "ACQUIRER_EXEMPLO",
"amount": 500,
"paymentMethod": "PIX",
"webhookUrl": "https://sua-api.com/webhooks/transaction",
"externalCode": "TRANSACTION-123",
"paymentReceipt": {
"url": "https://files.exemplo.com.br/receipts/transaction-553e8400-e29b-41d4-a716-436251480000.pdf",
"expirationDate": "2026-04-01T00:00:00.000Z"
},
"refundReceipt": {
"url": "https://files.exemplo.com.br/receipts/transaction-refund-553e8400-e29b-41d4-a716-436251480000.pdf",
"expirationDate": "2026-04-01T00:00:00.000Z"
},
"customer": {
"ip": "123123123123",
"name": "Customer",
"email": "customer@gmail.com",
"document": {
"value": "***123123**",
"type": "CPF"
},
"landline": "12123451234",
"mobilePhone": "12123451234"
},
"seller": {
"name": "Seller",
"document": {
"value": "***123123**",
"type": "CPF"
}
},
"isInfoProduct": false,
"address": {
"postalCode": "54753-800",
"number": "155",
"street": "Rua Santa Mariana",
"neighborhood": "São Pedro",
"city": "Camaragibe",
"state": "Pernambuco",
"country": "Brazil",
"complement": "Casa Azul"
},
"items": [
{
"title": "Fone Bluetooth PulseWave X200",
"unitPrice": 500,
"quantity": 1,
"description": "Fone de ouvido sem fio com cancelamento ativo de ruído, bateria de 30h e microfone embutido. Compatível com Android e iOS."
}
],
"metadata": {
"moeda": "BRL",
"autorizacao": "A1B2C3",
"status": "aprovada"
},
"createdAt": "2026-03-06T12:49:04.681Z",
"status": "REFUNDED",
"statusHistory": [
{
"status": "PENDING",
"date": "2026-03-06T12:49:04.681Z",
"durationInMilliseconds": 1000
},
{
"status": "PIX_QRCODE_GENERATED",
"date": "2026-03-06T12:49:04.681Z",
"durationInMilliseconds": 10000
},
{
"status": "PAID",
"date": "2026-03-06T12:49:04.681Z",
"durationInMilliseconds": 10000
},
{
"status": "PROCESSING_REFUND",
"date": "2026-03-06T12:49:04.681Z",
"durationInMilliseconds": 7000
},
{
"status": "REFUNDED",
"date": "2026-03-06T12:49:04.681Z",
"durationInMilliseconds": 5000
}
],
"updatedAt": "2026-03-06T12:49:04.681Z",
"amountPaid": 500,
"paymentDate": "2026-03-06T12:49:04.681Z",
"infractionDate": "2026-03-06T13:49:04.681Z",
"infractionAmount": 500,
"refundDate": "2026-03-06T14:49:04.681Z",
"refundAmount": 500,
"pixResponse": {
"uri": "00020126580014br.gov.bcb.pix0136123e4567-e89b-12d3-a456-426614174000",
"qrCodeBase64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
"expirationDate": "2026-03-06T12:49:04.681Z"
},
"errorMessage": null,
"errorMessageRefund": null,
"endToEnd": "0123456789",
"endToEndRefund": "0123456789-REFUND",
"payer": {
"type": "PF",
"name": "Fulano de Tal",
"document": "***456789**",
"bankAccount": {
"type": "CHECKING",
"digit": "7",
"ispb": "12345678"
},
"pix": {
"key": "12345678910",
"type": "CPF"
}
},
"receiver": {
"type": "PJ",
"name": "Empresa Exemplo LTDA",
"document": "12345678000199",
"bankAccount": {
"type": "CHECKING",
"digit": "0",
"ispb": "12345678"
},
"pix": {
"key": "contato@exemplo.com",
"type": "EMAIL"
}
},
"feeAmount": 150
}
Possible Errors
| Code | Description | Solution |
|---|---|---|
| 401 | Invalid credentials | Check your credentials |
| 403 | No permission/authorization | Contact support |
| 404 | Record not found | Check the id you provided |
| 422 | Invalid or missing data | Check the format of the data |
| 422 | Validations | Contact support |
| 500 | Internal error | Contact support |