Skip to main content

List Reports

Use this endpoint to list reports with filters.

Available Environments​

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

Endpoint​

  • Method: GET
  • Endpoint: /report
  • Authentication: Bearer token

Query Params​

ℹ️ Dates in ISO

The startDate and endDate fields must be sent as an ISO date string with time.

Example:

  • 2026-03-06T12:00:00.000Z
ℹ️ Snapshot pagination

The snapshot is not a pointer to the "next page": it is a fixed identifier of the pagination session, used together with page (which is still sent and incremented normally) to keep the results consistent even if new records are created while you navigate.

Take the snapshot value from the first response (sent without a snapshot on the first request) and resend that same value, unchanged, on the requests for the following pages, along with the same filters and the same perPage used originally. If any of those values changes while an old snapshot is resent, the API returns an error.

NameTypeRequiredDescriptionValidations
snapshotstringNoIdentifier of the pagination session (received in the snapshot field of the first response); resend it unchanged along with page on the following pagesMust match the same filters and the same perPage of the original request
startDatestringNoStart date of the filterMust be an ISO date string with time
endDatestringNoEnd date of the filterMust be an ISO date string with time
statusstring[] (enum) - PENDING, PROCESSING, FAILED, PROCESSEDNoList of statusesMust be a non-empty array with no duplicates
typestring[] (enum) - TRANSACTION, DEPOSIT, WITHDRAWAL, MED, WALLET, ACCOUNT, ACCOUNT_FINANCIAL_SUMMARY, WALLET_DAILY_BALANCESNoList of report typesMust be a non-empty array with no duplicates
originstring[] (enum) - ADMIN, USERNoReport originMust be a non-empty array with no duplicates
idstring (UUID v4)NoReport identifierMust be a valid UUID v4
userNamestringNoUser nameAt most 255 characters
userEmailstringNoUser e-mailMust be a valid e-mail

Request Example​

curl --request GET \
--url "https://api.gateway.com.br/core/report?status=PROCESSED&type=TRANSACTION&origin=USER" \
--header 'Authorization: Bearer your-jwt-token'

Success Response​

FieldTypeRequiredDescription
totalPagesnumberYesTotal pages
currentPagenumberYesCurrent page
perPagenumberYesItems per page
snapshotstringNoIdentifier of the pagination session; resend it unchanged on the following pages
dataarrayYesList of reports (see Sub-Object ListItem)

Sub-Objects​

ListItem​

FieldTypeRequiredDescription
idstringYesReport identifier
statusstring (enum)YesReport status (PENDING, PROCESSING, FAILED, PROCESSED)
typestring (enum)YesReport type (TRANSACTION, DEPOSIT, WITHDRAWAL, MED, WALLET, ACCOUNT, ACCOUNT_FINANCIAL_SUMMARY, WALLET_DAILY_BALANCES)
userobjectYesUser data (see Sub-Object User)
originstring (enum)NoReport origin (ADMIN, USER)
filtersobjectYesFilters used in the report (see Sub-Object Filters)
fileobjectNoReport file (see Sub-Object File)
expirationDatestring (ISO)NoFile expiration date
errorMessagestringNoError message
createdAtstring (ISO)YesCreation date
updatedAtstring (ISO)YesLast update date

User​

FieldTypeRequiredDescription
idstringYesUser identifier
namestringYesUser name
emailstringYesUser e-mail

Filters​

FieldTypeRequiredDescription
startDatestringYesStart date of the filter
endDatestringYesEnd date of the filter
storeIdstring (UUID v4)NoStore identifier
userIdstring (UUID v4)NoUser identifier
statusstring[]NoList of statuses applied
paymentMethodstring[]NoPayment methods
acquirerstring[]NoAcquirers of the report

File​

FieldTypeRequiredDescription
keystringYesFile key
isPrivatebooleanYesWhether the file is private
urlstringYesURL to access the file

Response Example​

{
"totalPages": 1,
"currentPage": 1,
"perPage": 15,
"snapshot": "b3BhcXVlLXNuYXBzaG90LXRva2Vu",
"data": [
{
"id": "553e8400-e29b-41d4-a716-436251480000",
"status": "PROCESSED",
"type": "TRANSACTION",
"user": {
"id": "553e8400-e29b-41d4-a716-436251480111",
"name": "Loja Exemplo",
"email": "contato@lojaexemplo.com"
},
"origin": "USER",
"filters": {
"startDate": "2026-03-06T00:00:00.000Z",
"endDate": "2026-03-06T23:59:59.999Z",
"status": ["PAID"],
"paymentMethod": ["PIX"]
},
"file": {
"key": "report-2026-03-06-553e8400-e29b-41d4-a716-436251480000-CSV",
"isPrivate": true,
"url": "signed-url"
},
"expirationDate": null,
"errorMessage": null,
"createdAt": "2026-03-06T12:49:04.681Z",
"updatedAt": "2026-03-06T12:49:04.681Z"
}
]
}

Possible Errors​

CodeDescriptionSolution
401Invalid credentialsCheck your credentials
403No permission/authorizationContact support
422Invalid or missing dataCheck the format of the data
422ValidationsContact support
500Internal errorContact support