快工助手跨境电商知识与商机助手

v2.global_product.update_global_item

Shopee 官方资料 · Shopee Open Platform 接口参考 · 适合开发者

stable本次发布有变化全部展示

来自 Shopee 官方资料快照 ·

打开官方原文 ↗
  1. 当前资料结构化阅读页
  2. 固定快照已留存,可追溯
  3. 官方原文可核对
查看技术与溯源信息
平台 / profile
Shopee / profile.shopee.api_reference
语言
en-US
发布版本
cn-20260909-2
标签
zhuge/sourceplatform/shopeeaudience/developercategory/api_doctopic/apitopic/developer

资料正文

§1 v2.global_product.update_global_item

Update global item. Only for China mainland sellers and Korean sellers.

#

§2 Overview

Overview

FieldValue
ModuleGlobalProduct
API typeMerchant
HTTP methodPOST
Path/api/v2/global_product/update_global_item
Production URLhttps://partner.shopeemobile.com/api/v2/global_product/update_global_item
Sandbox URLhttps://partner.test-stable.shopeemobile.com/api/v2/global_product/update_global_item
Rate limit[0, 0, 0]
PermissionERP System; Seller In House System; Product Management
#

§3 Request parameters

Request parameters

NameTypeRequiredSampleDescription
global_item_idint64Yes100369Id of global item.
category_idint32No7535Category id of global item.
global_item_namestringNoitem nameName of global item.
descriptionstringNoitem descriptionDescription of global item.
global_item_skustringNoitem skuSku of global item.
weightfloatNo100.5The 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.
dimensionobjectNoThe dimension of this global item.; Updating the dimension of this global item will overwrite the dimension of all global models under this global item.
dimension.package_lengthint32No11The length of package for this global item, the unit is CM.
dimension.package_widthint32No11The width of package for this global item, the unit is CM.
dimension.package_heightint32No11The height of package for this global item, the unit is CM.
pre_orderobjectNoPreorder information of global item.; Updating the DTS of global item will overwrite the DTS of all global models under the global item
pre_order.days_to_shipint32Yes3Days to ship.
conditionstringNoNEWCondition of global item, "NEW" or "USED" is available.
imageobjectNoImage information of global item.
image.image_id_liststring[]Yes["c54265d475b85e00ffb2404585e32b6f", "6fb33d484f232510b5f9b169f2758322"]Image id list of global item.
video_upload_idstring[]No["591ab15ea954b9879374765854595600"]Video upload id of global item.
brandobjectNo
brand.brand_idint32No1078Id of brand.
attribute_listobject[]NoItem attributes.
attribute_list.attribute_idint32No1007105ID of attribute.
attribute_list.attribute_value_listobject[]No
attribute_list.attribute_value_list.value_idint32No38173ID 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.
attribute_list.attribute_value_list.original_value_namestringNoRedName 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.
attribute_list.attribute_value_list.value_unitstringNoKgUnit of attribute value.(quantitative attribute only)
description_infoobjectNoNew 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
description_info.extended_descriptionobjectNoIf description_type is extended , Description information should be set by this field.
description_info.extended_description.field_listobject[]NoField of extended description.
description_info.extended_description.field_list.field_typestringNoType of extended description field :values: See Data Definition- description_field_type (text , image).
description_info.extended_description.field_list.textstringNoIf field_type is text, text information will be set by this field.
description_info.extended_description.field_list.image_infoobjectNoIf field_type is image, image url will be set by this field.
description_info.extended_description.field_list.image_info.image_idstringNoImage id.
description_typestringNoValues: 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_infoobjectNo
size_chart_info.size_chartstringNoID 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_info.size_chart_idint64NoID 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
#

§4 Response parameters

Response parameters

NameTypeRequiredSampleDescription
errorstringIndicate error type if hit error. Empty if no error happened.
messagestringIndicate error details if hit error. Empty if no error happened.
warningstringWarning message.
request_idstring98eae35efff24dd0974c21a847127184The identifier for an API request for error tracking.
responseobject
response.global_item_idint64100369Id of updated global item.
#

§5 Common parameters

Common parameters

NameTypeRequiredSampleDescription
partner_idint1Partner ID is assigned upon registration is successful. Required for all requests.
timestamptimestamp1610000000This is to indicate the timestamp of the request. Required for all requests. Expires in 5 minutes.
access_tokenstringc09222e3fc40ffb25fc947f738b1abf1The token for API access, using to identify your permission to the api. Valid for multiple use and expires in 4 hours.
merchant_idint1Shopee’s unique identifier for a merchant. Required for all merchant level requests(CB CNSC user calling global product related APIs).
signstringe318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2Signature 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
#

§6 Request samples

Request samples

#

§7 Payload

Payload

{
    "global_item_id": 3000141126,
    "category_id": 20466,
    "global_item_name": "item name",
    "description": "item description",
    "global_item_sku": "item sku",
    "weight": 100.5,
    "dimension": {
        "package_width": 11,
        "package_height": 11,
        "package_length": 11
    },
    "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"
                }
            ]
        }
    }
}
#

§8 Response sample

Response sample

#

§9 JSON

JSON

{
    "error": "",
    "message": "",
    "warning": "",
    "request_id": "98eae35efff24dd0974c21a847127184",
    "response": {
        "global_item_id": 2800146127
    }
}
#

§10 Error example

Error example

#

§11 JSON

JSON

{
    "error": "product.error_server",
    "message": "server internal error mtsku no found",
    "request_id": "9ed86c14c5d6d9e8595ecb13451f2fb8"
}
#

§12 Errors

Errors

ErrorDescriptionSolution
add_on.add_on_deal_expiredThe expired add on deal can't be edited
error_networkInner http call failed
error_dataparse data failed
error_datadata not exist
error_paramparameter invalid
error_paramThe information you queried is not found.
error_paramWrong parameters, detail: {msg}.
error_serverSomething wrong. Please try later.
error_paramrequest not from gateway
error_authnot all shop is upgraded and confirmed, can not edit item
error_merchant_not_foundMerchant_id is not found.
error_paramInvalid category.
error_paramInvalid attribute. {{.error_info}}
error_paramParameter is not match the constraints, {{.error_info}}.
error_paramInvalid dimension.
error_invalid_days_to_shipInvalid days_to_ship.
error_invalid_category_attributeCategory and attribute not match.
error_invalid_brandInvalid brand
error_invalid_brandBrand ID value should be "0".
error_invalid_brandBrand name required
error_invalid_brandBrand ID required
error_incalid_brandBrand ID or brand name required
error_invalid_attributeMandatory attribute information required
error_invalid_brandBrand information required
error_busi_cannot_get_category_pathGet category path failed. please try later.
error_busi_update_global_item_failedUpdate global item failed, please try later.
error_busi_global_item_not_foundGlobal item not found.
error_busi_global_item_dimension_over_limitGlobal item dimension is over limit.
error_busi_global_item_weight_over_limitGlobal item weight is over limit.
error_busi_global_tier_variation_over_limitGlobal item tier_variation is over limit.
error_busi_global_item_tier_option_over_limitOption of tier_variation is over limit.
error_busi_global_item_sku_over_limitGlobal item sku is over limit.
error_busi_item_days_to_ship_invalidGlobal item days_to_ship is invalid.
error_busi_region_not_supportedUnsupport region.
error_invalid_categoryInvalid category ID {{.error_info}}
error_busi_attribute_errorAttribute NCC value is invalid
error_busi_attribute_errorAttribute NCC is mandatory
error_busi_attribute_errorAttribute BSMI value is invalid
error_busi_attribute_errorAttribute BSMI is mandatory
error_attribute_fda_errorAttribute FDA value is invalid
error_innerOur system is taking some time to respond, please try later.
error_innerSystem error, please try again later or contact the OpenAPI support team.
error_updat_mtsku_fail{{.error_info}}
error_check_language_failcheck language fail, {{.error_info}}
error_price_agp_too_largethe max price is 7 lager the min price
error_check_luc_fail{{.error_info}}
error_check_luc_fail{{.error_info}}
error_check_luc_fail{{.error_info}}
error_check_luc_fail{{.error_info}}
error_check_luc_fail{{.error_info}}
error_check_luc_fail{{.error_info}}
error_check_luc_fail{{.error_info}}
error_check_luc_fail{{.error_info}}
error_check_luc_fail{{.error_info}}
error_check_luc_fail{{.error_info}}
error_check_luc_fail{{.error_info}}
error_repeated_mtskuA similar product has already been uploaded
error_title_len_no_pass{{.error_info}}
error_desc_len_no_pass{{.error_info}}
error_image_hight_no_pass{{.error_info}}
error_image_quantity_no_pass{{.error_info}}
error_category_not_allowed{{.error_info}}
error_wholesale_range_not_allowed{{.error_info}}
error_dts_range_not_allowed{{.error_info}}
error_stock_limit_no_pass{{.error_info}}
error_price_limit_no_pass{{.error_info}}
error_image_width_no_pass{{.error_info}}
error_no_dts_range_not_allowed{{.error_info}}
error_category_is_blockCategory is restricted
error_less_required_attributeMandatory attribute information required
error_less_required_brandBrand information required
error_innerUpdate item failed {{.error_info}}
error_innerUpdate item failed {{.error_info}}
error_paramAttribute format is invalid. NCC field only allows Eng Alphanumeric input
error_innerSystem error, please try again later or contact the OpenAPI support team.
error_innerSystem error, please try again later or contact the OpenAPI support team.
error_permissionGlobal product related shop is not upgraded.
error_desc_image_no_pass{{.error_info}}
error_desc_image_no_pass{{.error_info}}
error_desc_image_no_pass{{.error_info}}
error_desc_image_no_pass{{.error_info}}
error_busi_mpsku_category_prohibited{{.error_info}}
error_param_validateWholesale cannot be used in this category and attributes.
error_param_validateYour current merchant is a special merchant.Please ensure all your shop are under same region
error_authYour shop can not use model level dts
error_param{{.error_info}}
error_desc_image_no_pass{{.error_info}}
error_desc_image_no_pass{{.error_info}}
error_desc_image_no_pass{{.error_info}}
error_desc_image_no_pass{{.error_info}}
error_param{{.error_info}}
error_busiThe merchant/shop has multi warehouse, please input location id
error_incalid_brand{{.error_info}}
error_duplicated_brandBrand already exists
error_system_busyOur system is taking some time to respond, please try later.
error_image_num_min{{.error_info}}
error_incalid_categoryCategory IDs for L1 and L2 do not match.
#

§13 Common errors

Common errors

ErrorDescriptionSolution
error_authpartner_id is invalid
error_authThe App is deleted, and you'll be unable to make any API call.
error_authApp developer’s permissions for authorizations have been restricted. If you’re a seller, contact the developer for more information. If you’re the developer, refer to the Open Platform Console for details.
error_paramThere is no partner_id in query.
error_paramInvalid partner_id.
error_paramno timestamp
error_paramInvalid timestamp
error_paramThere is no sign in query.
error_signWrong sign.
invalid_partner_idInvalid partner_id, please have a check.
error_authNo permission to current api.
error_api_call_restrictedThe App permission for api call have been restricted. If you’re a seller, contact the developer for more information. If you’re the developer, refer to the Open Platform Console for details.
api_suspendedThe API is offline. Please call v2 API instead.
error_limitThe total API call number made by your APP has reached the daily API call limit, please try again after 00: 00 (UTC+08:00)
error_rate_limitToo many requests. You have reached the rate limit. Please try again later.
source_ip_undeclaredRequest Source IP ({ip}) is undeclared. Please declare all your IP addresses in the Shopee Open Platform Console > App list > IP Address Whitelist
error_paramPermission denied. This API is currently offline or the request path is incorrect.
error_paramPartner_id is invalid, should be an integer between 0 and 4294967295.
error_paramno timestamp.
error_paramTimestamp is invalid, should be an integer between 0 and 4294967295.
error_paramTimestamp is expired.
error_partner_key_expiredYour API partner key has expired, please reset the Live API Partner Key in Console to get a new valid partner key to call open api.
error_api_permissionThis app type has no permission to this API.
error_paramThere is no access_token in query.
error_authInvalid access_token.
merchant_no_linkedPartner and merchant has no linked.
invalid_acceess_tokenInvalid access_token, please have a check.
partner_frozenThe Partner has been frozen. Permissions for merchant authorization and API calls have been suspended until permissions are restored.
error_paramThere is no merchant_id in query.
error_parammerchant_id is invalid, should be an integer between 0 and 4294967295.
#

§14 Update log

Update log

DateChange
2025-01-08Add size_chart_info to update size chart
2024-06-21update the description of DTS
2024-05-29update the description of weight and dimension
2022-06-17remove original_brand_name request parameter
2022-02-22add description_info
#