Skip to main content

v2.global_product.add_global_item

POST /api/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.

Endpoint URL

URL: https://partner.shopeemobile.com/api/v2/global_product/add_global_item

Common Request Parameters

NameTypeSampleDescription
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

Request Parameters

NameTypeRequiredSampleDescription
category_idint64True14695Category id of global item.
global_item_namestringTrueitem name sampleName of global item.
descriptionstringTrueitem description sampleDescription of global item.
global_item_skustringFalseitem sku sampleSku of global item.
imageobjectFalseImage information of global item.
image_id_liststring[]True["c54265d475b85e00ffb2404585e32b6f", "6fb33d484f232510b5f9b169f2758322"]Image id list of global item.
original_pricefloatTrue95.5Original price of global item.
normal_stockint64False100Normal stock of global item.
weightfloatTrue100.5Weight of global item.
dimensionobjectFalseDimension information of global item.
package_lengthint64True11Package length of global item.
package_widthint64True11Package width of global item.
package_heightint64True11Package height of global item.
pre_orderobjectTruePreorder information of global item.
days_to_shipint64True3Days to ship.
conditionstringFalseNEWCondition of global item, "NEW" or "USED" is available.
video_upload_idstring[]False["00a2258551b5a2f0a7c283f877330f93"]Video upload id of global item. Only accept one video_upload_id at most.
brandobjectFalse
brand_idint64False1078Id of brand.
original_brand_namestringFalseNikeOriginal name of brand.
attribute_listobject[]FalseItem attributes.
attribute_idint64False1007105ID of attribute.
attribute_value_listobject[]False
value_idint64False38173ID 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_namestringFalseRedName 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_unitstringFalsekgUnit of attribute value.(quantitative attribute only)
description_infoobjectFalseNew 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_descriptionobjectFalseIf description_type is extended , Description information should be set by this field.
field_listobject[]FalseField of extended description.
field_typestringFalsetype of extended description field :values: See Data Definition- description_field_type (text , image).
textstringFalseIf field_type is text, text information will be set by this field.
image_infoobjectFalseIf field_type is image,image url will be set by this field.
image_idstringFalseImage id.
description_typestringFalseValues: See Data Definition- description_type (normal , extended). If you want to use extended_description, this field must be inputed
seller_stockobject[]Falseseller_stock of global item.
location_idstringFalseCNZlocation_id of stock
stockint32True100stock
ds_cat_rcmd_idstringFalsecategory recommendation service id
size_chart_infoobjectFalse
size_chartstringFalseID 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_idint64FalseID 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

NameTypeSampleDescription
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
global_item_idint641007962Id of added global item.

}, "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 } ] }

No Response Example Set.