POST api/Common/GetStoreInventory

通用接口获取附近门店信息(传入商品信息返回门店库存)

请求的信息

URI参数

None.

Body参数

StoreInventoryCondition
名称描述类型其它信息
AppKey

合作方接入认证标识(海王提供对应商户编码)--必填

string

None.

TimeStamp

10位时间戳 格式为long,时区为GMT+8。开放平台允许合作方请求最大时间误差为10分钟

integer

None.

Version

API协议版本,可选值:1.0

string

None.

Sign

签名值 --必填

string

None.

Mobile

收货人手机号 --必填

string

None.

Name

收货人名称 --必填

string

None.

OrderCompleteAddress

收货人订单地址 --必填

string

None.

ReceiverLng

收货地址经度(高德坐标系) --必填

string

None.

ReceiverLat

收货地址纬度(高德坐标系) --必填

string

None.

List

商品集合

Collection of StoreInventoryGoodsModelCondition

None.

请求格式

application/json, text/json

Sample:
{
  "appKey": "sample string 1",
  "timeStamp": 2,
  "version": "sample string 3",
  "sign": "sample string 4",
  "mobile": "sample string 5",
  "name": "sample string 6",
  "orderCompleteAddress": "sample string 7",
  "receiverLng": "sample string 8",
  "receiverLat": "sample string 9",
  "list": [
    {
      "$id": "2",
      "barCode": "sample string 1",
      "quantity": 2
    },
    {
      "$ref": "2"
    },
    {
      "$ref": "2"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

响应信息

资源描述

CustomJsonResultOfPageResultViewOfStoreInventoryModel
名称描述类型其它信息
Content

PageResultViewOfStoreInventoryModel

None.

响应格式

application/json, text/json

Sample:
{
  "content": {
    "$id": "2",
    "total": 1,
    "result": [
      {
        "$id": "3",
        "storeID": "sample string 1",
        "storeNo": "sample string 2",
        "storeName": "sample string 3",
        "storeGdLng": "sample string 4",
        "storeGdLat": "sample string 5",
        "storeAddress": "sample string 6",
        "storeTel": "sample string 7",
        "storeDistance": "sample string 8",
        "isStock": true,
        "goodsList": [
          {
            "$id": "4",
            "barCode": "sample string 1",
            "stockQty": 2
          },
          {
            "$ref": "4"
          },
          {
            "$ref": "4"
          }
        ]
      },
      {
        "$ref": "3"
      },
      {
        "$ref": "3"
      }
    ],
    "customStatus": 10,
    "customMessage": "sample string 2"
  }
}