即时配送 /小程序使用 /getBindAccount # immediateDelivery.getBindAccount > 本接口应在服务器端调用,详细说明参见[服务端API](https://developers.weixin.qq.com/miniprogram/dev/framework/server-ability/backend-api.html)。 拉取已绑定账号 ### 请求地址 ```text POST https://api.weixin.qq.com/cgi-bin/express/local/business/shop/get?access_token=ACCESS_TOKEN ``` ### 请求参数 | 属性 | 类型 | 默认值 | 必填 | 说明 | | :------------------------------------ | :----- | :----- | :--- | :----------------------------------------------------------- | | access_token / cloudbase_access_token | string | | 是 | [接口调用凭证](https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken.html) | ### 返回值 ### Object | 属性 | 类型 | 说明 | | :--------- | :------------- | :----------------------------------------------- | | errcode | number | 错误码, 当errcode==0或者不存在还需要看resultcode | | errmsg | string | 错误描述 | | resultcode | number | 运力返回的错误码 | | resultmsg | string | 运力返回的错误描述 | | shop_list | Array.<Object> | 绑定的商家签约账号列表 | **shop_list 的结构** | 属性 | 类型 | 说明 | | :----------- | :----- | :--------- | | delivery_id | string | 配送公司Id | | shopid | string | 商家id | | audit_result | number | 审核状态 | **audit_result 的合法值** | 值 | 说明 | 最低版本 | | :--- | :--------- | :------- | | 0 | 审核通过 | | | 1 | 审核中 | | | 2 | 审核不通过 | | ### 使用场景 1. 商家可通过本接口查询自己已经在小程序后台绑定的和配送公司签约的账号; 2. 服务商可通过本接口查询代开发的小程序在小程序后台绑定的和配送公司签约的账号,为其完成后续的接口代开发业务。 ### 返回数据示例 ```json { "resultcode": 0, "resultmsg": "ok", "shop_list": [ { "delivery_id": "SFTC", "shopid": "123456", "audit_result": 0 }, { "delivery_id": "MTPS", "shopid": "123456", "audit_result": 0 } ] } ```