1. 发起场景 :1. C端透商品当前库存;2. 下单前校验库存 2. 预期结果 :返回批量商品的的时段库存 3. 异常兜底 :异常默认没有库存。 4. 超时时间:2s以内 5. 注意:本接口不会重试,超时或者fail认为无库存,反馈用户库存不足
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
shop_option | ShopOption | 必须 | 门店信息 | ||
|
|||||
time_option | TimeOption | 必须 | 时间信息 | ||
|
|||||
item_list | ItemList [] | 必须 |
|
商品列表 | |
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
biz_result | String | success | 业务结果,查询成功返回success,查询失败返回fail |
biz_error_msg | String | 错误信息 | 业务错误描述 |
success | Boolean | true | 合作方是否收到本次请求,默认传true |
date_inventory_result | DateInventoryResult [] | 库存结果 | |
|
|||
biz_error_code | String | SYSTEM_ERROR | 业务错误码 |
{"shop_option":{"store_id":"123456","partner_shop_id":"2114312"},"time_option":{"start":"2022-05-20","end":"2022-05-26","type":"DAY_INTERVAL"},"item_list":[{"alsc_item_id":"123456","partner_item_id":"654321"}]}
{ "biz_result":"success", "biz_error_msg":"错误信息", "success":true, "date_inventory_result":[ { "alsc_item_id":"123456", "partner_item_id":"654321", "date_inventory":[ { "date":"2022-05-20", "time_units":[ { "start_time":"10:00", "end_time":"11:00", "count":1, "status":"OPEN" } ] } ] } ], "biz_error_code":"SYSTEM_ERROR" }
{"biz_error_msg":"Illegal request","success":"不等于true","biz_error_code":"sign-check-failure"}
错误码 | 错误描述 | 解决方案 |
---|---|---|
isp.http-read-timeout |