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

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ê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ả
size_chart_idintTrue700024639ID of new bảng kích thước

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.
warningstringWarning message.
request_idstringMã định danh của yêu cầu API dùng để theo dõi lỗi.
responseobject
size_chart_idint700024639ID of new bảng kích thước
size_chart_namestringT shirtname of new bảng kích thước
size_chart_tableobjectnew 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_listobject[]column danh sách new bảng kích thước table. it include one column (measurement) and multiple values (measurement value)
measurementobjectthis is the column header which means a kind of measurement
input_typestringInput Range Numberthere are 3 kinds of measurement type: Single Dropdown, Input Single Number, Input Range Number.
display_namestringweightname of column header (measurement)
unitstringkgthe unit of this size measurement.
measurement_value_listobject[]the danh sách measurement value
valuefloat50.5if the input_type of measurement is single input number, measurement will have one value which is returned by this field.
min_valuefloat52.5if 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_valuefloat52.5if 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.
optionstringMif 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&timestamp=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&timestamp=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&timestamp=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&timestamp=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": "" }