상품
상품 달력 설정
기간(포함, 최대 400일)의 날짜마다 조합별 재고·가격을 덮어쓴다(없는 날은 만든다). `daysOfWeek`로 요일만 고를 수 있다. `price: null`은 조합 가격으로 되돌린다.
PUT
기간(포함, 최대 400일)의 날짜마다 조합별 재고·가격을 덮어쓴다(없는 날은 만든다). daysOfWeek로 요일만 고를 수 있다. price: null은 조합 가격으로 되돌린다.
accessTokenheader
AuthorizationBearer <JWT>Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)
productId*stringX-Store-Id*string대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다
application/json- body
variantIds*array<string>Items
1 <= items <= 50from*string한국 날짜(YYYY-MM-DD)
Match
^\d{4}-\d{2}-\d{2}$to*string한국 날짜(YYYY-MM-DD)
Match
^\d{4}-\d{2}-\d{2}$stock?integerRange
0 <= value <= 100000price?|Multiple Of
10Range
0 <= valuedaysOfWeek?array<>Items
1 <= items <= 7성공
application/json- response
meta*data*error*|nullcurl -X PUT 'https://api.sayren.io/v1/products/string/calendar' \
-H 'X-Store-Id: string' \
-H 'Content-Type: application/json' \
-d '{
"variantIds": [
"string"
],
"from": "string",
"to": "string"
}'Example Response
{
"meta": {
"status": 200,
"code": "OK",
"message": "OK",
"isSuccess": true
},
"data": {
"updated": 0
},
"error": null
}