更新货品信息API,获取货品相关信息。
| 环境 | HTTP请求地址 | HTTPS请求地址 |
|---|---|---|
| 正式环境 | http://www.xxx.com/api.php | https://www.xxx.com/api.php |
| 名称 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| method | String | 是 | API接口名称 |
| app_key | String | 是 | API接口AppKey |
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| product_id | Number | 可选 | (唯一性) | 货品ID | |
| product_sn | Number | 可选 | (唯一性) | 货品编码 (建议同[goods_id]参数一起使用) |
|
| goods_id | Number | 可选 | (非唯一性) | 商品ID (不建议单独使用) |
|
| format | type | 必须 | json | json或xml | 接口类型 |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| product_id | Number | 货品ID | |
| goods_id | Number | 商品ID | |
| goods_attr | String | 519|528 | 属性ID名称(ID值拼接格式:519|528) |
| product_sn | String | 货品编码 | |
| bar_code | String | 货品条形码 | |
| product_number | Number | 货品库存 | |
| product_price | float | 货品价格 | |
| product_promote_price | float | 货品促销价 | |
| product_market_price | float | 货品市场价格 | |
| product_warn_number | Number | 货品警告库存 |
| 错误码 | 错误描述 | 解决方案 |
|---|---|---|
| error | 返回值 |
0:数据更新成功 1:数据提交失败,参数不存在 2:条件为空或参数不存在 3:已存在相同数据,无法更新 4:当前数据不存在 5:存在不可传参的参数 |