文档中心 > API类目 > 海南离岛免税api

alibaba.dutyfree.store.coupon.syncapply (同步领取门店卡券)

同步领取门店卡券

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
sync_apply_store_coupon_request SyncApplyStoreCouponRequest 必须 同步领券入参
  • └ seller_id
  • Number
  • 必须
  • 2210100719227
  • 店铺 id, 测试环境:2210100719227, 线上:2210289061207
  • └ code
  • String
  • 必须
  • 123
  • 可核销的券码
  • └ phone
  • String
  • 必须
  • 155xxxxxxxx
  • 用户手机号
  • └ outer_member_id
  • String
  • 必须
  • cid
  • 会员 id
  • └ outer_activity_id
  • String
  • 必须
  • 123456
  • 活动 id
  • └ ext_info
  • String
  • 可选
  • 扩展信息
  • 扩展信息

响应参数

名称 类型 示例值 描述
response_code String Common_0000 响应码, Common_0000 表示成功
data SyncApplyStoreCouponResult 同步领券结果
  • └ success
  • Boolean
  • true
  • 领券是否成功
message String invalid param 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDutyfreeStoreCouponSyncapplyRequest req = new AlibabaDutyfreeStoreCouponSyncapplyRequest();
AlibabaDutyfreeStoreCouponSyncapplyRequest.SyncApplyStoreCouponRequest obj1 = new AlibabaDutyfreeStoreCouponSyncapplyRequest.SyncApplyStoreCouponRequest();
obj1.setSellerId(2210100719227L);
obj1.setCode("123");
obj1.setPhone("155xxxxxxxx");
obj1.setOuterMemberId("cid");
obj1.setOuterActivityId("123456");
obj1.setExtInfo("扩展信息");
req.setSyncApplyStoreCouponRequest(obj1);
AlibabaDutyfreeStoreCouponSyncapplyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_dutyfree_store_coupon_syncapply_response>
    <response_code>Common_0000</response_code>
    <data>
        <success>true</success>
    </data>
    <message>invalid param</message>
</alibaba_dutyfree_store_coupon_syncapply_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

返回
顶部