TratowAPI
API aberta · Produtos

Criar fabricante

post/api/open/v1/manufacturers

Em resumo

  • POST /api/open/v1/manufacturers
  • Precisa de chave read_write.
  • Obrigatórios: name.
  • 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
  • namestringobrigatório

    Nome.

    1 a 120 caracteres

Resposta 201

application/json
  • idstring<uuid>obrigatório

    Identificador único (UUID).

  • namestringobrigatório

    Nome.

  • productCountintegerobrigatório

    Quantidade 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"  }'
Resposta
{  "id": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",  "name": "Maria Lima",  "productCount": 1}

Os valores são ilustrativos.