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

alibaba.alsc.crm.card.batch.sell (批量开卡(售卡))

批量开卡(售卡)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_batch_open_card_open_req BatchOpenCardOpenReq 可选 请求对象
  • └ physical_card_ids
  • String []
  • 必须
  • 111,222,333
  • 实体卡列表
  • └ out_brand_id
  • String
  • 可选
  • 33959
  • 外部品牌id,brandId与out_brand_id不可同时为空
  • └ request_id
  • String
  • 必须
  • 566754323224
  • 请求uuid,用来做幂等
  • └ brand_id
  • String
  • 可选
  • 3396912
  • 品牌id
  • └ out_shop_id
  • String
  • 可选
  • 35663464
  • 外部门店ID,shop_id和out_shop_id不可同时为空
  • └ shop_id
  • String
  • 可选
  • 4564334
  • 门店id
  • └ operator_id
  • String
  • 必须
  • 2312332
  • 操作员id

响应参数

名称 类型 示例值 描述
result CommonResult 接口结果
  • result
  • BatchOpenCardOpenInfo
  • 处理结果
  • └ result_map
  • String
  • 结果 < KEY:Id VALUE:描述(SUCCESS-通过) >
  • └ all_success
  • String
  • true
  • 是否全部开通成功
  • └ result_code
  • String
  • 200
  • 结果码
  • └ result_view
  • String
  • ""
  • 错误结果显示
  • └ biz_success
  • Boolean
  • true
  • 成功状态
  • └ result_desc
  • String
  • 成功
  • 结果描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmCardBatchSellRequest req = new AlibabaAlscCrmCardBatchSellRequest();
AlibabaAlscCrmCardBatchSellRequest.BatchOpenCardOpenReq obj1 = new AlibabaAlscCrmCardBatchSellRequest.BatchOpenCardOpenReq();
obj1.setPhysicalCardIds("111,222,333");
obj1.setOutBrandId("33959");
obj1.setRequestId("566754323224");
obj1.setBrandId("3396912");
obj1.setOutShopId("35663464");
obj1.setShopId("4564334");
obj1.setOperatorId("2312332");
req.setParamBatchOpenCardOpenReq(obj1);
AlibabaAlscCrmCardBatchSellResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_crm_card_batch_sell_response>
    <result>
        <result>
            <result_map></result_map>
            <all_success>true</all_success>
        </result>
        <result_code>200</result_code>
        <result_view>&quot;&quot;</result_view>
        <biz_success>true</biz_success>
        <result_desc>成功</result_desc>
    </result>
</alibaba_alsc_crm_card_batch_sell_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

返回
顶部