TratowAPI
API aberta · Financeiro

Conciliar recebimentos

post/api/open/v1/finance/receivables/settle

Em resumo

  • POST /api/open/v1/finance/receivables/settle
  • Precisa de chave read_write.
  • Obrigatórios: items.
  • 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_write.

Corpo

application/json
  • itemsobject[]obrigatório

    Itens da operação.

    até 500 itens · ao menos 1 item

    Mostrar 3 atributos
    • receivableIdstring<uuid>obrigatório

      Id de recebível (UUID).

    • receivedOnstring<date>obrigatório

      Data de recebido (AAAA-MM-DD).

    • receivedCentsinteger

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

      0 a 9007199254740991

  • financialAccountIdstring<uuid>

    Id de financeira conta (UUID).

Resposta 200

application/json
  • settledintegerobrigatório

    -9007199254740991 a 9007199254740991

  • feeAdjustmentCentsintegerobrigatório

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

    -9007199254740991 a 9007199254740991

curl --request POST \  --url 'https://qa-tratow.ips.app.br/api/open/v1/finance/receivables/settle' \  --header 'Authorization: Bearer <chave>' \  --header 'Content-Type: application/json' \  --data '{    "financialAccountId": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",    "items": [      {        "receivableId": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",        "receivedOn": "2026-11-03",        "receivedCents": 8000      }    ]  }'
Resposta
{  "settled": 1,  "feeAdjustmentCents": 8000}

Os valores são ilustrativos.