查询单个门店信息接口(alipay.offline.market.shop.querydetail)java沙箱版

1.文档链接:https://docs.open.alipay.com/api_3/alipay.offline.market.shop.querydetail/ 2.作用:调用创建门店信息接口创建门店成功之后,系统商通过该接口可以查询单个门店的详细信息,包括门店基础信息,门店状态等信息 3.接口示例

package com.alipay.demo;
  
import com.alipay.api.AlipayApiException;
import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;
import com.alipay.api.domain.AlipayOfflineMarketShopQuerydetailModel;
import com.alipay.api.request.AlipayOfflineMarketShopQuerydetailRequest;
import com.alipay.api.response.AlipayOfflineMarketShopQuerydetailResponse;
import com.alipay.config.AlipayConfig;
  
public class AlipayOfflineMarketShopQuerydetail {
    public static void main(String[] args) throws AlipayApiException {
        AlipayClient alipayClient = new DefaultAlipayClient("https://openapi.alipaydev.com/gateway.do", AlipayConfig.app_id, AlipayConfig.merchant_private_key, "json", "utf-8", AlipayConfig.alipay_public_key,  "RSA2");
        AlipayOfflineMarketShopQuerydetailRequest request = new AlipayOfflineMarketShopQuerydetailRequest();
        AlipayOfflineMarketShopQuerydetailModel model = new AlipayOfflineMarketShopQuerydetailModel();
        model.setShopId("2017090500077000000000123588");    
        request.setBizModel(model);
        AlipayOfflineMarketShopQuerydetailResponse response = alipayClient.execute(request);
        if(response.isSuccess()){
        System.out.println("调用成功");
        } else {
        System.out.println("调用失败");
        }
        System.out.println(response.getBody());
    }
}

请求参数说明: shop_id:支付宝门店id,创建门店之后,可调用【查询商户的门店编号列表接口】获取; 返回结果:

{"alipay_offline_market_shop_querydetail_response":{"code":"10000","msg":"Success","audit_desc":"审核通过","notify_mobile":"13867498729","parking":"F","contact_number":"13612344321,021-12336754","gmt_shop_modified":"2017-09-05 15:18:14","city_code":"330100","provider_xiaoer_uid":"2088102180198585","brand_name":"其它品牌","gmt_shop_create":"2017-09-05 15:18:14","audit_status":"AUDIT_SUCCESS","longitude":"114.0","brand_logo":"1T8Pp00AT7eo9NoAJkMR3AAAACMAAQEC","licence":"1T8Pp00AT7eo9NoAJkMR3AAAACMAAQEC","category_id":"2015050700000011","isv_uid":"2088001969784501","no_smoking":"F","is_operating_online":"F","main_shop_name":"肯德基","audit_images":"1T8Pp00AT7eo9NoAJkMR3AAAACMAAQEC,4Q8Pp00AT7eo9NoAJkMR3AAAACMAAUYT","latitude":"30.548828","store_id":"201708281533129318","province_code":"330000","partner_id":"2088102180198585","pic_coll":"{\"4Q8Pp00AT7eo9NoAJkMR3AAAACMAAUYT\":\"http:\/\/alipay.dl.django.t.taobao.com\/rest\/1.0\/image?fileIds=4Q8Pp00AT7eo9NoAJkMR3AAAACMAAUYT&zoom=original\",\"1T8Pp00AT7eo9NoAJkMR3AAAACMAAQEC\":\"http:\/\/alipay.dl.django.t.taobao.com\/rest\/1.0\/image?fileIds=1T8Pp00AT7eo9NoAJkMR3AAAACMAAQEC&zoom=original\"}","business_time":"周一-周五 09:00-20:00,周六-周日 10:00-22:00","main_image":"1T8Pp00AT7eo9NoAJkMR3AAAACMAAQEC","is_online":"T","licence_name":"来伊份上海分公司","licence_code":"H001232","shop_tags":"{\"keyMerchant\":\"F\",\"isHallMeal\":\"T\"}","business_certificate":"1T8Pp00AT7eo9NoAJkMR3AAAACMAAQEC","wifi":"F","district_code":"330106","address":"西溪路556号","box":"F","branch_shop_name":"西溪路湘菜店","create_channel":"开放平台","is_show":"T"},"sign":"RhfRg7KRvxI5AKZejjgyTm5P0AlbbL17JqujU8di3zimV7WJ7VTc/L/ZIMAtB9bQCB4z+rOjsJ7hYEmMzld7J8t1pfeQVwtCLrebVaplIYz+CcmjqkzqXcHJFM/Z4X58z7y5pk1ljTwpJLXPkYqE5FQwurES7ne9v6Ic2Vqcw0HdWrbe7njCR7DFR9zEg7cevA/B20nZHivvhMXjL1KdRXQ8yN34+CFACU9vopra5V3QfjrPgLsxa8P4yDhjcMmHONU++CNXuOecqtoPiUwD+tuSbclFGkkiyHB6gy3YMOm27bym4el2QwofjqMXL0ct0Q86eSTr6JzlGNwL0Kwh9A=="}

返回参数说明: a.audit_status:门店审核状态,对于系统商而言,只有三个状态;                        AUDITING:审核中;                        AUDIT_FAILED:审核驳回;                        AUDIT_SUCCESS:审核通过。第一次审核通过会触发门店上架; b.audit_desc:门店审核状态描述,如果审核驳回则有相关的驳回理由; c.is_online:门店是否上架,T表示上架,F表示未上架,第一次门店审核通过后会触发上架; d.is_show:门店是否在客户端显示,T表示显示,F表示隐藏;  e.category_id:类目ID,类目初始数据由口碑提供; 参数太多,就不一一说明了,详情可参考文档响应说明,如有疑问,欢迎留言追问,如有不足之处,欢迎多多吐槽,谢谢!!

上一篇:Spring 一二事(6) - IOC MVC 简易搭建


下一篇:网络安全:步入与AI结合新时代