v2.product.get_size_chart_detail
GET /api/v2/product/get_size_chart_detail
Get new bảng kích thước detail. Now only local shop support to use this api to get new bảng kích thước detail.
Đường dẫn Endpoint
URL: https://partner.shopeemobile.com/api/v2/product/get_size_chart_detail
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ả |
|---|---|---|---|---|
| size_chart_id | int | True | 700024639 | ID of new bảng kích thước |
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 | Warning message. | |
| request_id | string | Mã định danh của yêu cầu API dùng để theo dõi lỗi. | |
| response | object | ||
| size_chart_id | int | 700024639 | ID of new bảng kích thước |
| size_chart_name | string | T shirt | name of new bảng kích thước |
| size_chart_table | object | new bảng kích thước is a table format which include multiple columns. each column has column header (measurement) and multiple values (measurement value) of this column. | |
| column_list | object[] | column danh sách new bảng kích thước table. it include one column (measurement) and multiple values (measurement value) | |
| measurement | object | this is the column header which means a kind of measurement | |
| input_type | string | Input Range Number | there are 3 kinds of measurement type: Single Dropdown, Input Single Number, Input Range Number. |
| display_name | string | weight | name of column header (measurement) |
| unit | string | kg | the unit of this size measurement. |
| measurement_value_list | object[] | the danh sách measurement value | |
| value | float | 50.5 | if the input_type of measurement is single input number, measurement will have one value which is returned by this field. |
| min_value | float | 52.5 | if the input_type of measurement is input range number, measurement will be a range which is returned by 2 fields: min_value and max_value. |
| max_value | float | 52.5 | if the input_type of measurement is input range number, measurement will be a range which is returned by 2 fields: min_value and max_value. |
| option | string | M | if the input_type of measurement is single dropdown, measurement will have one value which is returned by this field. |
Unirest.setTimeouts(0, 0); HttpResponse<String> response = Unirest.get("https://open.admin.uat.shopee.io/api/v2/product/get\_size\_chart\_detail?access\_token=access\_token&partner\_id=partner\_id&shop\_id=shop\_id&sign=sign&size\_chart\_id=700024639×tamp=timestamp") .asString();<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://open.admin.uat.shopee.io/api/v2/product/get\_size\_chart\_detail?access\_token=access\_token&partner\_id=partner\_id&shop\_id=shop\_id&sign=sign&size\_chart\_id=700024639×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://open.admin.uat.shopee.io/api/v2/product/get\_size\_chart\_detail?access\_token=access\_token&partner\_id=partner\_id&shop\_id=shop\_id&sign=sign&size\_chart\_id=700024639×tamp=timestamp' import requests url = "https://open.admin.uat.shopee.io/api/v2/product/get\_size\_chart\_detail?access\_token=access\_token&partner\_id=partner\_id&shop\_id=shop\_id&sign=sign&size\_chart\_id=700024639×tamp=timestamp" payload={} headers = { } response = requests.request("GET",url,headers=headers, data=payload, allow_redirects=False) print(response.text)
, "measurement_value_list": [ { "max_value": null, "min_value": null, "option": null, "value": 1 }, { "max_value": null, "min_value": null, "option": null, "value": 2 }, { "max_value": null, "min_value": null, "option": null, "value": 3 } ] }, { "measurement": { "display_name": "susu_input_range_number_with_special_unit_kg", "input_type": "Input Range Number", "unit": "kg" }, "measurement_value_list": [ { "max_value": 13, "min_value": 12, "option": null, "value": null }, { "max_value": 14, "min_value": 13, "option": null, "value": null }, { "max_value": 16, "min_value": 14, "option": null, "value": null } ] }, { "measurement": { "display_name": "regional 001 dropdowm", "input_type": "Single Dropdown", "unit": "cm" }, "measurement_value_list": [ { "max_value": null, "min_value": null, "option": "01s", "value": null }, { "max_value": null, "min_value": null, "option": "01m", "value": null }, { "max_value": null, "min_value": null, "option": "01l", "value": null } ] } ] } }, "warning": "" }