Alterar produto
/api/open/v1/products/{id}Em resumo
PATCH /api/open/v1/products/{id}- Precisa de chave
read_write. - Obrigatórios:
id. - 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/jsonnamestringNome.
1 a 120 caracteres
categoryIdstring<uuid>pode ser nuloId de categoria (UUID).
manufacturerIdstring<uuid>pode ser nuloId de fabricante (UUID).
barcodestringpode ser nuloCódigo de barras.
internalCodestringpode ser nuloCódigo interno.
até 40 caracteres
unitenum<string>Unidade de medida.
Valores aceitos:
unmlgkglcmmcxpct
Mostrar mais 7 campos opcionaisEsconder campos opcionais
contentQtystringpode ser nuloQuantidade content.
priceCentsintegerPreço em centavos (8000 = R$ 80,00).
0 a 9007199254740991
lastCostCentsintegerpode ser nuloÚltimo custo em centavos (100 = R$ 1,00).
0 a 9007199254740991
minQtystringEstoque mínimo (abaixo dele entra em estoque baixo).
usageenum<string>Valores aceitos:
resaleinternalbothactivebooleanAtivo (`true`) ou inativo (`false`). Inativos somem das buscas e da agenda.
notesstringpode ser nuloObservações livres.
até 2000 caracteres
Resposta 200
application/jsonidstring<uuid>obrigatórioIdentificador único (UUID).
namestringobrigatórioNome.
categoryIdstring<uuid>pode ser nuloobrigatórioId de categoria (UUID).
categoryNamestringpode ser nuloobrigatórioNome de categoria (só leitura).
manufacturerIdstring<uuid>pode ser nuloobrigatórioId de fabricante (UUID).
manufacturerNamestringpode ser nuloobrigatórioNome de fabricante (só leitura).
barcodestringpode ser nuloobrigatórioCódigo de barras.
internalCodestringpode ser nuloobrigatórioCódigo interno.
unitenum<string>obrigatórioUnidade de medida.
Valores aceitos:
unmlgkglcmmcxpctcontentQtystringpode ser nuloobrigatórioQuantidade content.
priceCentsintegerobrigatórioPreço em centavos (8000 = R$ 80,00).
-9007199254740991 a 9007199254740991
lastCostCentsintegerpode ser nuloobrigatórioÚltimo custo em centavos (100 = R$ 1,00).
-9007199254740991 a 9007199254740991
minQtystringobrigatórioEstoque mínimo (abaixo dele entra em estoque baixo).
usageenum<string>obrigatórioValores aceitos:
resaleinternalbothactivebooleanobrigatórioAtivo (`true`) ou inativo (`false`). Inativos somem das buscas e da agenda.
notesstringpode ser nuloobrigatórioObservações livres.
stockQtystringobrigatórioQuantidade estoque.
avgCostCentsintegerobrigatórioAvg custo em centavos (100 = R$ 1,00).
-9007199254740991 a 9007199254740991
stockValueCentsintegerobrigatórioEstoque valor em centavos (100 = R$ 1,00).
-9007199254740991 a 9007199254740991
stockStatusenum<string>obrigatórioValores aceitos:
okbelow_minzeronegativephotoUrlstringpode ser nuloobrigatóriopadrão: nullURL assinada da foto (expira; não guarde).
createdAtstring<date-time>obrigatórioData e hora em que foi criado (ISO 8601, UTC).
curl --request PATCH \
--url 'https://qa-tratow.ips.app.br/api/open/v1/products/{id}' \
--header 'Authorization: Bearer <chave>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Maria Lima",
"categoryId": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",
"manufacturerId": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",
"barcode": "texto",
"internalCode": "texto",
"unit": "un",
"contentQty": "texto",
"priceCents": 8000,
"lastCostCents": 8000,
"minQty": "texto",
"usage": "resale",
"active": true,
"notes": "Prefere atendimento pela manhã."
}'{
"id": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",
"name": "Maria Lima",
"categoryId": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",
"categoryName": "texto",
"manufacturerId": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",
"manufacturerName": "texto",
"barcode": "texto",
"internalCode": "texto",
"unit": "un",
"contentQty": "texto",
"priceCents": 8000,
"lastCostCents": 8000,
"minQty": "texto",
"usage": "resale",
"active": true,
"notes": "Prefere atendimento pela manhã.",
"stockQty": "texto",
"avgCostCents": 8000,
"stockValueCents": 8000,
"stockStatus": "ok",
"photoUrl": null,
"createdAt": "2026-11-03T17:30:00.000Z"
}Os valores são ilustrativos.
