说明

查询门店列表

请求地址

环境 请求地址
测试环境 https://pay.umxnt.com/api/merchant/store_lists

请求参数

参数 类型 是否必填 最大长度 描述
token string 11 令牌
merchant_id string 255 商户收银员id,不传为当前账户
return_type string 查询返回类型,默认为空,不传或为空返回全部,0-返回类型为总店,1-返回类型为分店,2-充值
p string 第几页,默认第一页
l string 返回条数,默认15条
  • 成功返回有数据
{
  "status": 1,
  "message": "数据返回成功",
  "data": [
    {
      "pid": 0,
      "store_id": "2018061205492993161",
      "store_name": "",
      "store_short_name": "",
      "store_address": ""
    },
    {
      "pid": 0,
      "store_id": "2018061205492993161",
      "store_name": "",
      "store_short_name": "",
      "store_address": ""
    }
  ],
  "l": 15,
  "p": 1,
  "t": 2
}
  • 成功返回没有数据
{
  "status": 1,
  "message": "数据返回成功",
  "data": [],
  "l": 15,
  "p": 1,
  "t": 0
}
参数说明 说明
pid 0 总店 其他都是分店
store_id 门店ID
store_name 门店名称
store_short_name 门店简称
store_address 门店地址
  • 失败请求示例

  • {
        "message":"无效参数",
        "status":2
    }
    

results matching ""

    No results matching ""