包装
包装详情(Packing Details)资源提供有关产品包装的信息,包括不同级别(彩盒、内箱和外箱)的尺寸、重量和数量,有助于在 Lumytic 中高效管理仓储和运输。
获取产品族包装信息
此端点检索单个产品族的包装信息。 当您需要展示或集成产品族包装信息时,此端点非常有用。
端点:
GET
/packing /v1/families/{family_id}
路径参数:
- family_id (integer):产品族的唯一标识符
请求示例
curl -X GET "https://api.lumytic.com/packing /v1/families/62" \
-H "ApiKey: YOUR_API_KEY_HERE" \
-H "Content-Type: application/json"
-H "Accept-Language: en"
响应示例
{
"success": true,
"message": "已检索到系列 ID: 62 的包装信息数据",
"data": [
{
"product_code": "PRGL40344-A",
"packaging_info": {
"ID": "735",
"color_box_width": "0",
"color_box_length": "0",
"color_box_height": "0",
"color_box_g_weight": "0",
"color_box_quantity_per_box": "20",
"inner_box_width": "0",
"inner_box_length": "0",
"inner_box_quantity_per_outer_box": "0",
"outer_box_width": "23",
"outer_box_length": "48",
"outer_box_height": "39",
"outer_box_n_weight": "5.4",
"outer_box_g_weight": "6.6",
"has_inner_box": "0",
"is_accessory": "0",
"net_weight": "0",
"outer_box_dimension": "L 48 x W 23 x H 39",
"inner_box_dimension": null,
"color_box_dimension": "L 0 x W 0 x H 0",
"qty": "20",
"ctn_volume": 0.043056
}
},
{
"product_code": "PRGL30343-A",
"packaging_info": {
"ID": "734",
"color_box_width": "0",
"color_box_length": "0",
"color_box_height": "0",
"color_box_g_weight": "0",
"color_box_quantity_per_box": "20",
"inner_box_width": "0",
"inner_box_length": "0",
"inner_box_quantity_per_outer_box": "0",
"outer_box_width": "23",
"outer_box_length": "48",
"outer_box_height": "39",
"outer_box_n_weight": "5.4",
"outer_box_g_weight": "6.6",
"has_inner_box": "0",
"is_accessory": "0",
"net_weight": "0",
"outer_box_dimension": "L 48 x W 23 x H 39",
"inner_box_dimension": null,
"color_box_dimension": "L 0 x W 0 x H 0",
"qty": "20",
"ctn_volume": 0.043056
}
}
]
}
可能出现的错误
| 代码 | 消息 | 描述 |
|---|---|---|
| 400 | 错误请求 | 提供了无效的查询参数 |
| 401 | 未经授权 | API 密钥缺失或无效 |
| 404 | 未找到 | 未找到符合条件的产品族。 |
| 500 | 内部服务器错误 | 服务器上发生意外错误 |