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

alibaba.alsc.crm.recharge.account.get (查询储值账户信息)

查询储值账户信息接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_query_recharge_account_open_req QueryRechargeAccountOpenReq 可选 入参
  • └ account_id
  • String
  • 可选
  • null
  • 账户Id,如果有,则查询单个账户
  • └ brand_id
  • String
  • 可选
  • 3724809629
  • 品牌ID(不能和outbrandid同时为空)
  • └ card_id
  • String
  • 可选
  • 111950000052400125
  • 卡Id,POS下查询会员卡/礼品卡在门店下储值账户
  • └ customer_id
  • String
  • 可选
  • null
  • 会员Id,查询会员下所有储值账户
  • └ shop_id
  • String
  • 可选
  • 3724809631
  • 门店ID(不能和outshopid同时为空))
  • └ out_shop_id
  • String
  • 可选
  • null
  • 外部门店ID(不能和shopid同时为空)
  • └ out_brand_id
  • String
  • 可选
  • null
  • 外部品牌ID(不能和brandid同时为空)

响应参数

名称 类型 示例值 描述
result CommonResult 接口结果
  • └ biz_success
  • Boolean
  • true
  • 成功状态
  • result
  • RechargeAccountOpenInfo
  • null
  • 业务参数
  • └ account_id
  • String
  • 782634751274
  • 账户id
  • └ card_id
  • String
  • 786274581734
  • crm卡实例id
  • └ customer_id
  • String
  • 76875163541867354
  • 账户所属顾客id,如果是会员卡,不为空
  • └ deleted
  • Boolean
  • true
  • 是否删除
  • └ gift_value
  • Number
  • 2000
  • 账户赠储余额
  • └ gift_value_total
  • Number
  • 3000
  • 累计账户赠储余额
  • └ gmt_create
  • Date
  • 2019-08-01 15:31:21
  • 创建时间
  • └ gmt_modified
  • Date
  • 2019-08-01 15:31:21
  • 更新时间
  • └ opt_plan_id
  • String
  • 2
  • 关联的运营方案id
  • └ pre_value
  • Number
  • 200
  • 账户预储余额
  • └ pre_value_total
  • Number
  • 1000
  • 累计账户预储余额
  • └ real_value
  • Number
  • 3000
  • 账户实储余额
  • └ real_value_total
  • Number
  • 5000
  • 累计账户实储余额
  • └ usable_value
  • Number
  • 4000
  • 可用余额
  • └ result_code
  • String
  • 0
  • 结果码
  • └ result_desc
  • String
  • 成功
  • 结果描述
  • └ result_view
  • String
  • ""
  • 错误结果显示

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmRechargeAccountGetRequest req = new AlibabaAlscCrmRechargeAccountGetRequest();
AlibabaAlscCrmRechargeAccountGetRequest.QueryRechargeAccountOpenReq obj1 = new AlibabaAlscCrmRechargeAccountGetRequest.QueryRechargeAccountOpenReq();
obj1.setAccountId("null");
obj1.setBrandId("3724809629");
obj1.setCardId("111950000052400125");
obj1.setCustomerId("null");
obj1.setShopId("3724809631");
obj1.setOutShopId("null");
obj1.setOutBrandId("null");
req.setParamQueryRechargeAccountOpenReq(obj1);
AlibabaAlscCrmRechargeAccountGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_crm_recharge_account_get_response>
    <result>
        <biz_success>true</biz_success>
        <result>
            <account_id>782634751274</account_id>
            <card_id>786274581734</card_id>
            <customer_id>76875163541867354</customer_id>
            <deleted>true</deleted>
            <gift_value>2000</gift_value>
            <gift_value_total>3000</gift_value_total>
            <gmt_create>2019-08-01 15:31:21</gmt_create>
            <gmt_modified>2019-08-01 15:31:21</gmt_modified>
            <opt_plan_id>2</opt_plan_id>
            <pre_value>200</pre_value>
            <pre_value_total>1000</pre_value_total>
            <real_value>3000</real_value>
            <real_value_total>5000</real_value_total>
            <usable_value>4000</usable_value>
        </result>
        <result_code>0</result_code>
        <result_desc>成功</result_desc>
        <result_view>&quot;&quot;</result_view>
    </result>
</alibaba_alsc_crm_recharge_account_get_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

返回
顶部