alibaba.mj.ytpos.getmemberinfobycode (会员码获取喵街用户信息)

通过pos扫码喵街条形会员码后,请求喵街服务段来获取用户信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
member_code String 可选 1033334444555566 pos扫到的喵街会员码
outer_store_id String 可选 HZ01 外部门店id

响应参数

名称 类型 示例值 描述
result MTopResult 结果
  • model
  • MemberCodeDo
  • 数据
  • └ attributes
  • String
  • {"ext01":123,"ext02":"abc"}
  • attributes
  • └ code_type
  • String
  • MJ
  • codeType
  • └ user_mobile
  • String
  • 13018093833
  • 用户手机号
  • └ user_tags
  • String
  • 1,2
  • 用户标签,逗号隔开
  • └ msg_code
  • String
  • success
  • 错误码
  • └ msg_info
  • String
  • errInfo
  • 错误信息
  • └ success
  • Boolean
  • 1
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMjYtposGetmemberinfobycodeRequest req = new AlibabaMjYtposGetmemberinfobycodeRequest();
req.setMemberCode("1033334444555566");
req.setOuterStoreId("HZ01");
AlibabaMjYtposGetmemberinfobycodeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mj_ytpos_getmemberinfobycode_response>
    <result>
        <model>
            <attributes>{&quot;ext01&quot;:123,&quot;ext02&quot;:&quot;abc&quot;}</attributes>
            <code_type>MJ</code_type>
            <user_mobile>13018093833</user_mobile>
            <user_tags>1,2</user_tags>
        </model>
        <msg_code>success</msg_code>
        <msg_info>errInfo</msg_info>
        <success>1</success>
    </result>
</alibaba_mj_ytpos_getmemberinfobycode_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

返回
顶部