v2.product.get_item_limit
GET /api/v2/product/get_item_limit
Get item upload control.
Đường dẫn Endpoint
URL: https://partner.shopeemobile.com/api/v2/product/get_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. |
| wholesale_price_threshold_percentage | object | ||
| min_limit | int64 | 30 | Item wholegiá bán percentage of giá gốc min limit. |
| max_limit | int64 | 100 | Item wholegiá bán percentage of giá gốc min limit. |
| stock_limit | object | ||
| min_limit | int64 | 5 | Item stock min limit. |
| max_limit | int64 | 10000000 | Item stock max limit. |
| item_name_length_limit | object | ||
| min_limit | int64 | 5 | Tên sản phẩm length min limit. |
| max_limit | int64 | 100 | 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 | 9 | Item image count max limit. |
| item_description_length_limit | object | ||
| min_limit | int64 | 10 | Mô tả sản phẩm length min limit. |
| max_limit | int64 | 2000 | Mô tả sản phẩm length max limit. |
| tier_variation_name_length_limit | object | ||
| min_limit | int64 | 0 | Item biến thể theo cấp name length min limit. |
| max_limit | int64 | 14 | Item biến thể theo cấp name length max limit. |
| tier_variation_option_length_limit | object | ||
| min_limit | int64 | 0 | Item biến thể theo cấp option length min limit. |
| max_limit | int64 | 20 | Item biến thể theo cấp option length max limit. |
| item_count_limit | object | ||
| max_limit | int64 | 50001 | Item count max limit. |
| extended_description_limit | object | ||
| description_text_length_min | int | length min limit for item extended description text part | |
| description_text_length_max | int | length max limit for item extended description text part | |
| description_image_num_min | int | length min limit for item extended description image num | |
| description_image_num_max | int | length max limit for item extended description image num | |
| description_image_width_min | int | length min limit for item extended description image width | |
| description_image_height_min | int | length min limit for item extended description image hight | |
| description_image_aspect_ratio_min | float | length min limit for item extended description image aspect (image width / image hight ) | |
| description_image_aspect_ratio_max | float | length max limit for item extended description image aspect (image width / image hight ) | |
| dts_limit | object | ||
| days_to_ship_limit | object | Pre order limits for the category | |
| min_limit | int | ||
| max_limit | int | ||
| non_pre_order_days_to_ship | int | ||
| weight_limit | object | ||
| weight_mandatory | boolean | weight is mandatory or not | |
| dimension_limit | object | ||
| dimension_mandatory | boolean | dimension is mandatory or not for the category | |
| size_chart_limit | object | ||
| size_chart_mandatory | boolean | ||
| support_image_size_chart | boolean | ||
| support_template_size_chart | boolean | ||
| gtin_limit | object | ||
| gtin_validation_rule | string | Indicate gtin_code validation logic in v2.product.add_item v2.product.update_item v2.product.init_tier_variation v2.product.add_model v2.product.update_model - 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" todeclare that the item/model has no valid GTlN. - Optional: This field is optional and can contain a correctly formatted GTiN number, "00" or be omittedentirely. |
Unirest.setTimeouts(0, 0); HttpResponse<String> response = Unirest.get("/api/v2/product/get_item_limit") .asString();<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => '/api/v2/product/get_item_limit', 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( ), )); $response = curl_exec($curl); curl_close($curl); echo $response; curl --location --request GET '/api/v2/product/get_item_limit' import requests url = "/api/v2/product/get_item_limit" payload={} headers = { } response = requests.request("GET",url,headers=headers, data=payload, allow_redirects=False) print(response.text)
No Response Example Set.