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

alibaba.alsc.crm.card.qry (查询卡实例)

查询卡实例(优先使用卡实例ID查询,没有则用物理卡号查询)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_query_card_open_req QueryCardOpenReq 可选 请求对象
  • └ account_required
  • Boolean
  • 可选
  • true
  • 查询关联资产账户
  • └ brand_id
  • String
  • 可选
  • 452346356
  • 品牌id
  • └ card_id
  • String
  • 可选
  • 43523452
  • 卡实例id
  • └ out_brand_id
  • String
  • 可选
  • 33959
  • 外部品牌id和品牌id必传1
  • └ out_shop_id
  • String
  • 可选
  • 648934878
  • 外部门店id
  • └ physical_card_id
  • String
  • 可选
  • 45325
  • 物理卡号
  • └ physical_card_required
  • Boolean
  • 可选
  • true
  • 查询关联物理卡
  • └ shop_id
  • String
  • 可选
  • 44554
  • saas门店id

响应参数

名称 类型 示例值 描述
result CommonResult 接口结果
  • └ biz_success
  • Boolean
  • 成功状态
  • result
  • CardOpenInfo
  • 结果
  • accounts
  • AccountOpenInfo []
  • 资产账户列表
  • └ account_id
  • String
  • 4352345
  • 账户ID
  • └ account_type
  • String
  • 账户类型(暂时不用)
  • └ balance
  • Number
  • 3242
  • 储值余额
  • └ create_by
  • String
  • XXX
  • 创建人
  • └ currency
  • String
  • RMB
  • 币种
  • └ deleted
  • Boolean
  • false
  • 逻辑删除标志
  • └ gift
  • Number
  • 4323
  • 增储
  • └ gmt_create
  • Date
  • 2019-01-01 11:11:11
  • 创建时间
  • └ gmt_modified
  • Date
  • 2019-01-01 11:11:11
  • 修改时间
  • └ pre
  • Number
  • 32
  • 预储
  • └ real
  • Number
  • 20
  • 实储
  • └ status
  • String
  • 账户状态(暂时不用)
  • └ total_gift
  • Number
  • 22
  • 累计增储
  • └ total_pre
  • Number
  • 22
  • 累计预储
  • └ total_real
  • Number
  • 444
  • 累计实储
  • └ update_by
  • String
  • XX
  • 修改人
  • └ opt_plan_id
  • String
  • 232
  • 运营计划ID
  • └ active_operator_id
  • String
  • 3452345
  • 激活操作人ID
  • └ active_operator_name
  • String
  • XXX
  • 激活操作人名
  • └ active_shop_id
  • String
  • 43534
  • 激活门店ID
  • └ active_time
  • Date
  • 2019-01-01 11:11:11
  • 激活时间
  • └ buy
  • Boolean
  • true
  • 是否主动购买(是则赠送开卡礼包)
  • └ card_id
  • String
  • 4534523
  • 卡实例ID
  • └ card_template_id
  • String
  • 2342512
  • 卡模板ID
  • └ card_type
  • String
  • MEMBER
  • 卡类型
  • └ create_by
  • String
  • XXX
  • 创建人
  • └ customer_id
  • String
  • 34235
  • 顾客id
  • └ deleted
  • Boolean
  • false
  • 逻辑删除
  • └ expire_end
  • Date
  • 2019-01-01 11:11:11
  • 有效期结束时间
  • └ expire_start
  • Date
  • 2019-01-01 11:11:11
  • 有效期起始时间
  • └ gmt_create
  • Date
  • 2019-01-01 11:11:11
  • 创建时间
  • └ gmt_modified
  • Date
  • 2019-01-01 11:11:11
  • 修改时间
  • └ open_operator_id
  • String
  • 252345
  • 开卡操作人ID
  • └ open_operator_name
  • String
  • 小王
  • 开卡操作人名
  • └ open_shop_id
  • String
  • 45622
  • 开卡门店ID
  • └ open_shop_name
  • String
  • XXX小店
  • 开卡门店名称
  • └ open_time
  • Date
  • 2019-01-01 11:11:11
  • 开卡时间
  • └ operator_id
  • String
  • 564321
  • 操作员id
  • └ opt_plan_id
  • String
  • 535421
  • 运营计划ID
  • physical_cards
  • PhysicalCardOpenInfo []
  • 关联的物理卡列表
  • └ bind_operator_id
  • String
  • 45321
  • 绑定操作人ID
  • └ bind_shop_id
  • String
  • 346325
  • 绑定门店ID
  • └ bind_time
  • Date
  • 2019-01-01 11:11:11
  • 绑定时间
  • └ card_id
  • String
  • 35246315
  • 卡实例ID
  • └ card_template_id
  • String
  • 35242
  • 卡模板ID
  • └ card_type
  • String
  • MEMBER
  • 卡类型
  • └ create_by
  • String
  • XXX
  • 创建人
  • └ deleted
  • Boolean
  • false
  • 逻辑删除
  • └ gmt_create
  • Date
  • 2019-01-01 11:11:11
  • 创建时间
  • └ gmt_modified
  • Date
  • 2019-01-01 11:11:11
  • 修改时间
  • └ operator_id
  • String
  • 456352
  • 操作员id
  • └ physical_card_id
  • String
  • 345234523
  • 物理卡号
  • └ plan_id
  • String
  • 345234
  • 会员计划id
  • └ publish_id
  • String
  • 43352345
  • 发行记录ID
  • └ status
  • String
  • WAIT_MAKE
  • WAIT_MAKE("WAIT_MAKE", "未制卡"), /** * 未出售 */ WAIT_SELL("WAIT_SELL", "未出售"), /** * 已出售 */ SOLD("SOLD", "已出售"), /** * 已作废 */ INVALID("INVALID", "已作废");
  • └ update_by
  • String
  • XXX
  • 修改人
  • └ plan_id
  • String
  • 3542451
  • 会员计划ID
  • └ status
  • String
  • SOLD
  • SOLD("SOLD", "已出售"), ACTIVED("ACTIVED", "已激活"), STOP("STOP", "已停用"), INVALID("INVALID", "已作废"), EXPIRED("EXPIRED", "已过期"), REFUND("REFUND", "已退卡")
  • └ update_by
  • String
  • XXX
  • 修改人
  • └ result_code
  • String
  • 200
  • 结果码
  • └ result_desc
  • String
  • 成功
  • 结果描述
  • └ result_view
  • String
  • ""
  • 错误结果显示

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmCardQryRequest req = new AlibabaAlscCrmCardQryRequest();
AlibabaAlscCrmCardQryRequest.QueryCardOpenReq obj1 = new AlibabaAlscCrmCardQryRequest.QueryCardOpenReq();
obj1.setAccountRequired(true);
obj1.setBrandId("452346356");
obj1.setCardId("43523452");
obj1.setOutBrandId("33959");
obj1.setOutShopId("648934878");
obj1.setPhysicalCardId("45325");
obj1.setPhysicalCardRequired(true);
obj1.setShopId("44554");
req.setParamQueryCardOpenReq(obj1);
AlibabaAlscCrmCardQryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_crm_card_qry_response>
    <result>
        <biz_success></biz_success>
        <result>
            <accounts>
                <account_open_info>
                    <account_id>4352345</account_id>
                    <account_type></account_type>
                    <balance>3242</balance>
                    <create_by>XXX</create_by>
                    <currency>RMB</currency>
                    <deleted>false</deleted>
                    <gift>4323</gift>
                    <gmt_create>2019-01-01 11:11:11</gmt_create>
                    <gmt_modified>2019-01-01 11:11:11</gmt_modified>
                    <pre>32</pre>
                    <real>20</real>
                    <status></status>
                    <total_gift>22</total_gift>
                    <total_pre>22</total_pre>
                    <total_real>444</total_real>
                    <update_by>XX</update_by>
                    <opt_plan_id>232</opt_plan_id>
                </account_open_info>
            </accounts>
            <active_operator_id>3452345</active_operator_id>
            <active_operator_name>XXX</active_operator_name>
            <active_shop_id>43534</active_shop_id>
            <active_time>2019-01-01 11:11:11</active_time>
            <buy>true</buy>
            <card_id>4534523</card_id>
            <card_template_id>2342512</card_template_id>
            <card_type>MEMBER</card_type>
            <create_by>XXX</create_by>
            <customer_id>34235</customer_id>
            <deleted>false</deleted>
            <expire_end>2019-01-01 11:11:11</expire_end>
            <expire_start>2019-01-01 11:11:11</expire_start>
            <gmt_create>2019-01-01 11:11:11</gmt_create>
            <gmt_modified>2019-01-01 11:11:11</gmt_modified>
            <open_operator_id>252345</open_operator_id>
            <open_operator_name>小王</open_operator_name>
            <open_shop_id>45622</open_shop_id>
            <open_shop_name>XXX小店</open_shop_name>
            <open_time>2019-01-01 11:11:11</open_time>
            <operator_id>564321</operator_id>
            <opt_plan_id>535421</opt_plan_id>
            <physical_cards>
                <physical_card_open_info>
                    <bind_operator_id>45321</bind_operator_id>
                    <bind_shop_id>346325</bind_shop_id>
                    <bind_time>2019-01-01 11:11:11</bind_time>
                    <card_id>35246315</card_id>
                    <card_template_id>35242</card_template_id>
                    <card_type>MEMBER</card_type>
                    <create_by>XXX</create_by>
                    <deleted>false</deleted>
                    <gmt_create>2019-01-01 11:11:11</gmt_create>
                    <gmt_modified>2019-01-01 11:11:11</gmt_modified>
                    <operator_id>456352</operator_id>
                    <physical_card_id>345234523</physical_card_id>
                    <plan_id>345234</plan_id>
                    <publish_id>43352345</publish_id>
                    <status>WAIT_MAKE</status>
                    <update_by>XXX</update_by>
                </physical_card_open_info>
            </physical_cards>
            <plan_id>3542451</plan_id>
            <status>SOLD</status>
            <update_by>XXX</update_by>
        </result>
        <result_code>200</result_code>
        <result_desc>成功</result_desc>
        <result_view>&quot;&quot;</result_view>
    </result>
</alibaba_alsc_crm_card_qry_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

返回
顶部