v2.product.get_kit_item_limit
GET /api/v2/product/get_kit_item_limit
Get the limit of Kit item.
Đường dẫn Endpoint
URL: https://partner.shopeemobile.com/api/v2/product/get_kit_item_limit
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ả |
|---|---|---|---|---|
| category_id | int64 | False | 400055 | Shopee's mã định danh duy nhất for a category. |
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 | success | Chi tiết lỗi nếu có lỗi xảy ra. Trống nếu không có lỗi. |
| warning | string | Warning message. | |
| request_id | string | 28ad0434c6954963a2a6d6ed7195554d | Mã định danh của yêu cầu API dùng để theo dõi lỗi. |
| response | object | ||
| price_limit | object | ||
| min_limit | float | 5.5 | Item price max limit. |
| max_limit | float | 10000000.0 | Item price min limit. |
| item_name_length_limit | object | ||
| min_limit | int64 | 5 | Tên sản phẩm length min limit. |
| max_limit | int64 | 99 | Tên sản phẩm length max limit. |
| item_image_count_limit | object | ||
| min_limit | int64 | 1 | Item image count min limit. |
| max_limit | int64 | 10 | Item image count max limit. |
| description_limit | object | ||
| description_length_min | int64 | 10 | Mô tả sản phẩm length min limit. |
| description_length_max | int64 | 499 | length max limit for item extended description text part. |
| description_text_length_min | int64 | 10 | length min limit for item extended description text part, when one of the tối thiểu limits for image and text is reached, the item can be added or updated successfully. |
| description_text_length_max | int64 | 499 | length max limit for item extended description text part |
| description_image_num_min | int64 | 1 | length min limit for item extended description image num, when one of the tối thiểu limits for image and text is reached, the item can be added or updated successfully. |
| description_image_num_max | int64 | 5 | length max limit for item extended description image num. |
| description_image_width_min | int64 | 1 | length min limit for item extended description image width. |
| description_image_height_min | int64 | 1 | length min limit for item extended description image hight. |
| description_image_aspect_ratio_min | float | 0.5 | length min limit for item extended description image aspect ( aspect_ratio= image width / image hight ). |
| description_image_aspect_ratio_max | float | 32.0 | length max limit for item extended description image aspect ( aspect_ratio= image width / image hight ). |
| tier_variation_name_length_limit | object | ||
| min_limit | int32 | 1 | Item biến thể theo cấp name length min limit. |
| max_limit | int32 | 50 | Item biến thể theo cấp name length max limit. |
| tier_variation_option_length_limit | object | ||
| min_limit | int32 | 1 | Item biến thể theo cấp option length min limit. |
| max_limit | int32 | 50 | Item biến thể theo cấp option length max limit. |
| weight_limit | object | ||
| weight_mandatory | boolean | true | Whether weight is mandatory or not for the category. |
| dimension_limit | object | ||
| dimension_mandatory | boolean | true | Whether dimension is mandatory or not for the category. |
| dts_limit | object | ||
| non_pre_order_days_to_ship | int32 | 2 | Số ngày giao hàng for non đặt hàng trước products. |
| support_pre_order | boolean | true | Whether support pre_order for the category. |
| days_to_ship_limit | object | Số ngày giao hàng for đặt hàng trước products. | |
| min_limit | int32 | 3 | Min limit of số ngày giao hàng for đặt hàng trước products. |
| max_limit | int32 | 30 | Max limit of số ngày giao hàng for đặt hàng trước products. |
| component_count_limit_of_single_model | object | ||
| min_limit | int32 | 2 | Item count min limit that each kit variations support. |
| max_limit | int32 | 10 | Item count max limit that each kit variations support. |
Unirest.setTimeouts(0, 0); HttpResponse<String> response = Unirest.get("https://partner.shopeemobile.com/api/v2/product/get\_kit\_item\_limit?access\_token=access\_token&category\_id=400055&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\_limit?access\_token=access\_token&category\_id=400055&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\_limit?access\_token=access\_token&category\_id=400055&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\_limit?access\_token=access\_token&category\_id=400055&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)
, "item_name_length_limit": { "min_limit": 5, "max_limit": 99 }, "item_image_count_limit": { "min_limit": 1, "max_limit": 10 }, "description_limit": { "description_length_min": 10, "description_length_max": 499, "description_text_length_min": 10, "description_text_length_max": 499, "description_image_num_min": 1, "description_image_num_max": 5, "description_image_width_min": 1, "description_image_height_min": 1, "description_image_aspect_ratio_min": 0.5, "description_image_aspect_ratio_max": 32 }, "tier_variation_name_length_limit": { "min_limit": 1, "max_limit": 50 }, "tier_variation_option_length_limit": { "min_limit": 1, "max_limit": 50 }, "weight_limit": { "weight_mandatory": true }, "dimension_limit": { "dimension_mandatory": true }, "dts_limit": { "non_pre_order_days_to_ship": 2, "support_pre_order": true, "days_to_ship_limit": { "min_limit": 3, "max_limit": 30 } }, "component_count_limit_of_single_model": { "min_limit": 2, "max_limit": 10 } } }