재고
재고 부족 설정 저장
PUT
accessTokenheader
AuthorizationBearer <JWT>Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)
X-Store-Id*string대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다
application/json- body
defaultThreshold*|Range
0 <= value <= 1000000scope*string재고 부족 판정 방식 — TOTAL 위치 합계 · PER_LOCATION 위치별 각각
Value in
"TOTAL""PER_LOCATION"성공
application/json- response
meta*data*error*|nullcurl -X PUT 'https://api.sayren.io/v1/inventory/low-stock-settings' \
-H 'X-Store-Id: string' \
-H 'Content-Type: application/json' \
-d '{
"defaultThreshold": 0,
"scope": "TOTAL"
}'Example Response
{
"meta": {
"status": 200,
"code": "OK",
"message": "OK",
"isSuccess": true
},
"data": {
"defaultThreshold": 0,
"scope": "TOTAL"
},
"error": null
}