有奖捉虫:办公协同&微信生态&物联网文档专题 HOT

接口描述

url
https://pay.qcloud.com/cpay/query_sub_mch_shop_info

输入参数

参数名
必填
类型
说明
request_content
String
请求内容,该 string 可以转为 json 结构,json 格式见本节 RequestContent。
authen_info
AuthenInfo
认证信息,详见接口调用说明。

RequestContent 结构

参数名
必填
类型
说明
out_mch_id
String(32)
云支付分配给服务商的账号。
out_sub_mch_id
String(32)
云支付分配给子商户的账号。
nonce_str
String(32)
随机字符串。
page_num
Number(32)
页码(从1开始)。
page_size
Number(32)
单页条数。

输出参数

参数名
必填
类型
说明
response_content
ResponseContent
请求内容,详见本节 ResponseContent。
authen_info
AuthenInfo
认证信息,详见接口调用说明。

ResponseContent 结构

参数名
必填
类型
说明
status
Status
错误码,详见 Status。0:成功;非0:失败或者需要重试,具体见实际返回的错误码。
description
String(255)
错误描述。
log_id
Number(32)
消息 ID。
internal_status
Number(32)
调试使用,调用者可以不予理会。
query_shop_info
QueryShopInfoResponse
authen_info 存在时必填。详见 QueryShopInfoResponse。

QueryShopInfoResponse 结构

参数名
必填
类型
说明
nonce_str
String(32)
随机字符串。
shop_infos
ShopInfo []
门店信息,详见公共数据结构 ShopInfo。status 为0时返回。
total_count
Number(32)
数据总数。status 为0时返回。

示例

输入参数示例:
{  
    "authen_info": {  
        "a": {  
            "authen_type": 1,  
            "authen_code": "B2BEE6784FDA86712FD1EA4824B734F6CA074F780D51E1D6EAE53BB423A05E23"  
        }  
    },  
    "request_content": "{  
        "out_mch_id": "sz01PWfGyu80piEk3ENs",  
        "out_sub_mch_id": "sz01MKDW9Ac06YnPkCnf",  
        "nonce_str": "7FD9E45968E64ADD9BFE71D0DBFBEF96",  
        "page_num": 1,  
        "page_size": 50  
    }"  
} 
输出参数示例:
{  
    "response_content":"{  
        "status":0,  
        "description":"\\u64CD\\u4F5C\\u6210\\u529F\\u3002",  
        "log_id":3976286590,  
        "internal_status":0,  
        "query_shop_info":{  
            "shop_infos":[  
               {  
                    "shop_id":"229776",  
                    "shop_name":"\\u8D27\\u67B6\\u95E8\\u5E97",  
                    "branch_name":"",  
                    "province":"\\u5e7f\\u4e1c\\u7701",  
                    "city":"\\u6df1\\u5733\\u5e02",  
                    "district":"\\u5357\\u5c71\\u533a",  
                    "address":"\\u0078\\u0078\\u8def\\u0078\\u0078\\u53f7\\u0078\\u0078\\u680b\\u0078\\u0078\\u623f",  
                    "coordinate_type":0,  
                    "longitude":"",  
                    "latitude":"",  
                    "height":"",  
                    "phone":"189xxxxxxxx",  
                    "create_time":1547606496,  
                    "update_time":1547606577,  
                    "device_infos":[  
                        {  
                            "device_id":"39175",  
                            "device_type":1,  
                            "remark":"",  
                            "device_name":" \\u6536\\u94f6\\u53f0",  
                            "ext_setting":"",  
                            "device_shift_type":2,  
                            "sn_code":"",  
                            "bind_status":1,  
                            "bind_qrcode_source_type":0,  
                            "bind_qrcode_id":"",  
                            "bill_channel_id":"",  
                            "out_device_id":"sz01T80575"  
                        }  
                    ],  
                    "staff_infos":[  
                        {  
                            "staff_id":"113080",  
                            "staff_name":" \\u5c0f\\u5b9d",  
                            "remark":"",  
                            "shop_manager":true,  
                            "receive_one_code_pay_notify":true,  
                            "mch_open_id":"ouNh7wEz3JY-k7pyvEGDXZHl9bfU",  
                            "cloud_pay_open_id":"olEuZ07nip9kkTfjD9LjNCyR7Qd0",
                            "trade_qr_code":"https://pay.qcloud.com/cpay/qrcode_person?id=sz01HPuVzJ3mW3b24JpU&out_shop_id=sz01fHOHajay0TrGCqDk&rid=11",  
                            "refund_auth":false,  
                            "national_code":"86",  
                            "mobile_phone":"133xxxxxxxx",  
                            "out_staff_id":"sz01T119988"  
                       }  
                    ],  
                    "out_shop_id":"sz01fHOHattyw4lXNbve",  
                    "out_shop_id_url":"https://pay.qcloud.com/cpay/qrcode_shop?id=sz01fHOHattyw4lXNbve&rid=11",  
                    "fee_type":"CNY",  
                    "goods_tag":"",  
                    "receive_notify_after_duty":true,  
                    "pay_page_mode":1,  
                    "shop_type":1,  
                    "qrcode_infos":[  
                        {  
                           "qrcode_id":"SZ01PPU9HKE52G9JIUbx",  
                            "qrcode_name":"02",  
                            "type":1,  
                            "staff_id":""  
                        },  
                        {  
                            "qrcode_id":"SZ01OTVWV2127M3MPPde",  
                            "qrcode_name":"01",  
                            "type":1,  
                            "staff_id":""  
                        }  
                    ],  
                    "send_micro_pay_notify":true,  
                    "shop_group_id":"",  
                    "disable_membership_card":false,  
                    "wxpay_shop_info_ext":{  
                        "ext_sub_mch_id":""  
                    },  
                    "alipay_shop_info_ext":{  
                        "ali_authorization_url":"https://pay.qcloud.com/cpay/alipay_mch_authorize?oshop=sz01fHOHattyw4lXNbve&rid=11"  
                    }  
                },  
            ],  
            "total_count":1,  
            "nonce_str":"juSTKFMz80nmRUypBeQBteU0eAHbbXyF"  
        }  
    }",  
    "authen_info":{  
        "a":{  
            "authen_type":1,  
            "authen_code":"5434DDE1D6CDAFBAC179B96E40D346455F518C7558F04C35FDF30AAB0278D420"  
        }  
    } 
}