v2.global_product.update_global_item
POST /api/v2/global_product/update_global_item
Update global item. Only for China mainland sellers and Korean sellers.
Endpoint URL
URL: https://partner.shopeemobile.com/api/v2/global_product/update_global_item
Common Request Parameters
| Name | Type | Sample | Description |
|---|---|---|---|
| partner_id | int | 1 | Partner ID is assigned upon registration is successful. Required for all requests. |
| timestamp | timestamp | 1610000000 | This is to indicate the timestamp of the request. Required for all requests. Expires in 5 minutes. |
| access_token | string | c09222e3fc40ffb25fc947f738b1abf1 | The token for API access, using to identify your permission to the api. Valid for multiple use and expires in 4 hours. |
| merchant_id | int | 1 | Shopee’s unique identifier for a merchant. Required for all merchant level requests(CB CNSC user calling global product related APIs). |
| sign | string | e318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2 | Signature generated by partner_id, api path, timestamp, access_token, merchant_id and partner_key via HMAC-SHA256 hashing algorithm. More details: https://open.shopee.com/documents?module=87&type=2&id=58&version=2 |
Request Parameters
| Name | Type | Required | Sample | Description |
|---|---|---|---|---|
| global_item_id | int64 | True | 100369 | Id of global item. |
| category_id | int32 | False | 7535 | Category id of global item. |
| global_item_name | string | False | item name | Name of global item. |
| description | string | False | item description | Description of global item. |
| global_item_sku | string | False | item sku | Sku of global item. |
| weight | float | False | 100.5 | The weight of this global item, the unit is KG. Updating the weight of this global item will overwrite the weight of all global models under this global item. |
| dimension | object | False | The dimension of this global item. Updating the dimension of this global item will overwrite the dimension of all global models under this global item. | |
| package_length | int32 | False | 11 | The length of package for this global item, the unit is CM. |
| package_width | int32 | False | 11 | The width of package for this global item, the unit is CM. |
| package_height | int32 | False | 11 | The height of package for this global item, the unit is CM. |
| pre_order | object | False | Preorder information of global item. Updating the DTS of global item will overwrite the DTS of all global models under the global item | |
| days_to_ship | int32 | True | 3 | Days to ship. |
| condition | string | False | NEW | Condition of global item, "NEW" or "USED" is available. |
| image | object | False | Image information of global item. | |
| image_id_list | string[] | True | ["c54265d475b85e00ffb2404585e32b6f", "6fb33d484f232510b5f9b169f2758322"] | Image id list of global item. |
| video_upload_id | string[] | False | ["591ab15ea954b9879374765854595600"] | Video upload id of global item. |
| brand | object | False | ||
| brand_id | int32 | False | 1078 | Id of brand. |
| attribute_list | object[] | False | Item attributes. | |
| attribute_id | int32 | False | 1007105 | ID of attribute. |
| attribute_value_list | object[] | False | ||
| value_id | int32 | False | 38173 | ID of attribute value. In the following cases, the value id needs to be uploaded as 0, and original_value_name is mandatory, needs to be filled in customized value. (1) AttributeInputType is TEXT_FILED; (2) AttributeInputType is COMBO_BOX or MULTIPLE_SELECT_COMBO_BOX, and the seller want to fill in a customized value. |
| original_value_name | string | False | Red | Name of attribute value. original_value_name from global_product.get_attributes api. If value id=0, this field is required. If AttributeType is DATE_TYPE or TIMESTAMP_TYPE, you can upload timestamp(string type) as the original_value_name. |
| value_unit | string | False | Kg | Unit of attribute value.(quantitative attribute only) |
| description_info | object | False | New description field. New description field. Only whitelist sellers can use it. If you use the field, please upload the description_type=extended otherwise api will return error. If you don't use this field, you don't need to upload the description_type or upload description_type=normal | |
| extended_description | object | False | If description_type is extended , Description information should be set by this field. | |
| field_list | object[] | False | Field of extended description. | |
| field_type | string | False | Type of extended description field :values: See Data Definition- description_field_type (text , image). | |
| text | string | False | If field_type is text, text information will be set by this field. | |
| image_info | object | False | If field_type is image, image url will be set by this field. | |
| image_id | string | False | Image id. | |
| description_type | string | False | Values: See Data Definition- description_type (normal , extended). If you want to use extended_description or change description type ,this field must be inputed | |
| size_chart_info | object | False | ||
| size_chart | string | False | ID of size chart image. If you want to remove the image size chart of the item, please pass the "size_chart" empty. You only need to fill out either the image or template. If both are filled, only the template will be kept. Notes: Both CB shops and local shops are supported to set "size_chart". | |
| size_chart_id | int64 | False | ID of template size chart. If you want to remove the template size chart of the item, please pass the "size_chart_id" as 0. You only need to fill out either the image or template. If both are filled, only the template will be kept. Notes: Both local shops and CB shops are supported to set "size_chart_id" now and seller need set the size_chart template in CBSC in advance |
Response Parameters
| Name | Type | Sample | Description |
|---|---|---|---|
| error | string | Indicate error type if hit error. Empty if no error happened. | |
| message | string | Indicate error details if hit error. Empty if no error happened. | |
| warning | string | Warning message. | |
| request_id | string | 98eae35efff24dd0974c21a847127184 | The identifier for an API request for error tracking. |
| response | object | ||
| global_item_id | int64 | 100369 | Id of updated global item. |
, "pre_order": { "days_to_ship": 2 }, "condition": "NEW", "image": { "image_id_list": [ "c54265d475b85e00ffb2404585e32b6f", "6fb33d484f232510b5f9b169f2758322" ] }, "video_upload_id": [ "591ab15ea954b9879374765854595600" ], "attribute_list": [{ "attribute_id": 5357, "attribute_value_list": [ { "value_id":0, "original_value_name":"red", "value_unit":"kg" } ] }], "brand":{ "brand_id":123 }, "description_type":"extended", "description_info":{ "extended_description":{ "field_list":[ { "field_type":"text", "text":"text description 1" }, { "field_type":"image", "image_info":{ "image_id":"1e076dff0699d8e778c06dd6c02df1fe" } }, { "field_type":"image", "image_info":{ "image_id":"c07ac95ba7bb624d731e37fe2f0349de" } }, { "field_type":"text", "text":"text description 1" } ] } } }