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

alibaba.alsc.crm.recharge.accountflows.get (分页查询储值流水)

增加分页查询储值流水接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_page_query_account_flows_open_req PageQueryAccountFlowsOpenReq 可选 入参
  • └ brand_id
  • String
  • 可选
  • 3724809629
  • 品牌ID(不能和outbrandid同时为空)
  • └ card_id
  • String
  • 可选
  • 111950000052400125
  • 卡id
  • └ customer_id
  • String
  • 可选
  • 156583519300010001
  • 会员id
  • └ end_time
  • Date
  • 可选
  • 2019-08-01 13:12:31
  • 结束时间
  • └ flow_types
  • String
  • 可选
  • UNCHARGE
  • 流水类型
  • └ out_order_id
  • String
  • 可选
  • 122334
  • 外部订单ID
  • └ out_brand_id
  • String
  • 可选
  • null
  • 外部品牌ID(不能和brandid同时为空)
  • └ out_shop_id
  • String
  • 可选
  • null
  • 外部门店ID(不能和shopid同时为空)
  • └ page_no
  • Number
  • 必须
  • 1
  • 第几页,从1开始计数
  • └ page_size
  • Number
  • 可选
  • 20
  • 每页大小
  • └ shop_id
  • String
  • 可选
  • 3724809631
  • 门店ID(不能和outshopid同时为空)
  • └ start_time
  • Date
  • 可选
  • 2019-07-30 14:24:45
  • 开始时间
  • └ biz_channel
  • String
  • 可选
  • CS
  • CS是辰森,KRY是客如云

响应参数

名称 类型 示例值 描述
result CommonPageResult 分页返回模型
  • └ biz_success
  • Boolean
  • true
  • 成功状态
  • └ current_page
  • Number
  • 2
  • 当前页码(原样传出)
  • └ page_size
  • Number
  • 20
  • 当前每页显示数量(原样传出)
  • result_list
  • PageQueryAccountFlowsOpenInfo []
  • null
  • 业务参数
  • └ account_id
  • String
  • 7627652374
  • 储值账户id
  • └ create_by
  • String
  • 小明
  • 创建者
  • └ current_value
  • Number
  • 300
  • 交易后剩余总金额
  • └ deleted
  • Boolean
  • false
  • 是否删除
  • └ flow_id
  • String
  • 874751237654718534
  • 储值账户流水id
  • └ flow_type
  • String
  • UNCHARGE
  • 储值相关的交易类型
  • └ gmt_create
  • Date
  • 2019-07-30 14:24:45
  • 创建时间
  • └ gmt_modified
  • Date
  • 2019-07-30 14:24:45
  • 更新时间
  • └ operator
  • String
  • 327846287642
  • 操作人ID
  • └ operator_name
  • String
  • 小明
  • 操作人
  • └ order_src
  • Number
  • 2
  • 外部订单来源
  • └ order_time
  • Date
  • 2019-07-30 14:24:45
  • 交易时间
  • └ order_value
  • Number
  • -78
  • 交易总金额,增加为正数,减少为负数
  • └ outer_order_id
  • String
  • 7382648723
  • 外部交易单号id
  • └ remark
  • String
  • 是个大概
  • 理由
  • └ shop_id
  • String
  • 78365258
  • 交易门店ID
  • └ shop_name
  • String
  • 小明面包
  • 交易门店名称
  • └ update_by
  • String
  • 小明
  • 更新者
  • └ gift_value
  • Number
  • 324
  • 赠送金额
  • └ outer_pay_id
  • String
  • 234
  • 外部支付订单id
  • └ ext_info
  • String
  • {"payModeId":"WX", "payModeName":"微信"}
  • 支付方式需要按照标准格式传入
  • └ result_code
  • String
  • 200
  • 结果码
  • └ result_desc
  • String
  • 成功
  • 结果描述
  • └ result_view
  • String
  • ""
  • 错误结果显示
  • └ total_size
  • Number
  • 123
  • 总共记录数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmRechargeAccountflowsGetRequest req = new AlibabaAlscCrmRechargeAccountflowsGetRequest();
AlibabaAlscCrmRechargeAccountflowsGetRequest.PageQueryAccountFlowsOpenReq obj1 = new AlibabaAlscCrmRechargeAccountflowsGetRequest.PageQueryAccountFlowsOpenReq();
obj1.setBrandId("3724809629");
obj1.setCardId("111950000052400125");
obj1.setCustomerId("156583519300010001");
obj1.setEndTime(StringUtils.parseDateTime("2019-08-01 13:12:31"));
obj1.setFlowTypes("UNCHARGE");
obj1.setOutOrderId("122334");
obj1.setOutBrandId("null");
obj1.setOutShopId("null");
obj1.setPageNo(1L);
obj1.setPageSize(20L);
obj1.setShopId("3724809631");
obj1.setStartTime(StringUtils.parseDateTime("2019-07-30 14:24:45"));
obj1.setBizChannel("CS");
req.setParamPageQueryAccountFlowsOpenReq(obj1);
AlibabaAlscCrmRechargeAccountflowsGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_crm_recharge_accountflows_get_response>
    <result>
        <biz_success>true</biz_success>
        <current_page>2</current_page>
        <page_size>20</page_size>
        <result_list>
            <page_query_account_flows_open_info>
                <account_id>7627652374</account_id>
                <create_by>小明</create_by>
                <current_value>300</current_value>
                <deleted>false</deleted>
                <flow_id>874751237654718534</flow_id>
                <flow_type>UNCHARGE</flow_type>
                <gmt_create>2019-07-30 14:24:45</gmt_create>
                <gmt_modified>2019-07-30 14:24:45</gmt_modified>
                <operator>327846287642</operator>
                <operator_name>小明</operator_name>
                <order_src>2</order_src>
                <order_time>2019-07-30 14:24:45</order_time>
                <order_value>-78</order_value>
                <outer_order_id>7382648723</outer_order_id>
                <remark>是个大概</remark>
                <shop_id>78365258</shop_id>
                <shop_name>小明面包</shop_name>
                <update_by>小明</update_by>
                <gift_value>324</gift_value>
                <outer_pay_id>234</outer_pay_id>
                <ext_info>{&quot;payModeId&quot;:&quot;WX&quot;, &quot;payModeName&quot;:&quot;微信&quot;}</ext_info>
            </page_query_account_flows_open_info>
        </result_list>
        <result_code>200</result_code>
        <result_desc>成功</result_desc>
        <result_view>&quot;&quot;</result_view>
        <total_size>123</total_size>
    </result>
</alibaba_alsc_crm_recharge_accountflows_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

返回
顶部