API aberta · Pacotes
Resumo dos saldos de pacotes
get
/api/open/v1/client-packages/balances/summaryEm resumo
GET /api/open/v1/client-packages/balances/summary- Chave
readouread_write. - Sucesso:
200.
AuthorizationstringheaderobrigatórioChave 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/jsonopenPackagesintegerobrigatório-9007199254740991 a 9007199254740991
clientsintegerobrigatório-9007199254740991 a 9007199254740991
openItemsintegerobrigatório-9007199254740991 a 9007199254740991
openValueCentsintegerobrigatórioOpen 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>'{
"openPackages": 1,
"clients": 1,
"openItems": 1,
"openValueCents": 8000,
"expiringSoon": 1,
"expiredWithBalance": 1
}Os valores são ilustrativos.
