Chuyển tới nội dung chính

v2.product.add_item

POST /api/v2/product/add_item

Add a new item.

Đường dẫn Endpoint

URL: https://partner.shopeemobile.com/api/v2/product/add_item

Tham số chung

TênKiểuMẫuMô tả
partner_idint1Partner ID được gán khi đăng ký thành công. Bắt buộc cho tất cả các yêu cầu.
timestamptimestamp1610000000Dùng để chỉ định thời gian của yêu cầu. Bắt buộc cho tất cả các yêu cầu. Hết hạn sau 5 phút.
access_tokenstringc09222e3fc40ffb25fc947f738b1abf1Token truy cập API, dùng để xác định quyền của bạn đối với API. Có thể sử dụng nhiều lần và hết hạn sau 4 giờ.
shop_idint600000Mã định danh duy nhất của Shopee cho một cửa hàng. Tham số bắt buộc cho hầu hết các API.
signstringe318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2Signature generated by partner_id, api path, timestamp, access_token, shop_id and partner_key via HMAC-SHA256 hashing algorithm. More details: https://open.shopee.com/documents?module=87&type=2&id=58&version=2

Tham số Request

TênKiểuBắt buộcMẫuMô tả
original_pricefloatTrue123.3Item price
descriptionstringTrueitem description testif description_type is normal , Description information should be set by this field.
weightfloatTrue1.1The weight of this item, the unit is KG.
item_namestringTrueItem Name ExampleTên sản phẩm
item_statusstringFalseUNLISTTrạng thái sản phẩm, could be UNLIST or NORMAL
dimensionobjectFalseThe dimension of this item.
package_heightint32True11The height of package for this item, the unit is CM.
package_lengthint32True11The length of package for this item, the unit is CM.
package_widthint32True11The width of package for this item, the unit is CM.
logistic_infoobject[]TrueKênh vận chuyển setting
size_idint32False0Size ID, If specify logistic fee_type is SIZE_SELECTION size_id is required.
shipping_feefloatFalse23.12Phí vận chuyển, Only needed when logistics fee_type = CUSTOM_PRICE.
enabledbooleanTruetrueWhether channel is enabled for this item
logistic_idint32True80101ID of the channel
is_freebooleanFalsefalseWhether cover phí vận chuyển for buyer
attribute_listobject[]FalseThis field is optional(expect Indonesia) depending on the specific attribute under different categories. Should call shopee.item.GetAttributes to get attribute first. Must contain all all mandatory attribute.
attribute_idint32True4990ID of attribute
attribute_value_listobject[]False
value_idint32True32142Value ID. 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_namestringFalseBrandValue name. original_value_name from product.get_attributes api. If value id=0, this field is required. If AttributeType is DATE_TYPE or TIMESTAMP_TYPE, you can thời gian tải lênstamp(string type) as the original_value_name.
value_unitstringFalsekgUnit of giá trị thuộc tính (quantitative attribute only).
category_idint32True14695ID of category
imageobjectTrueItem images
image_id_liststring[]TrueID of image
image_ratiostringFalseRatio of image, OptionalAllowed ratios : "1:1" (default)  "3:4" only applicable to whitelisted seller.
pre_orderobjectFalsePre order setting
is_pre_orderbooleanTruefalseWhether item is pre order
days_to_shipint32False3The guaranteed số ngày giao hàng orders. Please get the days_to_ship range from get_dts_limit api
item_skustringFalseSKU tag of item
conditionstringFalseNEWTình trạng of item, could be USED or NEW
wholesaleobject[]FalseWholesale setting
min_countint32True1Tối thiểu count of this tier
max_countint32True100Tối đa count of this tier
unit_pricefloatTrue28.3Unit price of this tier
video_upload_idstring[]False["sg_f4bde9bc-ff3c-485e-a6dd-3161dab4b942_000000"]Video upload ID returned from video uploading API. Only accept one video_upload_id.
brandobjectFalse
brand_idint32True0Id of brand.
original_brand_namestringTruenikeOriginal name of brand( No Brand if not brand).
item_dangerousint32False0This field is only applicable for local sellers in Indonesia and Malaysia. Use this field to identify whether a product is a dangerous product. 0 for non-dangerous product and 1 for dangerous product. For more information, please visit the market's respective Seller Education Hub.
tax_infoobjectFalseTax information
ncmstringFalseMercosur Common Nomenclature, it is a convention between Mercosur member countries to easily recognize goods, services and productive factors negotiated among themselves. (BR region) NCM must have 8 digits, OR, if your item doesn't have a NCM enter the value "00"
same_state_cfopstringFalseTax Code of Operations and Installments for orders that seller and buyer are in the same state. It identifies a specific operation by category at thời gian của issuing the invoice.(BR region)
diff_state_cfopstringFalseTax Code of Operations and Installments for orders that seller and buyer are in different states. It identifies a specific operation by category at thời gian của issuing the invoice.(BR region)
csosnstringFalseCode of Operation Status – Simples Nacional, code for company operations to identify the origin of the goods and the taxation regime of the operations.(BR region)
originstringFalseProduct source, domestic or foreig (BR region).
ceststringFalseTax Replacement Specifying Code (CEST), to separate within the same NCM products that do or do not have ICMS tax substitution. (BR region) CEST must have 7 digits, OR, if your item doesn't have a CEST enter the value "00".
measure_unitstringFalse(BR region)
tax_typeint32Falsetax_type only for TW whitelist shop. Shopee will referred Tax type when substitute sellers for issuing e-receipts to buyers. All variations share the same tax type. The meaning of value: 0: no tax type 1: tax-able 2: tax-free
pisstringFalseOnly for BR shop. PIS - Programa de Integração Social (Social Integration Program). It is a government tax to collect resources for the payment of unemployment insurance and other employee related rights. PIS % - the tax applied to this product
cofinsstringFalseOnly for BR shop. COFINS – Contribuição para Financiamento da Seguridade Social (Contribution for Social Security Funding). It is a government tax to collect resources for public health system and social security. COFINS % - the tax applied to this product
icms_cststringFalseOnly for BR shop. ICMS - Imposto sobre Circulação de Mercadorias e Serviços (Circulation of Goods and Services Tax). CST - Código da Situação Tributária (Tax Situation Code) is represented by a combination of 3 numbers with the purpose of demonstrating the origin of a product and determining the form of taxation that will apply to it. Therefore, each digit in the CST Table has a specific meaning: the first digit indicates the origin of the operation, the second digit represents the ICMS taxation on the operation and the third digit provides additional information about the form of taxation.
pis_cofins_cststringFalseOnly for BR shop. The CST PIS/Cofins is a code on the Electronic Invoice (NF-e) that identifies the tax situation of PIS (Programa de Integração Social) and Cofins (Contribuição para o Financiamento da Seguridade Social) in sales of goods.
federal_state_taxesstringFalseOnly for BR shop. Enter the total percentage of the combination of federal, state, and municipal taxes, using up to two decimals.
operation_typestringFalseOnly for BR shop. 1: Retailer 2: Manufacturer
ex_tipistringFalseOnly for BR shop. The EXTIPI field in the NF-e (Nota Fiscal Eletrônica) is used to indicate if there's an exception to the IPI (Imposto sobre Produtos Industrializados) tax rate for a specific product.
fci_numstringFalseOnly for BR shop. The FCI Control Number is a mã định danh duy nhất assigned to each import FCI (Import Content Form). It's mandatory on the corresponding NF-e (electronic invoice) to ensure compliance with Brazilian import tax regulations.
recopi_numstringFalseOnly for BR shop. RECOPI NACIONAL is a Brazilian government system that facilitates the registration and management of tax-exempt operations involving paper destined for printing books, newspapers, and periodicals (known as "papel imune" in Portuguese).
additional_infostringFalseOnly for BR shop. Include relevant information to display on Invoice.
group_item_infoobjectFalseOnly for BR shop. Required if the item is a group item.
group_qtdstringFalseExample: The package contains 6 soda cans. Whether you are selling a pack of 6 cans (fardo) or a single can (unit), enter 6.
group_unitstringFalseExample: The package contains 6 soda cans. Whether you are selling a pack of 6 cans (fardo) or a single can (unit), enter UNI for the individual can.
group_unit_valuestringFalseExample: The package contains 6 soda cans. Whether you are selling a pack of 6 cans (fardo) or a single can (unity), enter the value of the individual can.
original_group_pricestringFalseExample: The item is a package that contains 6 soda cans. Enter the price of the whole package.
group_gtin_ssccstringFalseExample: The item is a package that contains 6 soda cans. Please inform the GTIN SSCC code for the package.
group_grai_gtin_ssccstringFalseExample: The item is box, that contain 6 packages. Each package contains 6 soda cans. Please inform the GRAI GTIN SSCC code for the Box.
export_cfopstringFalse7101[BR region] 7101 - for sales of self-produced goods 7102 - resale of third-party goods
complaint_policyobjectFalseComplaint Policy for item. Only required for local PL sellers, ignored otherwise.
warranty_timestringFalseValue should be in one of ONE_YEAR TWO_YEARS OVER_TWO_YEARS.
exclude_entrepreneur_warrantybooleanFalseWhether to exclude warranty complaints for entrepreneurs.If True nghĩa là "I exclude warranty complaints for entrepreneur"
complaint_address_idint64FalseAddress for complaint. Fetch available addresses using v2.logistics.get_address_list, and use address_id returned from it.
additional_informationstringFalseAdditional information for warranty claim. Should be less than 1000 characters.
description_infoobjectFalseNew 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,URL hình ảnh 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(Please notice that stock(including Seller Stock and Shopee Stock) should be larger than or equal to real-time reserved stock)
location_idstringFalselocation id
stockint32Truestock
gtin_codestringFalse- GTIN is an identifier for trade items, developed by the international organization GS1. - They have 8 to 14 digits. The most common are UPC, EAN, JAN and ISBN. - GTIN will help boost positioning in online marketing channels like Google and Facebook. - That incorporation with GTIN will also aid in Search and Recommendation in Shopee itself allowing buyers to have higher likelihood of finding one's listing. Note: If you want to set “Item without GTIN”, please pass the gtin_code as "00". The validation rule is based on the value return in gtin_validation_rule" field in v2.product.get_item_limit API - Mandatory: This field is required and must contain a correctly formatted GTiN number. - Flexible: This field is required and must contain either a correctly formatted GTlN number or "00" to declare that the item/model has no valid GTlN. - Optional: This field is optional and can contain a correctly formatted GTiN number, "00" or be omitted entirely.
ds_cat_rcmd_idstringFalsecategory recommendation service id
promotion_imagesobjectFalsePromotion Image Currently only allow one promoton image You could set promotion image only if the product images' ratio is 3:4
image_id_liststring[]FalsePromotion Image
compatibility_infoobjectFalse
vehicle_info_listobject[]True
brand_idint64True1234ID of the brand.
model_idint64True2345ID of the model.
year_idint64False3456ID of the year.
version_idint64False4567ID of the version.
scheduled_publish_timetimestampFalse1733590920Scheduled publish time of this item: 1) Can only set scheduled_publish_time for item with UNLIST status 2) Can only set the time from current time +1hour to current time +90days, and the time is only allowed to be accurate to the minute
authorised_brand_idint64FalseID of authorised reseller brand.
size_chart_infoobjectFalse
size_chartstringFalseID of bảng kích thước image. If you want to remove the image bảng kích thước 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 bảng kích thước. If you want to remove the template bảng kích thước 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: Only local shops are supported to set "size_chart_id", for CB shops please use "size_chart".
certification_infoobjectFalseFor PH product certification input Required for some category and attribute option
certification_listobject[]FalseArray of certification records for the product, each containing type, certificate number, permit ID, and proof documents.
certification_nostringTrueCertification No.
permit_idint64TruePermit ID, get from v2.product.get_product_certification_rule
expiry_dateint32False1610000000Expiry timestamp. Required for PH, but not needed for TW.
certification_proofsobject[]TrueAn array of proof documents for the certification; each element represents one proof file.<path></path>
file_namestringTrueTên của the uploaded certification proof file.
image_idint32TrueThe unique image ID of the certification proof, returned by the image upload API.
ratiofloatTrueimage weight/ image height Will be optional in the future; can input 0.75 by default
purchase_limit_infoobjectFalsepurchase limit info
min_purchase_limitint32Falsetối thiểu purchase count for each order
max_purchase_limitobjectFalse
purchase_limitint32Falsetối đa purchase limit for each order.
medicine_idint64False[Only for ID local sellers] as a mã định danh duy nhất for each standardized medicine, the medicine id can only be obtained offline

Tham số Response

TênKiểuMẫuMô tả
messagestringChi tiết lỗi nếu có lỗi xảy ra. Trống nếu không có lỗi.
warningstringIndicate waring details if hit waring. Empty if no waring happened.
request_idstring98eae35efff24dd0974c21a847127184The identifier for an API request for error tracking
responseobject
descriptionstringdescriptionMô tả về item
weightfloat1.1The weight of this item, the unit is KG.
pre_orderobjectPre order setting
days_to_shipint321The guaranteed số ngày giao hàng orders.
is_pre_orderbooleanfalseWhether this item is pre order
item_namestringHello ProductTên sản phẩm
imagesobjectItem images
image_id_liststring[]ID of image
image_url_liststring[]Display URL of image
item_statusstringNORMALTrạng thái sản phẩm
price_infoobjectItem price info
current_pricefloat148.02Giá hiện tại of item
original_pricefloat148.02Giá gốc of item
logistic_infoobject[]Logistic setting
size_idint320Size ID
shipping_feefloat0Phí vận chuyển
enabledbooleanfalseWhether this channel is enabled for this item
logistic_idint3288014Kênh vận chuyển ID
is_freebooleanfalseWhether cover phí vận chuyển for buyer
item_idint643000142341ID sản phẩm
attributeobject[]Item attributes
attribute_idint324990ID thuộc tính
attribute_value_listobject[]
original_value_namestringSamsung IDValue name
value_idint3232142Value ID
value_unitstringkgUnit of giá trị thuộc tính
category_idint3214695ID danh mục
dimensionobjectThe dimension of this item.
package_widthint3211The width of package for this item, the unit is CM.
package_lengthint3211The length of package for this item, the unit is CM.
package_heightint3211The height of package for this item, the unit is CM.
conditionstringNEWTình trạng sản phẩm, could be NEW or USED
video_infoobject[]Item video
video_urlstringhttps://cvf.shopee.sg/file/c67b847c954fd710e0d35ef1e22378d1Video playback url
thumbnail_urlstringhttps://cf.shopee.sg/file/6fc53c203151635da72151cfbad03cdfVideo preview URL hình ảnh
durationint3215Video thời lượng
wholesaleobject[]Wholesale setting
min_countint321Tối thiểu count of this tier
max_countint32100Tối đa count of this tier
unit_pricefloat13.3Unit price of this tier
brandobject
brand_idint320Id of brand.
original_brand_namestringnikeOriginal name of brand.
item_dangerousint320This field is only applicable for local sellers in Indonesia and Malaysia. Use this field to identify whether a product is a dangerous product. 0 for non-dangerous product and 1 for dangerous product. For more information, please visit the market's respective Seller Education Hub.
description_infoobjectNew description field. Only whitelist sellers can use it. If item with extended_description this field will return, otherwise do not return.
extended_descriptionobjectIf description_type is extended , description information should be set by this field.
field_listobject[]Field of extended description.
field_typestringType of extended description field :values: See Data Definition- description_field_type (text , image).
textstringIf field_type is text, text information will be set by this field.
image_infoobjectIf field_type is image, URL hình ảnh will be set by this field.
image_idstringImage id.
description_typestringValues: See Data Definition- description_type (normal , extended).
complaint_policyobjectComplaint Policy for item. Only returned for local PL sellers.
warranty_timestringONE_YEARTime for a warranty claim. Could be ONE_YEAR, TWO_YEARS, OVER_TWO_YEARS.
exclude_entrepreneur_warrantybooleanfalseIf True nghĩa là "I exclude warranty complaints for entrepreneur"
complaint_address_idint64The identity of complaint address.
additional_informationstringAdditional information for complaint policy.
seller_stockobject[]seller stock
location_idstringlocation id
stockint32stock
errorstringLoại lỗi nếu có lỗi xảy ra. Trống nếu không có lỗi.

Dữ liệu gửi

, "logistic_info": [ { "size_id": 0, "shipping_fee": 23.12, "enabled": true, "logistic_id": 80101, "is_free": true } ], "attribute_list": [ { "attribute_id": 4990, "attribute_value_list": [ { "value_id": 32142, "original_value_name": "Brand", "value_unit": " kg" } ] } ], "category_id": 14695, "image": { "image_id_list": [ "-" ] }, "pre_order": { "is_pre_order": true, "days_to_ship": 3 }, "item_sku": "-", "tình trạng": "NEW", "wholesale": [ { "min_count": 1, "max_count": 100, "unit_price": 28.3 } ], "video_upload_id": [ "sg_f4bde9bc-ff3c-485e-a6dd-3161dab4b942_000000" ], "brand": { "brand_id": 0, "original_brand_name": "nike" }, "item_dangerous": 0, "tax_info": { "ncm": "-", "same_state_cfop": "-", "diff_state_cfop": "-", "csosn": "-", "origin": "-", "cest": "-", "measure_unit": "-", "invoice_option": "-", "vat_rate": "-" }, "complaint_policy": { "warranty_time": "-", "exclude_entrepreneur_warranty": true, "complaint_address_id": 0, "additional_information": "-" }, "description_info": { "extended_description": { "field_list": [ { "field_type": "-", "text": "-", "image_info": { "image_id": "-" } } ] } }, "description_type": "-", "seller_stock": [ { "location_id": "-", "stock": 0 } ] }Unirest.setTimeouts(0, 0); HttpResponse<String> response = Unirest.post("https://partner.uat.shopeemobile.com/api/v2/product/add\_item?sign=sign&access\_token=access\_token&timestamp=timestamp&shop\_id=shop\_id&partner\_id=partner\_id") .header("Content-Type","application/json") .body("{ "attribute_list": [ { "attribute_id": 4990, "attribute_value_list": [ { "original_value_name": "Brand", "value_id": 32142, "value_unit": " kg" } ] } ], "brand": { "brand_id": 0, "original_brand_name": "nike" }, "category_id": 14695, "complaint_policy": { "additional_information": "-", "complaint_address_id": 0, "exclude_entrepreneur_warranty": true, "warranty_time": "-" }, "tình trạng": "NEW", "description": "mô tả sản phẩm test", "description_info": { "extended_description": { "field_list": [ { "field_type": "-", "image_info": { "image_id": "-" }, "text": "-" } ] } }, "description_type": "-", "dimension": { "package_height": 11, "package_length": 11, "package_width": 11 }, "image": { "image_id_list": [ "-" ] }, "item_dangerous": 0, "item_name": "Tên sản phẩm Example", "item_sku": "-", "item_status": "UNLIST", "logistic_info": [ { "enabled": true, "is_free": true, "logistic_id": 80101, "shipping_fee": 23.12, "size_id": 0 } ], "normal_stock": 33, "original_price": 123.3, "pre_order": { "days_to_ship": 3, "is_pre_order": true }, "seller_stock": [ { "location_id": "-", "stock": 0 } ], "tax_info": { "cest": "-", "csosn": "-", "diff_state_cfop": "-", "hs_code": "-", "invoice_option": "-", "measure_unit": "-", "ncm": "-", "origin": "-", "same_state_cfop": "-", "tax_code": "-", "vat_rate": "-" }, "video_upload_id": [ "sg_f4bde9bc-ff3c-485e-a6dd-3161dab4b942_000000" ], "weight": 1.1, "wholesale": [ { "max_count": 100, "min_count": 1, "unit_price": 28.3 } ] }") .asString();<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://partner.uat.shopeemobile.com/api/v2/product/add\_item?access\_token=access\_token&partner\_id=partner\_id&shop\_id=shop\_id&sign=sign&timestamp=timestamp', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS => '{ "attribute_list": [ { "attribute_id": 4990, "attribute_value_list": [ { "original_value_name": "Brand", "value_id": 32142, "value_unit": " kg" } ] } ], "brand": { "brand_id": 0, "original_brand_name": "nike" }, "category_id": 14695, "complaint_policy": { "additional_information": "-", "complaint_address_id": 0, "exclude_entrepreneur_warranty": true, "warranty_time": "-" }, "tình trạng": "NEW", "description": "mô tả sản phẩm test", "description_info": { "extended_description": { "field_list": [ { "field_type": "-", "image_info": { "image_id": "-" }, "text": "-" } ] } }, "description_type": "-", "dimension": { "package_height": 11, "package_length": 11, "package_width": 11 }, "image": { "image_id_list": [ "-" ] }, "item_dangerous": 0, "item_name": "Tên sản phẩm Example", "item_sku": "-", "item_status": "UNLIST", "logistic_info": [ { "enabled": true, "is_free": true, "logistic_id": 80101, "shipping_fee": 23.12, "size_id": 0 } ], "normal_stock": 33, "original_price": 123.3, "pre_order": { "days_to_ship": 3, "is_pre_order": true }, "seller_stock": [ { "location_id": "-", "stock": 0 } ], "tax_info": { "cest": "-", "csosn": "-", "diff_state_cfop": "-", "hs_code": "-", "invoice_option": "-", "measure_unit": "-", "ncm": "-", "origin": "-", "same_state_cfop": "-", "tax_code": "-", "vat_rate": "-" }, "video_upload_id": [ "sg_f4bde9bc-ff3c-485e-a6dd-3161dab4b942_000000" ], "weight": 1.1, "wholesale": [ { "max_count": 100, "min_count": 1, "unit_price": 28.3 } ] }', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json' ), )); $response = curl_exec($curl); curl_close($curl); echo $response; curl --location --request POST 'https://partner.uat.shopeemobile.com/api/v2/product/add\_item?access\_token=access\_token&timestamp=timestamp&shop\_id=shop\_id&partner\_id=partner\_id&sign=sign'
--header 'Content-Type: application/json'
--data-raw '{ "attribute_list": [ { "attribute_id": 4990, "attribute_value_list": [ { "original_value_name": "Brand", "value_id": 32142, "value_unit": " kg" } ] } ], "brand": { "brand_id": 0, "original_brand_name": "nike" }, "category_id": 14695, "complaint_policy": { "additional_information": "-", "complaint_address_id": 0, "exclude_entrepreneur_warranty": true, "warranty_time": "-" }, "tình trạng": "NEW", "description": "mô tả sản phẩm test", "description_info": { "extended_description": { "field_list": [ { "field_type": "-", "image_info": { "image_id": "-" }, "text": "-" } ] } }, "description_type": "-", "dimension": { "package_height": 11, "package_length": 11, "package_width": 11 }, "image": { "image_id_list": [ "-" ] }, "item_dangerous": 0, "item_name": "Tên sản phẩm Example", "item_sku": "-", "item_status": "UNLIST", "logistic_info": [ { "enabled": true, "is_free": true, "logistic_id": 80101, "shipping_fee": 23.12, "size_id": 0 } ], "normal_stock": 33, "original_price": 123.3, "pre_order": { "days_to_ship": 3, "is_pre_order": true }, "seller_stock": [ { "location_id": "-", "stock": 0 } ], "tax_info": { "cest": "-", "csosn": "-", "diff_state_cfop": "-", "hs_code": "-", "invoice_option": "-", "measure_unit": "-", "ncm": "-", "origin": "-", "same_state_cfop": "-", "tax_code": "-", "vat_rate": "-" }, "video_upload_id": [ "sg_f4bde9bc-ff3c-485e-a6dd-3161dab4b942_000000" ], "weight": 1.1, "wholesale": [ { "max_count": 100, "min_count": 1, "unit_price": 28.3 } ] }' import requests import json url = "https://partner.uat.shopeemobile.com/api/v2/product/add\_item?access\_token=access\_token&partner\_id=partner\_id&shop\_id=shop\_id&sign=sign&timestamp=timestamp" payload=json.dumps({ "attribute_list": [ { "attribute_id": 4990, "attribute_value_list": [ { "original_value_name": "Brand", "value_id": 32142, "value_unit": " kg" } ] } ], "brand": { "brand_id": 0, "original_brand_name": "nike" }, "category_id": 14695, "complaint_policy": { "additional_information": "-", "complaint_address_id": 0, "exclude_entrepreneur_warranty": True, "warranty_time": "-" }, "tình trạng": "NEW", "description": "mô tả sản phẩm test", "description_info": { "extended_description": { "field_list": [ { "field_type": "-", "image_info": { "image_id": "-" }, "text": "-" } ] } }, "description_type": "-", "dimension": { "package_height": 11, "package_length": 11, "package_width": 11 }, "image": { "image_id_list": [ "-" ] }, "item_dangerous": 0, "item_name": "Tên sản phẩm Example", "item_sku": "-", "item_status": "UNLIST", "logistic_info": [ { "enabled": True, "is_free": True, "logistic_id": 80101, "shipping_fee": 23.12, "size_id": 0 } ], "normal_stock": 33, "original_price": 123.3, "pre_order": { "days_to_ship": 3, "is_pre_order": True }, "seller_stock": [ { "location_id": "-", "stock": 0 } ], "tax_info": { "cest": "-", "csosn": "-", "diff_state_cfop": "-", "hs_code": "-", "invoice_option": "-", "measure_unit": "-", "ncm": "-", "origin": "-", "same_state_cfop": "-", "tax_code": "-", "vat_rate": "-" }, "video_upload_id": [ "sg_f4bde9bc-ff3c-485e-a6dd-3161dab4b942_000000" ], "weight": 1.1, "wholesale": [ { "max_count": 100, "min_count": 1, "unit_price": 28.3 } ] }) headers = { 'Content-Type': 'application/json' } response = requests.request("POST",url,headers=headers, data=payload, allow_redirects=False) print(response.text)

, "item_name": "Hello Product", "images": { "image_id_list": [ "-" ], "image_url_list": [ "-" ] }, "item_status": "NORMAL", "price_info": { "current_price": 148.02, "original_price": 148.02 }, "logistic_info": [ { "size_id": 0, "shipping_fee": 0.1, "enabled": true, "logistic_id": 88014, "is_free": true } ], "item_id": 3000142341, "attributes": [ { "attribute_id": 4990, "attribute_value_list": [ { "original_value_name": "Samsung ID", "value_id": 32142, "value_unit": "kg" } ] } ], "category_id": 14695, "dimension": { "package_width": 11, "package_length": 11, "package_height": 11 }, "tình trạng": "NEW", "video_info": [ { "video_url": "https://cvf.shopee.sg/file/c67b847c954fd710e0d35ef1e22378d1", "thumbnail_url": "https://cf.shopee.sg/file/6fc53c203151635da72151cfbad03cdf", "thời lượng": 15 } ], "wholesale": [ { "min_count": 1, "max_count": 100, "unit_price": 13.3 } ], "brand": { "brand_id": 0, "original_brand_name": "nike" }, "item_dangerous": 0, "description_info": { "extended_description": { "field_list": [ { "field_type": "-", "text": "-", "image_info": { "image_id": "-" } } ] } }, "description_type": "-", "complaint_policy": { "warranty_time": "ONE_YEAR", "exclude_entrepreneur_warranty": true, "complaint_address_id": 0, "additional_information": "-" }, "seller_stock": [ { "location_id": "-", "stock": 0 } ] }, "error": "-" }