TratowAPI
API aberta · Financeiro

Transferir entre contas

post/api/open/v1/finance/transfers

Em resumo

  • POST /api/open/v1/finance/transfers
  • Precisa de chave read_write.
  • Obrigatórios: fromAccountId, toAccountId, amountCents, transferredOn.
  • Sucesso: 201.
  • 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
  • fromAccountIdstring<uuid>obrigatório

    Id de origem conta (UUID).

  • toAccountIdstring<uuid>obrigatório

    Id de destino conta (UUID).

  • amountCentsintegerobrigatório

    Valor em centavos.

    0 a 9007199254740991

  • transferredOnstring<date>obrigatório

    Data de transferred (AAAA-MM-DD).

  • notesstring

    Observações livres.

    até 500 caracteres

Resposta 201

application/json
  • idstring<uuid>obrigatório

    Identificador único (UUID).

  • fromAccountIdstring<uuid>obrigatório

    Id de origem conta (UUID).

  • fromAccountNamestringobrigatório

    Nome de origem conta (só leitura).

  • toAccountIdstring<uuid>obrigatório

    Id de destino conta (UUID).

  • toAccountNamestringobrigatório

    Nome de destino conta (só leitura).

  • amountCentsintegerobrigatório

    Valor em centavos.

    -9007199254740991 a 9007199254740991

  • transferredOnstring<date>obrigatório

    Data de transferred (AAAA-MM-DD).

  • notesstringpode ser nuloobrigatório

    Observações livres.

  • fromCashbooleanobrigatóriopadrão: false
  • createdAtstring<date-time>obrigatório

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

curl --request POST \  --url 'https://qa-tratow.ips.app.br/api/open/v1/finance/transfers' \  --header 'Authorization: Bearer <chave>' \  --header 'Content-Type: application/json' \  --data '{    "fromAccountId": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",    "toAccountId": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",    "amountCents": 8000,    "transferredOn": "2026-11-03",    "notes": "Prefere atendimento pela manhã."  }'
Resposta
{  "id": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",  "fromAccountId": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",  "fromAccountName": "texto",  "toAccountId": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",  "toAccountName": "texto",  "amountCents": 8000,  "transferredOn": "2026-11-03",  "notes": "Prefere atendimento pela manhã.",  "fromCash": false,  "createdAt": "2026-11-03T17:30:00.000Z"}

Os valores são ilustrativos.