v2.product.get_kit_item_info
GET /api/v2/product/get_kit_item_info
Get the kit basic information and kit components.
Đường dẫn Endpoint
URL: https://partner.shopeemobile.com/api/v2/product/get_kit_item_info
Tham số chung
| Tên | Kiểu | Mẫu | Mô tả |
|---|---|---|---|
| partner_id | int | 1 | Partner 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. |
| timestamp | timestamp | 1610000000 | Dù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_token | string | c09222e3fc40ffb25fc947f738b1abf1 | Token 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_id | int | 600000 | Mã đị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. |
| sign | string | e318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2 | Signature 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ên | Kiểu | Bắt buộc | Mẫu | Mô tả |
|---|---|---|---|---|
| item_id | int64 | True | 28001430 | ID of kit item. |
Tham số Response
| Tên | Kiểu | Mẫu | Mô tả |
|---|---|---|---|
| error | string | Loại lỗi nếu có lỗi xảy ra. Trống nếu không có lỗi. | |
| message | string | Chi tiết lỗi nếu có lỗi xảy ra. Trống nếu không có lỗi. | |
| warning | string | Indicate waring details if hit waring. Empty if no waring happened. | |
| request_id | string | 7b9da0c6926642199c33ee9dd3a266f5 | Mã định danh của yêu cầu API dùng để theo dõi lỗi. |
| response | object | ||
| product_info | object | ||
| item_id | int64 | 28001430 | ID of this kit item. |
| item_name | string | item name sample | Tên của this kit item. |
| category_id | int64[] | 14646 | The category of this kit item, sync from the category of the main component of this kit item. |
| item_status | string | NORMAL | Enumerated type that defines the current status of the item. Các giá trị áp dụng: NORMAL, BANNED, UNLIST, SELLER_DELETE, SHOPEE_DELETE, REVIEWING. |
| item_sku | string | An item SKU (stock keeping unit) is an identifier defined by a seller, sometimes called parent SKU. Item SKU can be assigned to an item in Shopee Listings. | |
| images | object | Item images with 1:1 ratio. | |
| image_id_list | string[] | Danh sách image id. | |
| image_url_list | string[] | Danh sách URL hình ảnh. | |
| image_ratio | string | 1:1 | 1:1 |
| long_images | object | Item images with 3:4 ratio. | |
| image_id_list | string[] | Danh sách image id. | |
| image_url_list | string[] | Danh sách URL hình ảnh. | |
| image_ratio | string | 3:4 | 3:4 |
| description_info | object | Rich text description field. Only whitelist sellers can use it. | |
| extended_description | object | If description_type is extended , Description information will be returned through this field. | |
| field_list | object[] | Field of extended description. | |
| field_type | string | Type of extended description field. See Data Definition- description_field_type (text , image). | |
| text | string | If field_type is text, text information will be returned through this field. | |
| image_info | object | If field_type is image, image will be returned through this field. | |
| image_id | string | Image id. | |
| image_url | string | URL hình ảnh. | |
| description | string | If description_type is normal, description information will be returned through this field, else description will be empty. | |
| description_type | string | Type of description : values: See Data Definition- description_type (normal , extended). | |
| video_list | object | Info of danh sách video. | |
| video_url | string | Url of video. | |
| thumbnail_url | string | Thumbnail of video. | |
| duration | int32 | Thời lượng of video. | |
| attributes | object[] | The attributes of this kit item, sync from the attributes of the main component of this kit item. | |
| attribute_id | int64 | 4811 | The Identify of each attribute. |
| original_attribute_name | string | Brand: L2 Default [14644] | Tên của each attribute. |
| attribute_value_list | object[] | ||
| value_id | int64 | 0 | Mã định danh duy nhất for value of this item attribute. |
| original_value_name | string | Default | Value name of this item attribute. |
| value_unit | string | g | Value unit of this item attribute. |
| weight | string | "1.5" | The weight of this kit item, the unit is KG. |
| dimension | object | The dimension of this kit item. | |
| package_length | int32 | 11 | The length of package for this item, the unit is CM. |
| package_width | int32 | 11 | The width of package for this item, the unit is CM. |
| package_height | int32 | 11 | The height of package for this item, the unit is CM. |
| brand_info | object | The brand of this kit item, sync from the brand of the main component of this kit item. | |
| brand_id | int64 | Id of brand. | |
| original_brand_name | string | Original name of brand. | |
| model_list | object[] | Model info list, model number at most 9. | |
| model_id | int64 | ID of this kit model. | |
| model_sku | int64 | Seller SKU of this kit model. | |
| original_price | float | Giá gốc of this kit model. | |
| tier_index | int32[] | Tier index of this kit model. | |
| component_list | object[] | ||
| component_item_id | int64 | ID of the item that composes this kit model. | |
| component_item_name | string | Name of the item that composes this kit model. | |
| component_model_id | int64 | ID of the model that composes this kit model. | |
| component_model_name | string | Name of the model that composes this kit model. | |
| quantity | int32 | The amount of the item/model that composes this kit model. | |
| main_component | boolean | Whether this item/model is the main component for this kit. | |
| component_item_or_model_image | string | ||
| component_item_or_model_sku | string | ||
| pre_order_info | object | ||
| is_pre_order | boolean | ||
| days_to_ship | int32 | ||
| tier_variation_list | object[] | Variation config of item. | |
| name | string | Tên biến thể. | |
| option_list | object[] | Option list. | |
| option | string | Option name. | |
| image | object[] | ||
| image_id | string | Id of image. | |
| image_url | string | Url of image. |
Unirest.setTimeouts(0, 0); HttpResponse<String> response = Unirest.get("https://partner.shopeemobile.com/api/v2/product/get\_kit\_item\_info?access\_token=access\_token&item\_id=28001430&partner\_id=partner\_id&shop\_id=shop\_id&sign=sign×tamp=timestamp") .asString();<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://partner.shopeemobile.com/api/v2/product/get\_kit\_item\_info?access\_token=access\_token&item\_id=28001430&partner\_id=partner\_id&shop\_id=shop\_id&sign=sign×tamp=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 => 'GET', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json' ), )); $response = curl_exec($curl); curl_close($curl); echo $response; curl --location --request GET 'https://partner.shopeemobile.com/api/v2/product/get\_kit\_item\_info?access\_token=access\_token&item\_id=28001430&partner\_id=partner\_id&shop\_id=shop\_id&sign=sign×tamp=timestamp' import requests url = "https://partner.shopeemobile.com/api/v2/product/get\_kit\_item\_info?access\_token=access\_token&item\_id=28001430&partner\_id=partner\_id&shop\_id=shop\_id&sign=sign×tamp=timestamp" payload={} headers = { } response = requests.RPCRequest("GET",url,headers=headers, data=payload, allow_redirects=False) print(response.text)
, "category_id": 107290, "create_time": 1725439928, "description_info": { "extended_description": { "field_list": [ { "field_type": "text", "text": "mô tả sản phẩm sample" } ] } }, "description_type": "extended", "dimension": { "package_height": 10, "package_length": 10, "package_width": 10 }, "image": { "image_id_list": [ "br-11134207-7r98o-lzri4neb5vcv18", "br-11134207-7r98o-lzri4neb0933bc", "br-11134207-7r98o-lzri4neba3275b" ], "image_ratio": "1:1", "image_url_list": [ "https://cf.shopee.com.br/file/br-11134207-7r98o-lzri4neb5vcv18", "https://cf.shopee.com.br/file/br-11134207-7r98o-lzri4neb0933bc", "https://cf.shopee.com.br/file/br-11134207-7r98o-lzri4neba3275b" ] }, "item_id": 885138291, "item_name": "tên sản phẩm sample", "item_sku": "item sku sample", "item_status": "NORMAL", "logistic_info": [ { "enabled": true, "is_free": false, "logistic_id": 90003, "logistic_name": "Correios", "size_id": 0 } ], "model_list": [ { "component_list": [ { "component_item_id": 892571386, "component_item_name": "test item 1", "component_model_id": 18500720947, "component_model_name": "test model 1", "component_item_or_model_image": "br-11134207-7r98o-lzr1wsi9uadba5", "component_item_or_model_sku": "test item 1", "main_component": false, "quantity": 3 }, { "component_item_id": 892571385, "component_item_name": "test item 2", "component_model_id": 18500720944, "component_model_name": "test model 2", "component_item_or_model_image": "br-11134207-7r98o-lzr1lyf8hji786", "component_item_or_model_sku": "test item 2", "main_component": false, "quantity": 2 } ], "model_id": 19250366170, "model_sku": "", "original_price": 14, "tier_index": [ 0 ] }, { "component_list": [ { "component_item_id": 892571386, "component_item_name": "test item 3", "component_model_id": 18500720950, "component_model_name": "test model 3", "component_item_or_model_image": "br-11134207-7r98o-lzr1wsi9uadba5", "component_item_or_model_sku": "test item 3", "main_component": true, "quantity": 1 }, { "component_item_id": 892571385, "component_item_name": "test item 4", "component_model_id": 18500720943, "component_model_name": "test model 4", "component_item_or_model_image": "br-11134207-7r98o-lzr1lyf8hji786", "component_item_or_model_sku": "test item 4", "main_component": false, "quantity": 2 } ], "model_id": 19250366171, "model_sku": "", "original_price": 12, "tier_index": [ 1 ] } ], "pre_order_info": { "days_to_ship": 2, "is_pre_order": false }, "sync_setting": { "auto_sync_dts": false }, "tier_variation_list": [ { "name": "tên biến thể sample", "option_list": [ { "option": "Kit Variation 1" }, { "option": "Kit Variation 2" } ] } ], "update_time": 1725881434, "video_list": [], "weight": "1.5" } } }