文档中心 > API类目 > 天猫优品

taobao.tmyp.member.privacy.sync (会员变更信息同步接口)

天猫优品会员同步会员变更信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
shop Number 必须 9 店铺:9 天猫优品官方直营,10 宝贝猜猜旗舰店
sync Number 必须 0 需拉取同步类型: 0 等级变更 1 新入会 2 退会
start Number 必须 0 起始位置,从0开始,<0 时将返回total=0的空列表
size Number 必须 100 拉取最大数量 (范围 1~200),<=0 时直接返回total=0的空列表,>200时将置为200

响应参数

名称 类型 示例值 描述
result TopResult 返回结果
  • └ msg
  • String
  • ok
  • 错误信息
  • └ success
  • Boolean
  • true
  • 是否成功
  • model
  • Page
  • {}
  • 数据
  • rows
  • MemberSyncInfo []
  • []
  • 记录列表
  • └ mod_datetime
  • Date
  • 2021-08-17 12:30:55
  • 变更时间
  • └ expire
  • Date
  • 2022-08-17 12:30:55
  • 黄金会员过期时间,其它会员为null
  • └ level
  • Number
  • 2
  • 会员等级:0 非会员、1 普通会员、2 黄金会员
  • └ ouid
  • String
  • xxxx
  • 会员 ouid
  • └ total
  • Number
  • 100
  • 总记录数
  • └ extra
  • Number
  • 0
  • 额外信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmypMemberPrivacySyncRequest req = new TmypMemberPrivacySyncRequest();
req.setShop(9L);
req.setSync(0L);
req.setStart(0L);
req.setSize(100L);
TmypMemberPrivacySyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmyp_member_privacy_sync_response>
    <result>
        <msg>ok</msg>
        <success>true</success>
        <model>
            <rows>
                <member_sync_info>
                    <mod_datetime>2021-08-17 12:30:55</mod_datetime>
                    <expire>2022-08-17 12:30:55</expire>
                    <level>2</level>
                    <ouid>xxxx</ouid>
                </member_sync_info>
            </rows>
            <total>100</total>
            <extra>0</extra>
        </model>
    </result>
</tmyp_member_privacy_sync_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

返回
顶部