TratowAPI
API aberta · Checkout: saldos do cliente

Saldos do cliente (crédito e dívida)

get/api/open/v1/clients/{id}/balances

Em resumo

  • GET /api/open/v1/clients/{id}/balances
  • Chave read ou read_write.
  • Obrigatórios: id.
  • 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.

  • idstringobrigatório

    Id do registro (UUID).

Resposta 200

application/json
  • creditCentsintegerobrigatório

    Crédito em centavos (100 = R$ 1,00).

    -9007199254740991 a 9007199254740991

  • debtCentsintegerobrigatório

    Dívida em centavos (100 = R$ 1,00).

    -9007199254740991 a 9007199254740991

  • updatedAtstring<date-time>pode ser nuloobrigatório

    Data e hora em que foi atualizado (ISO 8601, UTC).

curl --request GET \  --url 'https://qa-tratow.ips.app.br/api/open/v1/clients/{id}/balances' \  --header 'Authorization: Bearer <chave>'
Resposta
{  "creditCents": 8000,  "debtCents": 8000,  "updatedAt": "2026-11-03T17:30:00.000Z"}

Os valores são ilustrativos.