상품 코드(sku)로 상품을 찾아 정보를 수정합니다.
- 상품 sku값이 반드시 필요합니다.
- 상품 URL을 수정하고자 할 경우 상품 id 혹은 상품 sku로 수정해야 합니다.
PUT https://papi.shoplive.cloud/v1/goods/{accessKey}/sku
REQUEST
Parameter | Type | Source | Description | Required | Note |
---|---|---|---|---|---|
accessKey | string | path | 발급 받은 accessKey | O | 샵라이브에서 발급받은 고객사의 키 |
Authorization | string | header | JWT 인증 토큰 | O | |
body | Goods | body | 상품 데이터 객체 | O | 수정하고자 하는 상품 정보 |
RESPONSE
Parameter | Type | Description | Note |
---|---|---|---|
body | Goods | 수정된 상품 정보 |
curl --location --request PUT 'https://papi.shoplive.cloud/v1/goods/{access key}/sku' \
--header 'Authorization: Bearer {jwt token}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "상품명1_1",
"brand": "shoplive",
"description": null,
"url": "https://www.shoplive.cloud",
"sku": "shoplive-goods-1",
"mediaUrl": "https://shopping-phinf.pstatic.net/main_2658650/26586502065.jpg",
"originalPrice": 700000.0,
"discountedPrice": 490000.0,
"discountPercentage": 30.0
}'
{
"id": 729,
"name": "상품명1_1",
"brand": "shoplive",
"description": null,
"url": "https://www.shoplive.cloud",
"sku": "shoplive-goods-1",
"mediaUrl": "https://shopping-phinf.pstatic.net/main_2658650/26586502065.jpg",
"medias": [
{
"id": 728,
"mediaType": "IMAGE",
"url": "https://resource.shoplive.cloud/images/2be33800-4977-4ded-be1f-29ebda7bfee8.jpg",
"size": 18501,
"width": 500,
"height": 500,
"thumbnails": [
{
"imageUrl": "https://resource.shoplive.cloud/images/2be33800-4977-4ded-be1f-29ebda7bfee8_w120.jpg",
"original": false,
"width": 120,
"height": 120,
"size": 2323
},
{
"imageUrl": "https://resource.shoplive.cloud/images/2be33800-4977-4ded-be1f-29ebda7bfee8_w240.jpg",
"original": false,
"width": 240,
"height": 240,
"size": 5675
},
{
"imageUrl": "https://resource.shoplive.cloud/images/2be33800-4977-4ded-be1f-29ebda7bfee8_w480.jpg",
"original": false,
"width": 480,
"height": 480,
"size": 15871
}
]
}
],
"originalPrice": 700000.0,
"discountedPrice": 490000.0,
"currency": "KRW",
"discountPercentage": 30.0
}