Saltar al contenido principal

Crear Informe

Utilice este endpoint para crear una solicitud de informe.

Entornos Disponibles​

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

Endpoint​

  • Método: POST
  • Endpoint: /report
  • Autenticación: Bearer token

Body Params​

CampoTipoObligatorioDescripciónValidaciones
typestring (enum) - TRANSACTION, DEPOSIT, WITHDRAWAL, MED, WALLET, ACCOUNT, ACCOUNT_FINANCIAL_SUMMARY, WALLET_DAILY_BALANCESSíTipo del informeDebe ser un enum válido; ACCOUNT y ACCOUNT_FINANCIAL_SUMMARY exigen un usuario con rol de manager
filtersobjectSíFiltros del informe (ver Sub-Objeto Filters)Debe ser un objeto no vacío
⚠️ ACCOUNT y ACCOUNT_FINANCIAL_SUMMARY exigen manager

Estos dos tipos de informe solo pueden ser solicitados por un usuario con rol de manager. Una cuenta sin ese rol recibe 403 al intentar generarlos.

Sub-Objetos​

Filters​

ℹ️ Fechas en ISO

Los campos startDate y endDate deben enviarse como ISO date string con hora.

Ejemplo:

  • 2026-03-06T12:00:00.000Z
⚠️ Intervalo máximo para WALLET_DAILY_BALANCES

Cuando type es WALLET_DAILY_BALANCES, el intervalo entre startDate y endDate no puede superar los 60 días.

CampoTipoObligatorioDescripciónValidaciones
startDatestringSíFecha inicial del filtroDebe ser una ISO date string con hora
endDatestringSíFecha final del filtroDebe ser una ISO date string con hora; si type es WALLET_DAILY_BALANCES, el intervalo entre startDate y endDate debe ser de 60 días como máximo
storeIdstring (UUID v4)NoIdentificador de la tiendaOpcional (envíelo si desea filtrar)
userIdstring (UUID v4)NoIdentificador del usuarioOpcional (envíelo si desea filtrar)
statusstring[] (enum) - PENDING, PIX_QRCODE_GENERATED, PAID, PROCESSING_REFUND, PROCESSING_INFRACTION, REFUNDED, INFRACTION, FAILED, BLOCKED, PROCESSING, PROCESSED, CANCELED, REJECTED, APPEALED, APPROVEDNoEstados para filtrarDebe ser un arreglo no vacío y sin duplicados
paymentMethodstring[] (enum) - PIXNoMétodos de pagoDebe ser un arreglo no vacío y sin duplicados
acquirerstring[]NoAdquirentes del informeDebe ser un arreglo no vacío y sin duplicados

Ejemplo de Solicitud​

curl --request POST \
--url https://api.gateway.com.br/core/report \
--header 'Authorization: Bearer su-token-jwt' \
--header 'Content-Type: application/json' \
--data '{
"type": "TRANSACTION",
"filters": {
"startDate": "2026-03-06T00:00:00.000Z",
"endDate": "2026-03-06T23:59:59.999Z"
}
}'

Respuesta Exitosa​

CampoTipoObligatorioDescripción
idstringSíIdentificador del informe
statusstring (enum)SíEstado del informe (PENDING, PROCESSING, FAILED, PROCESSED)
typestring (enum)SíTipo del informe (TRANSACTION, DEPOSIT, WITHDRAWAL, MED, WALLET, ACCOUNT, ACCOUNT_FINANCIAL_SUMMARY, WALLET_DAILY_BALANCES)

Ejemplo de Respuesta​

{
"id": "553e8400-e29b-41d4-a716-436251480000",
"status": "PENDING",
"type": "TRANSACTION"
}

Errores Posibles​

CódigoDescripciónSolución
401Credenciales inválidasVerifique sus credenciales
403Sin permiso/autorizaciónContacte al soporte
422Datos inválidos o faltantesVerifique el formato de los datos
422ValidacionesContacte al soporte
500Error internoContacte al soporte