TratowAPI
API aberta · Estoque

Configurações de estoque

get/api/open/v1/stock/settings

Em resumo

  • GET /api/open/v1/stock/settings
  • Chave read ou read_write.
  • Sucesso: 200.
  • 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

application/json
  • allowNegativebooleanobrigatório

    Permite negative.

  • useWeightedAvgbooleanobrigatório
  • inventoryPrefillbooleanobrigatório
  • suggestionPctintegerobrigatório

    1 a 500

  • deductOnenum<string>obrigatório

    Data de deduct (AAAA-MM-DD).

    Valores aceitos:completedcheckout

curl --request GET \  --url 'https://qa-tratow.ips.app.br/api/open/v1/stock/settings' \  --header 'Authorization: Bearer <chave>'
Resposta
{  "allowNegative": false,  "useWeightedAvg": true,  "inventoryPrefill": true,  "suggestionPct": 1,  "deductOn": "completed"}

Os valores são ilustrativos.