Predicts the package dimensions and weight for one candidate product based on its leaf category. The result is generated synchronously and can be used to prepare the package information in a create or edit product request. When no prediction is available, data is an empty object.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
Request Bodyrequired
Section titled “Request Bodyrequired”object
The ID of the leaf category selected for the product.
Example
{ "category_id": "600001"}Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
Predicted package dimensions for the product.
object
Predicted positive package height.
Predicted positive package length.
Unit of the predicted package dimensions. Possible values:
CENTIMETERINCHFOOTMILLIMETERMETER
Predicted positive package width.
Predicted package weight for the product.
object
Unit of the predicted package weight. Possible values:
GRAMPOUNDOUNCEKILOGRAM
Predicted positive package weight.
Example
{ "code": 0, "data": { "package_dimensions": { "height": 10, "length": 30, "unit": "CENTIMETER", "width": 20 }, "package_weight": { "unit": "GRAM", "value": "500" } }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}