文档中心 > API类目 > 本地生活API

alibaba.alsc.crm.open.customer.get (查询会员资产)

查询会员身份,资产等

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_customer_get_open_req CustomerGetOpenReq 可选 入参
  • └ brand_id
  • String
  • 必须
  • 829429342
  • saas品牌id
  • └ mobile
  • String
  • 可选
  • 18651822226
  • 手机号
  • └ outer_id
  • String
  • 可选
  • 2088982439203023
  • 外部id
  • └ outer_type
  • String
  • 可选
  • alipay
  • 外部id类型,wechat:微信openId alipay:支付宝
  • └ physical_card_id
  • String
  • 可选
  • 232920301232
  • 物理卡id
  • └ shop_id
  • String
  • 必须
  • 3434353
  • saas门店id
  • └ customer_id
  • String
  • 可选
  • 13243
  • 顾客id

响应参数

名称 类型 示例值 描述
result CommonResult 接口结果
  • └ biz_success
  • Boolean
  • true
  • 是否成功
  • result
  • CustomerGetOpenInfo
  • 结果
  • card_open_info_list
  • CardOpenInfo []
  • 卡实例信息
  • accounts
  • AccountOpenInfo []
  • 账户信息
  • └ balance
  • Number
  • 1
  • 余额
  • └ gift
  • Number
  • 1
  • 赠储
  • └ pre
  • Number
  • 1
  • 预储
  • └ real
  • Number
  • 1
  • 实储
  • └ total_gift
  • Number
  • 1
  • 总赠储
  • └ total_pre
  • Number
  • 1
  • 总预储
  • └ total_real
  • Number
  • 1
  • 总实储
  • └ card_id
  • String
  • 1234567
  • 卡id
  • └ card_template_id
  • String
  • 21323445524
  • 卡模板id
  • └ card_type
  • String
  • MEMBER
  • 卡类型,MEMBER:会员卡,GIFT:礼品卡
  • └ status
  • String
  • SOLD
  • 电子卡状态,SOLD:已出售,ACTIVED:已激活,STOP:已停用,INVALID:已作废,EXPIRED:已过期,REFUND:已退卡
  • customer_open_info
  • CustomerOpenInfo
  • 会员信息
  • └ birthday
  • Date
  • 1992-09-29
  • 生日
  • └ channel
  • Number
  • 4
  • 渠道
  • └ customer_id
  • String
  • 124243
  • 顾客id
  • └ customer_type
  • Number
  • 1
  • 顾客类型,顾客:0,会员:1
  • └ email
  • String
  • 123@qq.com
  • email
  • └ gender
  • Number
  • 1
  • 性别 0女 1男
  • └ level_desc
  • String
  • 2
  • 等级详情
  • └ level_id
  • String
  • 123421332344
  • 等级id
  • └ level_no
  • Number
  • 2
  • 等级号
  • └ mobile
  • String
  • 18723342332
  • 手机号
  • └ name
  • String
  • 测试
  • 姓名
  • └ remark
  • String
  • 测试
  • 备注
  • └ member_time
  • Date
  • 2019-01-01
  • 入会时间
  • └ member_store_id
  • String
  • 1234422
  • 入会门店
  • point_account_open_info
  • PointAccountOpenInfo
  • 积分信息
  • └ available_point
  • Number
  • 1
  • 剩余可用积分
  • └ freeze_point
  • Number
  • 1
  • 已冻结积分
  • └ total_point
  • Number
  • 1
  • 累计获取积分
  • └ total_used_point
  • Number
  • 1
  • 累计被使用积分
  • └ remain_point
  • Number
  • 1
  • 剩余总积分
  • voucher_open_info_list
  • VoucherOpenInfo []
  • 券信息
  • └ amount
  • Number
  • 1
  • 面额
  • └ end_time
  • String
  • 2022-12-12
  • 失效时间
  • └ start_fee
  • Number
  • 1
  • 满足金额阀值,单位:分
  • └ start_time
  • String
  • 2022-10-01
  • 券开始时间
  • └ status
  • String
  • INIT
  • 状态
  • └ title
  • String
  • 测试
  • 券名称
  • └ voucher_id
  • String
  • 1232435
  • 券实例id
  • └ voucher_template_id
  • String
  • 13433322
  • 券模板id
  • └ voucher_type
  • String
  • CASH
  • 优惠券类型,CASH:代金券,DISCOUNT:折扣券,GIFT:礼品券
  • └ discount_rate
  • String
  • 0
  • 折扣率
  • └ item_id_list
  • String []
  • 商品id列表
  • └ shop_id_list
  • String []
  • 门店id列表
  • └ user_limit
  • Number
  • 3
  • 每人限领,-1代表不限
  • └ item_coverage
  • String
  • ALL
  • 适用商品范围 值:ALL,PART_AVAILABLE,PART_UNAVAILABLE * 说明:全部商品可用,部分商品可用,部分商品不可用
  • └ shop_coverage
  • String
  • ALL
  • 适用商品范围 值:ALL,PART_AVAILABLE * 说明:全部门店可用,部分门店可用
  • └ available_time
  • String
  • {\"type\":0,\"settings\":[{\"dayStartTime\":\"00:00\",\"dayEndTime\":\"23:59\",\"week\":[]}]}
  • {\"type\":0,\"settings\":[{\"dayStartTime\":\"00:00\",\"dayEndTime\":\"23:59\",\"week\":[]}]} type:0不限制,1限制 dayStartTime:开始时间 dayEndTime:结束时间 week:1,2,3,4,5,6,7
  • item_info_list
  • VoucherItemInfo []
  • 商品信息
  • └ sku_id
  • String
  • 2424443
  • sku规格id
  • └ dish_id
  • String
  • 123445
  • 菜品id
  • └ sku_out_no
  • String
  • 2345
  • 外部sku规格id
  • └ dish_out_no
  • String
  • 2345
  • 外部菜品id
  • shop_info_list
  • VoucherShopInfo []
  • 门店信息
  • └ out_shop_id
  • String
  • 234545
  • 外部门店id
  • └ shop_id
  • String
  • 2345
  • 门店id
  • └ ext_info
  • String
  • {"giftName":"贝乐果棒棒糖","giftGoodsSkuId":"12345","skuOutNo":"123","dishOutNo":"345"}
  • 扩展字段,包含了礼品券的信息
  • └ use_condition
  • String
  • DINE_IN
  • DINE_IN堂食,TAKE_OUT外卖
  • └ result_code
  • String
  • 0
  • 结果码
  • └ result_desc
  • String
  • SUCCESS
  • 结果详情
  • └ result_view
  • String
  • 处理成功
  • 结果显示

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmOpenCustomerGetRequest req = new AlibabaAlscCrmOpenCustomerGetRequest();
AlibabaAlscCrmOpenCustomerGetRequest.CustomerGetOpenReq obj1 = new AlibabaAlscCrmOpenCustomerGetRequest.CustomerGetOpenReq();
obj1.setBrandId("829429342");
obj1.setMobile("18651822226");
obj1.setOuterId("2088982439203023");
obj1.setOuterType("alipay");
obj1.setPhysicalCardId("232920301232");
obj1.setShopId("3434353");
obj1.setCustomerId("13243");
req.setParamCustomerGetOpenReq(obj1);
AlibabaAlscCrmOpenCustomerGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_crm_open_customer_get_response>
    <result>
        <biz_success>true</biz_success>
        <result>
            <card_open_info_list>
                <card_open_info>
                    <accounts>
                        <account_open_info>
                            <balance>1</balance>
                            <gift>1</gift>
                            <pre>1</pre>
                            <real>1</real>
                            <total_gift>1</total_gift>
                            <total_pre>1</total_pre>
                            <total_real>1</total_real>
                        </account_open_info>
                    </accounts>
                    <card_id>1234567</card_id>
                    <card_template_id>21323445524</card_template_id>
                    <card_type>MEMBER</card_type>
                    <status>SOLD</status>
                </card_open_info>
            </card_open_info_list>
            <customer_open_info>
                <birthday>1992-09-29</birthday>
                <channel>4</channel>
                <customer_id>124243</customer_id>
                <customer_type>1</customer_type>
                <email>123@qq.com</email>
                <gender>1</gender>
                <level_desc>2</level_desc>
                <level_id>123421332344</level_id>
                <level_no>2</level_no>
                <mobile>18723342332</mobile>
                <name>测试</name>
                <remark>测试</remark>
                <member_time>2019-01-01</member_time>
                <member_store_id>1234422</member_store_id>
            </customer_open_info>
            <point_account_open_info>
                <available_point>1</available_point>
                <freeze_point>1</freeze_point>
                <total_point>1</total_point>
                <total_used_point>1</total_used_point>
                <remain_point>1</remain_point>
            </point_account_open_info>
            <voucher_open_info_list>
                <voucher_open_info>
                    <amount>1</amount>
                    <end_time>2022-12-12</end_time>
                    <start_fee>1</start_fee>
                    <start_time>2022-10-01</start_time>
                    <status>INIT</status>
                    <title>测试</title>
                    <voucher_id>1232435</voucher_id>
                    <voucher_template_id>13433322</voucher_template_id>
                    <voucher_type>CASH</voucher_type>
                    <discount_rate>0</discount_rate>
                    <item_id_list>
                        <string></string>
                    </item_id_list>
                    <shop_id_list>
                        <string></string>
                    </shop_id_list>
                    <user_limit>3</user_limit>
                    <item_coverage>ALL</item_coverage>
                    <shop_coverage>ALL</shop_coverage>
                    <available_time>{\&quot;type\&quot;:0,\&quot;settings\&quot;:[{\&quot;dayStartTime\&quot;:\&quot;00:00\&quot;,\&quot;dayEndTime\&quot;:\&quot;23:59\&quot;,\&quot;week\&quot;:[]}]}</available_time>
                    <item_info_list>
                        <voucher_item_info>
                            <sku_id>2424443</sku_id>
                            <dish_id>123445</dish_id>
                            <sku_out_no>2345</sku_out_no>
                            <dish_out_no>2345</dish_out_no>
                        </voucher_item_info>
                    </item_info_list>
                    <shop_info_list>
                        <voucher_shop_info>
                            <out_shop_id>234545</out_shop_id>
                            <shop_id>2345</shop_id>
                        </voucher_shop_info>
                    </shop_info_list>
                    <ext_info>{&quot;giftName&quot;:&quot;贝乐果棒棒糖&quot;,&quot;giftGoodsSkuId&quot;:&quot;12345&quot;,&quot;skuOutNo&quot;:&quot;123&quot;,&quot;dishOutNo&quot;:&quot;345&quot;}</ext_info>
                    <use_condition>DINE_IN</use_condition>
                </voucher_open_info>
            </voucher_open_info_list>
        </result>
        <result_code>0</result_code>
        <result_desc>SUCCESS</result_desc>
        <result_view>处理成功</result_view>
    </result>
</alibaba_alsc_crm_open_customer_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部