TratowAPI
API aberta · Estoque

Listar inventários

get/api/open/v1/inventories

Em resumo

  • GET /api/open/v1/inventories
  • Chave read ou read_write.
  • Sucesso: 200 com uma lista.
  • 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.

Resposta 200

lista de objetos
  • idstring<uuid>obrigatório

    Identificador único (UUID).

  • statusenum<string>obrigatório

    Situação do registro. Os valores aceitos estão no tipo.

    Valores aceitos:opendonecanceled

  • categoryIdstring<uuid>pode ser nuloobrigatório

    Id de categoria (UUID).

  • categoryNamestringpode ser nuloobrigatório

    Nome de categoria (só leitura).

  • notesstringpode ser nuloobrigatório

    Observações livres.

  • openedAtstring<date-time>obrigatório

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

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

    Data e hora em que foi concluído (ISO 8601, UTC).

  • productCountintegerobrigatório

    Quantidade de produto.

    -9007199254740991 a 9007199254740991

  • countedCountintegerobrigatório

    Quantidade de counted.

    -9007199254740991 a 9007199254740991

curl --request GET \  --url 'https://qa-tratow.ips.app.br/api/open/v1/inventories' \  --header 'Authorization: Bearer <chave>'
Resposta
[  {    "id": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",    "status": "open",    "categoryId": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",    "categoryName": "texto",    "notes": "Prefere atendimento pela manhã.",    "openedAt": "2026-11-03T17:30:00.000Z",    "completedAt": "2026-11-03T17:30:00.000Z",    "productCount": 1,    "countedCount": 1  }]

Os valores são ilustrativos.