v2.product.get_weight_recommendation
POST /api/v2/product/get_weight_recommendation
Get recommended weight. Now only BR shop support to use this api to get recommended weight.
Endpoint URL
URL: https://partner.shopeemobile.com/api/v2/product/get_weight_recommendation
Common Request Parameters
| Name | Type | Sample | Description |
|---|---|---|---|
| partner_id | int | 1 | Partner ID is assigned upon registration is successful. Required for all requests. |
| timestamp | timestamp | 1610000000 | This is to indicate the timestamp of the request. Required for all requests. Expires in 5 minutes. |
| access_token | string | c09222e3fc40ffb25fc947f738b1abf1 | The token for API access, using to identify your permission to the api. Valid for multiple use and expires in 4 hours. |
| shop_id | int | 600000 | Shopee's unique identifier for a shop. Required param for most APIs. |
| 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 |
Request Parameters
| Name | Type | Required | Sample | Description |
|---|---|---|---|---|
| item_name | string | True | paper | Name of the item in local language. |
| cover_image_id | string | True | e9a76cf159c3e7f12510a7017e120467 | Image id of first product image. |
| category_id | int | True | 100061 | Shopee's unique identifier for a category. |
| attribute_list | object[] | True | ||
| attribute_id | int | True | 100019 | The Identify of each attribute. |
| attribute_value_list | object[] | True | ||
| value_id | int | True | 1009 | Unique identifier for value of this item attribute. |
| original_value_name | string | False | value | Value name of this item attribute. |
| value_unit | string | False | kg | Value unit of this item attribute. |
| brand_id | int | True | 100021 | Id of brand. |
| description_type | string | True | extended | Type of description, values: See Data Definition- description_type (normal , extended). |
| description | string | False | If description_type is normal , Description information should be set by this field. | |
| description_info | object | False | New description field. Only whitelist sellers can use it. If you use the field, please upload the description_type=extended. | |
| extended_description | object | False | If description_type is extended , Description information should be set by this field. | |
| field_list | object[] | False | Field of extended description. | |
| field_type | string | False | text | Type of extended description field, values: See Data Definition- description_field_type (text , image). |
| text | string | False | desc text | If field_type is text, text information will be set by this field. |
| image_info | object | False | If field_type is image, image information will be set by this field. | |
| image_id | string | False | 564d29618a333337fa1798f20476c4f5 | Image id. |
Response Parameters
| Name | Type | Sample | Description |
|---|---|---|---|
| message | string | Indicate error details if hit error. Empty if no error happened. | |
| warning | string | Indicate waring details if hit waring. Empty if no waring happened. | |
| request_id | string | 41b0c8c1c414ed0624bf1c9ebdb21d20 | The identifier for an API request for error tracking |
| response | object | ||
| normal_weight_range | float[] | [0.1,0.5] | Recommended weight range, in kg. If there are no recommended results, return empty. |
| error | string | error_param | Indicate error type if hit error. Empty if no error happened. |