TratowAPI
API aberta · Financeiro

DRE

get/api/open/v1/finance/dre

Em resumo

  • GET /api/open/v1/finance/dre
  • Chave read ou read_write.
  • Obrigatórios: month.
  • Sucesso: 200.
  • Authorizationstringheaderobrigatório

    Chave de API no formato Bearer ttw_live_<prefixo>_<segredo>, criada em Integrações → Chaves de API. Este endpoint precisa de chave read ou read_write.

  • monthstringobrigatório

    Mês (AAAA-MM).

  • basisenum<string>padrão: "accrual"

    Valores aceitos:accrualcash

Resposta 200

application/json
  • monthstringobrigatório

    Mês (AAAA-MM).

  • basisenum<string>obrigatório

    Valores aceitos:accrualcash

  • linesobject[]obrigatório
    Mostrar 5 atributos
    • keystringobrigatório

      Chave.

    • labelstringobrigatório

      Rótulo exibido.

    • centsintegerobrigatório

      Valor em centavos (100 = R$ 1,00).

      -9007199254740991 a 9007199254740991

    • levelintegerobrigatório

      -9007199254740991 a 9007199254740991

    • informativebooleanobrigatóriopadrão: false
  • grossRevenueCentsintegerobrigatório

    Bruto revenue em centavos (100 = R$ 1,00).

    -9007199254740991 a 9007199254740991

  • netRevenueCentsintegerobrigatório

    Líquido revenue em centavos (100 = R$ 1,00).

    -9007199254740991 a 9007199254740991

  • resultCentsintegerobrigatório

    Result em centavos (100 = R$ 1,00).

    -9007199254740991 a 9007199254740991

  • marginBpintegerpode ser nuloobrigatório

    Margin em pontos-base (100 = 1%).

    -9007199254740991 a 9007199254740991

curl --request GET \  --url 'https://qa-tratow.ips.app.br/api/open/v1/finance/dre?month=2026-11' \  --header 'Authorization: Bearer <chave>'
Resposta
{  "month": "2026-11",  "basis": "accrual",  "lines": [    {      "key": "texto",      "label": "texto",      "cents": 1,      "level": 1,      "informative": false    }  ],  "grossRevenueCents": 8000,  "netRevenueCents": 8000,  "resultCents": 8000,  "marginBp": 1000}

Os valores são ilustrativos.