API aberta · Estoque
Configurações de estoque
get
/api/open/v1/stock/settingsEm resumo
GET /api/open/v1/stock/settings- Chave
readouread_write. - 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 ou read_write.
Resposta 200
application/jsonallowNegativebooleanobrigatórioPermite negative.
useWeightedAvgbooleanobrigatórioinventoryPrefillbooleanobrigatóriosuggestionPctintegerobrigatório1 a 500
deductOnenum<string>obrigatórioData 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>'{
"allowNegative": false,
"useWeightedAvg": true,
"inventoryPrefill": true,
"suggestionPct": 1,
"deductOn": "completed"
}Os valores são ilustrativos.
