Skip to main content

Get Transaction

Use this endpoint to get a specific transaction by its id.

Available Environments​

https://api.gateway.com.br/core

Endpoint​

  • Method: GET
  • Endpoint: /transaction/{id}
  • Authentication: Bearer token

Path Params​

NameTypeRequiredDescriptionValidations
idstring (UUID)YesTransaction identifierMust be a valid UUID

Request Example​

curl --request GET \
--url https://api.gateway.com.br/core/transaction/553e8400-e29b-41d4-a716-436251480000 \
--header 'Authorization: Bearer your-jwt-token'

Success Response​

FieldTypeRequiredDescription
idstring (UUID)YesUnique identifier of the transaction
acquirerCodestringNoAcquirer code
acquirerstringYesAcquirer of the transaction
amountnumberYesTransaction amount (integer, in cents)
paymentMethodstring (enum) - PIXYesPayment method
webhookUrlstringNoConfigured webhook URL
externalCodestringNoYour reference code
paymentReceiptobjectNoPayment receipt (see Sub-Object PaymentReceiptUrl)
refundReceiptobjectNoRefund receipt (see Sub-Object PaymentReceiptUrl)
customerobjectNoCustomer data (see Sub-Object Customer)
sellerobjectNoSeller data (see Sub-Object Seller)
isInfoProductbooleanYesFlag for digital or physical products
addressobjectNoCustomer address (see Sub-Object Address)
itemsobject[]NoList of products (see Sub-Object Item)
metadataobjectNoMetadata
createdAtstring (ISO)YesCreation date
statusstring (enum) - PENDING, PIX_QRCODE_GENERATED, PAID, PROCESSING_REFUND, PROCESSING_INFRACTION, REFUNDED, INFRACTION, FAILED, BLOCKEDYes
  • PENDING: Transaction created, awaiting processing
  • PIX_QRCODE_GENERATED: PIX QR Code generated, awaiting payment
  • PAID: Transaction paid
  • PROCESSING_REFUND: Refund being processed
  • PROCESSING_INFRACTION: Infraction being processed
  • REFUNDED: Transaction refunded
  • INFRACTION: Transaction refunded (MED)
  • FAILED: Processing error
  • BLOCKED: Blocked because a MED was opened
statusHistoryarrayYesStatus history (see Sub-Object StatusHistory)
updatedAtstring (ISO)YesLast update date
amountPaidnumberNoAmount actually paid (integer, in cents)
paymentDatestring (ISO)NoPayment date
infractionDatestring (ISO)NoInfraction date
infractionAmountnumberNoInfraction amount (integer, in cents)
refundDatestring (ISO)NoRefund date
refundAmountnumberNoRefund amount (integer, in cents)
pixResponseobjectNoPIX data (see Sub-Object PixResponse)
errorMessagestringNoError message
errorMessageRefundstringNoRefund error message
endToEndstringNoEnd-to-end identifier of the transaction
endToEndRefundstringNoEnd-to-end identifier of the refund
payerobjectNoPayer data (see Sub-Object AccountHolder)
receiverobjectNoReceiver data (see Sub-Object AccountHolder)
feeAmountnumberNoFee amount

Sub-Objects​

Customer​

FieldTypeRequiredDescription
ipstringNoIP
namestringYesName
emailstringNoE-mail
documentobjectYesDocument (see Sub-Object DocumentVo)
landlinestringNoLandline phone
mobilePhonestringNoMobile phone

Seller​

FieldTypeRequiredDescription
namestringYesName
documentobjectYesDocument (see Sub-Object DocumentVo)

DocumentVo​

FieldTypeRequiredDescription
valuestringYesDocument
typestring (enum) - CPF, CNPJYesDocument type

Address​

FieldTypeRequiredDescription
postalCodestringYesBrazilian CEP
numberstringYesHouse number
streetstringYesStreet name
neighborhoodstringYesNeighborhood name
citystringYesCity name
statestringYesState name or abbreviation
countrystringYesCountry name
complementstringNoAdditional information

Item​

FieldTypeRequiredDescription
titlestringYesTitle
unitPricenumberYesItem amount (integer, in cents)
quantitynumberYesQuantity of this item
descriptionstringNoAdditional information

StatusHistory (item)​

FieldTypeRequiredDescription
statusstring (enum) - PENDING, PIX_QRCODE_GENERATED, PAID, PROCESSING_REFUND, PROCESSING_INFRACTION, REFUNDED, INFRACTION, FAILED, BLOCKEDYesTransaction status
datestring (ISO)YesDate of the status
durationInMillisecondsnumberYesDuration of the status in milliseconds

PixResponse​

FieldTypeRequiredDescription
uristringYesCopy-and-paste code of the QR Code
qrCodeBase64stringYesQR Code image
expirationDatestringYesExpiration date of the QR Code

AccountHolder​

FieldTypeRequiredDescription
typestring (enum) - PF, PJYesHolder type
namestringYesHolder name
documentstringYesHolder document
bankAccountobjectYesBank data (see Sub-Object BankAccount)
pixobjectYesPIX key of the holder (see Sub-Object PixKeyVo)

BankAccount​

FieldTypeRequiredDescription
typestringYesAccount type
digitstringYesAccount check digit
ispbstringYesISPB of the bank

PaymentReceiptUrl​

FieldTypeRequiredDescription
urlstringYesURL of the receipt
expirationDatestring (ISO)YesExpiration 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​

CodeDescriptionSolution
401Invalid credentialsCheck your credentials
403No permission/authorizationContact support
404Record not foundCheck the id you provided
422Invalid or missing dataCheck the format of the data
422ValidationsContact support
500Internal errorContact support