Relatório: pacotes
/api/open/v1/reports/packagesEm resumo
GET /api/open/v1/reports/packages- Chave
readouread_write. - Obrigatórios:
from,to. - 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.
fromstring<date>obrigatórioInício do período (AAAA-MM-DD).
tostring<date>obrigatórioFim do período (AAAA-MM-DD), inclusive.
professionalIdstring<uuid>Id de profissional (UUID).
Resposta 200
application/jsonsoldintegerobrigatório-9007199254740991 a 9007199254740991
soldCentsintegerobrigatórioSold em centavos (100 = R$ 1,00).
-9007199254740991 a 9007199254740991
previousSoldintegerobrigatório-9007199254740991 a 9007199254740991
previousSoldCentsintegerobrigatórioPrevious sold em centavos (100 = R$ 1,00).
-9007199254740991 a 9007199254740991
consumedintegerobrigatório-9007199254740991 a 9007199254740991
openItemsintegerobrigatório-9007199254740991 a 9007199254740991
openValueCentsintegerobrigatórioOpen valor em centavos (100 = R$ 1,00).
-9007199254740991 a 9007199254740991
clientsWithBalanceintegerobrigatório-9007199254740991 a 9007199254740991
expiringSoonintegerobrigatório-9007199254740991 a 9007199254740991
expiredWithBalanceintegerobrigatório-9007199254740991 a 9007199254740991
rankingobject[]obrigatórioMostrar 5 atributosEsconder atributos
idstring<uuid>obrigatórioIdentificador único (UUID).
namestringobrigatórioNome.
soldintegerobrigatório-9007199254740991 a 9007199254740991
totalCentsintegerobrigatórioTotal em centavos.
-9007199254740991 a 9007199254740991
consumedintegerobrigatório-9007199254740991 a 9007199254740991
curl --request GET \
--url 'https://qa-tratow.ips.app.br/api/open/v1/reports/packages?from=2026-11-03&to=2026-11-03' \
--header 'Authorization: Bearer <chave>'{
"sold": 1,
"soldCents": 8000,
"previousSold": 1,
"previousSoldCents": 8000,
"consumed": 1,
"openItems": 1,
"openValueCents": 8000,
"clientsWithBalance": 1,
"expiringSoon": 1,
"expiredWithBalance": 1,
"ranking": [
{
"id": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",
"name": "Maria Lima",
"sold": 1,
"totalCents": 8000,
"consumed": 1
}
]
}Os valores são ilustrativos.
