Lançar contagens do inventário
/api/open/v1/inventories/{id}/countsEm resumo
PUT /api/open/v1/inventories/{id}/counts- Precisa de chave
read_write. - Obrigatórios:
id,counts. - 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_write.
idstringobrigatórioId do registro (UUID).
Corpo
application/jsoncountsobject[]obrigatórioaté 500 itens · ao menos 1 item
Mostrar 2 atributosEsconder atributos
productIdstring<uuid>obrigatórioId de produto (UUID).
countedQtystringpode ser nuloobrigatórioQuantidade counted.
Resposta 200
application/jsonidstring<uuid>obrigatórioIdentificador único (UUID).
statusenum<string>obrigatórioSituação do registro. Os valores aceitos estão no tipo.
Valores aceitos:
opendonecanceledcategoryIdstring<uuid>pode ser nuloobrigatórioId de categoria (UUID).
categoryNamestringpode ser nuloobrigatórioNome de categoria (só leitura).
notesstringpode ser nuloobrigatórioObservações livres.
openedAtstring<date-time>obrigatórioData e hora em que foi aberto (ISO 8601, UTC).
completedAtstring<date-time>pode ser nuloobrigatórioData e hora em que foi concluído (ISO 8601, UTC).
productCountintegerobrigatórioQuantidade de produto.
-9007199254740991 a 9007199254740991
countedCountintegerobrigatórioQuantidade de counted.
-9007199254740991 a 9007199254740991
countsobject[]obrigatórioMostrar 9 atributosEsconder atributos
productIdstring<uuid>obrigatórioId de produto (UUID).
productNamestringobrigatórioNome de produto (só leitura).
unitenum<string>obrigatórioUnidade de medida.
Valores aceitos:
unmlgkglcmmcxpctcountedQtystringpode ser nuloobrigatórioQuantidade counted.
countedAtstring<date-time>pode ser nuloobrigatórioData e hora em que foi counted (ISO 8601, UTC).
systemQtystringobrigatórioQuantidade system.
diffQtystringpode ser nuloobrigatórioQuantidade diff.
diffCostCentsintegerpode ser nuloobrigatórioDiff custo em centavos (100 = R$ 1,00).
-9007199254740991 a 9007199254740991
movedAfterCountQtystringpode ser nuloobrigatórioQuantidade moved after count.
diffTotalCentsintegerpode ser nuloobrigatórioDiff total em centavos (100 = R$ 1,00).
-9007199254740991 a 9007199254740991
curl --request PUT \
--url 'https://qa-tratow.ips.app.br/api/open/v1/inventories/{id}/counts' \
--header 'Authorization: Bearer <chave>' \
--header 'Content-Type: application/json' \
--data '{
"counts": [
{
"productId": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",
"countedQty": "texto"
}
]
}'{
"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,
"counts": [
{
"productId": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",
"productName": "texto",
"unit": "un",
"countedQty": "texto",
"countedAt": "2026-11-03T17:30:00.000Z",
"systemQty": "texto",
"diffQty": "texto",
"diffCostCents": 8000,
"movedAfterCountQty": "texto"
}
],
"diffTotalCents": 8000
}Os valores são ilustrativos.
