提供商家基于货品、供应商、仓,查询ascp 实时商家仓库存查询数据。
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
merchant_inventory_query_request | MerchantInventoryQuery | 可选 | 商家仓库存查询请求参数 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
merchant_inventory_query_response | ResultWrapper | 响应结果 | |
|
1 2 3 4 5 6 7 8 9 10 11 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryRequest req = new AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryRequest(); AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryRequest.MerchantInventoryQuery obj1 = new AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryRequest.MerchantInventoryQuery(); obj1.setSupplierId(1000000000028232L); obj1.setStoreCode( "YZW001" ); obj1.setUserId(2807304908L); obj1.setScItemIds( new Long[] { 620623422087 , 620623422089 }; ); req.setMerchantInventoryQueryRequest(obj1); AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | < alibaba_ascp_aic_supplier_aicinventory_channel_inventory_query_response > < merchant_inventory_query_response > < datas > < datas > < lock_quantity >102</ lock_quantity > < channel_code >1000</ channel_code > < inventory_type >1</ inventory_type > < quantity >200</ quantity > < sc_item_id >620353517016</ sc_item_id > < source_user_id >2807304908</ source_user_id > < store_code >2712709910_TEST_009</ store_code > </ datas > </ datas > < success >true</ success > < error_message >demo</ error_message > < error_code >demo</ error_code > </ merchant_inventory_query_response > </ alibaba_ascp_aic_supplier_aicinventory_channel_inventory_query_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|