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

v2.product.add_ssp_item

POST /api/v2/product/add_ssp_item

Create product based on SSP.

Đường dẫn Endpoint

URL: https://partner.shopeemobile.com/api/v2/product/add_ssp_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ả
ssp_idint64TrueShopee's mã định danh duy nhất for Shopee Standard Product.
original_pricefloatFalse99.99The price of this item.
item_statusstringFalse"UNLIST"Trạng thái sản phẩm, could be UNLIST or NORMAL.
dimensionobjectFalseThe dimension of this item.
package_lengthint32True11The length of package for this item, the unit is CM.
package_widthint32True11The width of package for this item, the unit is CM.
package_heightint32True11The height of package for this item, the unit is CM.
logistic_infoobject[]TrueKênh vận chuyển setting of this item.
logistic_idint64True90003ID of the channel.
enabledbooleanTruetrueWhether channel is enabled for this item.
shipping_feefloatFalse23.12Phí vận chuyển, only needed when logistics fee_type = CUSTOM_PRICE.
size_idint64False0Size ID, only needed when logistic fee_type = SIZE_SELECTION.
is_freebooleanFalsefalseWhether cover phí vận chuyển for buyer.
attribute_listobject[]False
attribute_idint64True4990ID of attribute.
attribute_value_listobject[]True
value_idint64True32142Value 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).
pre_orderobjectFalsePre order setting of this item.
is_pre_orderbooleanTruetrueWhether this item is pre order.
days_to_shipint32False10The guaranteed số ngày giao hàng orders. Please get the days_to_ship range from get_item_limit api.
item_skustringFalseSKU tag of this item.
conditionstringFalse"NEW"Tình trạng of item, could be USED or NEW.
wholesaleobject[]FalseWholesale setting of this item.
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.
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 for this item.
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)
invoice_optionstringFalseValue shuold be one of NO_INVOICES VAT_MARGIN_SCHEME_INVOICES VAT_INVOICES NON_VAT_INVOICES and if value is NON_VAT_INVOICE vat_rate should be null (PL region)
vat_ratestringFalseValue should be one of 0% 5% 8% 23% NO_VAT_RATE (PL region)
hs_codestringTrueHS Code (Only for IN region)
tax_codestringTrueTax Code (Only for IN 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.
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
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. 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. Notes: Only local shops are supported to set "size_chart_id", for CB shops please use "size_chart".
authorised_brand_idint64FalseID of authorised reseller brand.
model_listobject[]FalseModel info list.
tier_indexint32[]True[0]Tier index of this model.
model_skustringFalseSKUSeller SKU of this model, model_sku length information needs to be no more than 100 characters.
original_pricefloatTrue38.3Giá gốc of this model.
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
dimensionobjectFalseThe dimension of this model. If don't set the dimension of this model, will use the dimension of item by default.
package_lengthint32True11The length of package for this model, the unit is CM.
package_widthint32True11The width of package for this model, the unit is CM.
package_heightint32True11The height of package for this model, the unit is CM.
pre_orderobjectFalseĐặt hàng trước information of this model. Notes: If don't set the DTS of this model, will use the DTS of the item by default.
is_pre_orderbooleanTruetrueWhether the model is pre order.
days_to_shipint32False10Số ngày giao hàng. Please get the days_to_ship range from the get_item_limit API.

Tham số Response

TênKiểuMẫuMô tả
errorstringLoại lỗi nếu có lỗi xảy ra. Trống nếu không có lỗi.
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_idstringcc807adb6f8abaeb597c7b6e53e14241The identifier for an API request for error tracking
responseobject
item_idint64892571850Shopee's mã định danh duy nhất for an item.

Dữ liệu gửi

{ "ssp_id": 556054528, "model_list": [ { "tier_index": [ 0 ], "original_price": 99.99, "seller_stock": [ { "stock": 100 } ] }, { "tier_index": [ 1 ], "original_price": 119.99, "seller_stock": [ { "stock": 200 } ] } ], "logistic_info": [ { "logistic_id": 90003, "enabled": true } ] }

, "warning": "" }