wdt.api.goods.stock.change.query{
"operation": {
"method": "none"
}
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | limit | 获取数据条数 | int | 100 | Optional | 取值范围:limit大于等于100,小于等于2000,获取的数据通过“库存同步回写”接口响应同步结果后,才可再次获取数据。 注:库存数据获取同步给商城系统后,一定要通过api_goods_stock_change_ack.php回写结果,否则会出现待同步库存数量不能同步到商城的情况。 |
| 2 | shop_no | 店铺编码 | string | 5 | Optional | 代表店铺所有属性的唯一编码,用于店铺区分,ERP内支持自定义(ERP店铺界面设置),用于获取指定店铺货品待同步库存信息(必须是自有类型的店铺) |
| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | shop_no | 店铺m | string | — | Optional | 店铺m |
| 2 | rec_id | Erp内平台货品表主键id | string | — | Optional | Erp内平台货品表主键id,用于状态回传接口使用 |
| 3 | shop_id | 店铺id | string | — | Optional | 店铺id |
| 4 | goods_id | 货品ID | string | — | Optional | 外部系统货品主键,外部系统推送订单时使用的,erp只是保存了下外部系统的值 |
| 5 | 规格ID | spec_id | string | — | Optional | 外部系统货品规格id |
| 6 | sync_stock | Erp内库存 | string | — | Optional | 该库存是通过配置计算出来的,使用该接口注意配置库存同步策略(在erp中可以做试算:货品->平台货品->试算库存同步量(选中货品右键)来核对数量。) |
| 7 | goods_no | 货品编码 | string | — | Optional | 代表货品(spu)所有属性的唯一编号 |
| 8 | spec_no | 规格编码 | string | — | Optional | 代表单品(sku)所有属性的唯一编码 |
| 9 | erp_spec_type | erp中货品类型 | string | — | Optional | 1:单品,2:组合装 |
| 10 | erp_spec_id | erp中规格ID | string | — | Optional | 规格id |
| 11 | stock_change_count | 库存变化时自增 | string | — | Optional | 库存变化时自增用于状态回传接口使用,状态回传时把该值一并回传即可,不用深究其含义 |
The 查询库存同步V3.0 API (wdt.api.goods.stock.change.query) of 旺店通·企业奇门 is curated by the API asset management module of the Qeasy Cloud data integration platform and kept in sync with 旺店通·企业奇门 version updates.
Qeasy ships with prebuilt adaptation for this API — contact us to start configuring data integration.