상품 일괄 반영
상품 일괄 반영 항목 붙이기
`DRAFT` 작업에 항목을 붙인다(한 번에 100개, 작업당 1,000개). 항목 키는 작업 안에서 유일하다(409 `PRODUCT_IMPORT_DUPLICATE_KEY`). 시작한 작업은 409 `PRODUCT_IMPORT_NOT_DRAFT`
POST
DRAFT 작업에 항목을 붙인다(한 번에 100개, 작업당 1,000개). 항목 키는 작업 안에서 유일하다(409 PRODUCT_IMPORT_DUPLICATE_KEY). 시작한 작업은 409 PRODUCT_IMPORT_NOT_DRAFT
accessTokenheader
AuthorizationBearer <JWT>Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)
importId*stringX-Store-Id*string대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다
application/json- body
items*array<|>Items
1 <= items <= 100성공
application/json- response
meta*data*error*|nullcurl -X POST 'https://api.sayren.io/v1/product-imports/string/items' \
-H 'X-Store-Id: string' \
-H 'Content-Type: application/json' \
-d '{
"items": [
{
"key": "string",
"action": "CREATE",
"product": {
"name": "string",
"categoryId": "string",
"salePrice": 0,
"variants": [
{}
]
}
}
]
}'Example Response
{
"meta": {
"status": 200,
"code": "OK",
"message": "OK",
"isSuccess": true
},
"data": {
"importId": "string",
"status": "string",
"itemCount": 0,
"errors": [
{
"key": "string",
"code": "string",
"message": "string",
"fieldErrors": [
{
"field": "string",
"code": "string",
"message": "string"
}
]
}
],
"results": [
{
"key": "string",
"action": "string",
"productId": "string"
}
],
"createdAt": "string",
"startedAt": "string",
"finishedAt": "string"
},
"error": null
}