TratowAPI
API aberta · Pacotes

Resumo dos saldos de pacotes

get/api/open/v1/client-packages/balances/summary

Em resumo

  • GET /api/open/v1/client-packages/balances/summary
  • Chave read ou read_write.
  • 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.

Resposta 200

application/json
  • openPackagesintegerobrigatório

    -9007199254740991 a 9007199254740991

  • clientsintegerobrigatório

    -9007199254740991 a 9007199254740991

  • openItemsintegerobrigatório

    -9007199254740991 a 9007199254740991

  • openValueCentsintegerobrigatório

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

    -9007199254740991 a 9007199254740991

  • expiringSoonintegerobrigatório

    -9007199254740991 a 9007199254740991

  • expiredWithBalanceintegerobrigatório

    -9007199254740991 a 9007199254740991

curl --request GET \  --url 'https://qa-tratow.ips.app.br/api/open/v1/client-packages/balances/summary' \  --header 'Authorization: Bearer <chave>'
Resposta
{  "openPackages": 1,  "clients": 1,  "openItems": 1,  "openValueCents": 8000,  "expiringSoon": 1,  "expiredWithBalance": 1}

Os valores são ilustrativos.