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

alibaba.alsc.crm.card.active (标准激活卡)

激活卡

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_active_card_open_req ActiveCardOpenReq 必须 请求参数
  • └ brand_id
  • String
  • 可选
  • 2019347389475
  • 品牌ID,,brand_id与out_brand_id不可同时为空
  • └ card_id
  • String
  • 必须
  • 10938748345
  • 电子卡号
  • └ operator_id
  • String
  • 必须
  • 10397347596
  • 操作人ID
  • └ request_id
  • String
  • 必须
  • 2390482390857893254
  • 请求ID,用于幂等处理
  • └ shop_id
  • String
  • 可选
  • 201938947538465
  • 店铺ID,shop_id和out_shop_id不可同时为空
  • └ out_shop_id
  • String
  • 可选
  • 201938947538465
  • 外部门店ID,shop_id和out_shop_id不可同时为空
  • └ out_brand_id
  • String
  • 可选
  • 201938947538465
  • 外部品牌ID,brand_id与out_brand_id不可同时为空

响应参数

名称 类型 示例值 描述
result CommonResult 接口结果
  • └ biz_success
  • Boolean
  • true
  • 成功状态
  • └ result
  • Boolean
  • true
  • 开卡是否成功
  • └ result_code
  • String
  • 结果码
  • └ result_desc
  • String
  • 结果描述
  • └ result_view
  • String
  • 错误结果显示

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmCardActiveRequest req = new AlibabaAlscCrmCardActiveRequest();
AlibabaAlscCrmCardActiveRequest.ActiveCardOpenReq obj1 = new AlibabaAlscCrmCardActiveRequest.ActiveCardOpenReq();
obj1.setBrandId("2019347389475");
obj1.setCardId("10938748345");
obj1.setOperatorId("10397347596");
obj1.setRequestId("2390482390857893254");
obj1.setShopId("201938947538465");
obj1.setOutShopId("201938947538465");
obj1.setOutBrandId("201938947538465");
req.setParamActiveCardOpenReq(obj1);
AlibabaAlscCrmCardActiveResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_crm_card_active_response>
    <result>
        <biz_success>true</biz_success>
        <result>true</result>
        <result_code></result_code>
        <result_desc></result_desc>
        <result_view></result_view>
    </result>
</alibaba_alsc_crm_card_active_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

返回
顶部