1、基本信息
(1)请求方法: http post
(2)请求地址: http://{hostname}/apicenter/api/sku/list
(3)说明:
SKU列表
2、请求参数
| 名称 | 数据类型 | 说明 | 是否必填 |
|---|---|---|---|
| client_code | String | 客户(店铺)编码,默认CK2023 | 是 |
| create_time_from | String | 创建时间,时间戳格式,单位秒 | 否 |
| create_time_to | String | 创建时间,时间戳格式,单位秒 | 否 |
| page_index | Integer | 页码 | 否 |
| page_size | Integer | 页数 | 否 |
| update_time_from | String | 商品更新时间,时间戳格式,单位秒 | 否 |
| update_time_to | String | 商品更新时间,时间戳格式,单位秒 | 否 |
| sku | String | SKU | 否 |
3、请求示例
{"client_code": "CK2023","sku": "-ALB-908"}
{"centre_code": "CKMX","client_code": "CK2023","create_time_from":1688890789,"create_time_to":1752049189,"page_index": "1","page_size": "10","update_time_from":1688890789,"update_time_to":1752049189}
4、响应参数
| 名称 | 数据类型 | 说明 |
|---|---|---|
| code | Integer | code |
| message | String | 提示信息 |
| data | String | 响应数据 |
| -totalCount | Integer | 总条数 |
| -list | Array | 列表 |
| —prod_name_en | String | 商品名称(英文) |
| —photo_primary | String | 主图 |
| —prod_height | String | 高 cm |
| —prod_length | String | 长 cm |
| —prod_width | String | 宽 cm |
| —prod_weight | String | 重量 g |
| —name | String | 商品名称 |
| —sku | String | sku |
| —barcode_print_link | String | 商品条码 |
| - update_time | String | 更新时间 |
5、响应示例
{"code": 200,"data": {"list": [{"prod_name_en": "MI DA","photo_primary": "http://apitest.xmfree.net:8878/images/p/1/20220915/20220915135512-2610954.png","prod_height": "80.00","prod_weight": "270.00","name": "迷你大白加湿器","prod_width": "80.00","sku": "-ALB-908","prod_length": "1000.00","barcode_print_link": "http://demo.yunyancang.com:8878/api/sku-barcode-print?type=eyJ0eXBlIjoxLCJza3UiOiItQUxCLTkwOCJ9","update_time": "2025-07-08 17:50:57"}],"totalCount": "1"},"message": "success"}
备注
- 更多返回错误代码请看首页的错误代码描述
