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

v2.global_product.add_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.add_global_item

Add global item. Only for China mainland sellers using China Seller Centre(CNSC). More details in https://shopee.cn/cooperate/46/53/926.

#

§2 Overview

Overview

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

§3 Request parameters

Request parameters

NameTypeRequiredSampleDescription
category_idint64Yes14695Category id of global item.
global_item_namestringYesitem name sampleName of global item.
descriptionstringYesitem description sampleDescription of global item.
global_item_skustringNoitem sku sampleSku of global item.
imageobjectNoImage information of global item.
image.image_id_liststring[]Yes["c54265d475b85e00ffb2404585e32b6f", "6fb33d484f232510b5f9b169f2758322"]Image id list of global item.
original_pricefloatYes95.5Original price of global item.
normal_stockint64No100Normal stock of global item.
weightfloatYes100.5Weight of global item.
dimensionobjectNoDimension information of global item.
dimension.package_lengthint64Yes11Package length of global item.
dimension.package_widthint64Yes11Package width of global item.
dimension.package_heightint64Yes11Package height of global item.
pre_orderobjectYesPreorder information of global item.
pre_order.days_to_shipint64Yes3Days to ship.
conditionstringYesNEWCondition of global item, USED、Used and used will be mapped to Used; NEW、New and new will be mapped to New.
video_upload_idstring[]No["00a2258551b5a2f0a7c283f877330f93"]Video upload id of global item. Only accept one video_upload_id at most.
brandobjectNo
brand.brand_idint64No1078Id of brand.
brand.original_brand_namestringNoNikeOriginal name of brand.
attribute_listobject[]NoItem attributes.
attribute_list.attribute_idint64No1007105ID of attribute.
attribute_list.attribute_value_listobject[]No
attribute_list.attribute_value_list.value_idint64No38173ID 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, this field must be inputed
seller_stockobject[]Noseller_stock of global item.
seller_stock.location_idstringNoCNZlocation_id of stock
seller_stock.stockint32Yes100stock
ds_cat_rcmd_idstringNocategory recommendation service id
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_idint641007962Id of added 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

{
    "attribute_list":{
        "attribute_id":1007105,
        "attribute_value_list":{
            "original_value_name":"Red",
            "value_id":38173,
            "value_unit":"kg"
        }
    },
    "brand":{
        "brand_id":1078,
        "original_brand_name":"Nike"
    },
    "category_id":14695,
    "condition":"NEW",
    "description":"item description sample",
    "description_info":{
        "extended_description":{
            "field_list":{
                "field_type":"",
                "image_info":{
                    "image_id":""
                },
                "text":""
            }
        }
    },
    "description_type":"",
    "dimension":{
        "package_height":11,
        "package_length":12,
        "package_width":13
    },
    "global_item_name":"item name sample",
    "global_item_sku":"item sku sample",
    "image":{
        "image_id_list":"[\"c54265d475b85e00ffb2404585e32b6f\", \"6fb33d484f232510b5f9b169f2758322\"]"
    },
    "normal_stock":100,
    "original_price":95.5,
    "pre_order":{
        "days_to_ship":3
    },
    "video_upload_id":"[\"00a2258551b5a2f0a7c283f877330f93\"]",
    "weight":100.5,
    "seller_stock":[
        {
            "location_id":"CNZ",
            "stock":100
        }
    ]
}
#

§8 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_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_add_global_item_failedAdd global item failed, please try later. {{.error_info}}
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_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_paramYou have 3PF shops, please upload stock with location id
error_innerInvalid stock location ID
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_stock_less_then_min_limitNormal_stock/ seller_stock is less than min limit.
error_stock_bigger_then_limitNormal_stock/ seller_stock is bigger than max limit.
error_incalid_categoryCategory IDs for L1 and L2 do not match.
#

§9 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.
#

§10 Update log

Update log

DateChange
2026-09-01Condition is required
2025-01-08Add size_chart_info
2024-10-23sunset the normal_stock
2023-05-12add seller_stock parameter
2022-06-17remove original_brand_name request parameter
#