Skip to Content
Sayren 유저가이드
상품 일괄 반영

상품 일괄 반영 항목 붙이기

`DRAFT` 작업에 항목을 붙인다(한 번에 100개, 작업당 1,000개). 항목 키는 작업 안에서 유일하다(409 `PRODUCT_IMPORT_DUPLICATE_KEY`). 시작한 작업은 409 `PRODUCT_IMPORT_NOT_DRAFT`

POST
/v1/product-imports/{importId}/items

DRAFT 작업에 항목을 붙인다(한 번에 100개, 작업당 1,000개). 항목 키는 작업 안에서 유일하다(409 PRODUCT_IMPORT_DUPLICATE_KEY). 시작한 작업은 409 PRODUCT_IMPORT_NOT_DRAFT

Authorization

accessToken
headerAuthorizationBearer <JWT>

Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)

Path Parameters

importId*string

Header Parameters

X-Store-Id*string

대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다

Request Body

application/json
  1. body
items*array<|>
Items1 <= items <= 100

Response Body

성공

application/json
  1. response
meta*
data*
error*|null
Example Request
curl -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
}