API aberta · Produtos
Criar fabricante
post
/api/open/v1/manufacturersEm resumo
POST /api/open/v1/manufacturers- Precisa de chave
read_write. - Obrigatórios:
name. - Sucesso:
201.
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.
Corpo
application/jsonnamestringobrigatórioNome.
1 a 120 caracteres
Resposta 201
application/jsonidstring<uuid>obrigatórioIdentificador único (UUID).
namestringobrigatórioNome.
productCountintegerobrigatórioQuantidade de produto.
-9007199254740991 a 9007199254740991
curl --request POST \
--url 'https://qa-tratow.ips.app.br/api/open/v1/manufacturers' \
--header 'Authorization: Bearer <chave>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Maria Lima"
}'{
"id": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",
"name": "Maria Lima",
"productCount": 1
}Os valores são ilustrativos.
