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

alibaba.alsc.crm.point.querypointflow (分页查询积分流水)

分页查询积分流水

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_page_query_point_flow_open_req PageQueryPointFlowOpenReq 可选 入参
  • └ brand_id
  • String
  • 可选
  • 32367
  • 品牌id
  • └ customer_id
  • String
  • 必须
  • 7027365982937563912722
  • 顾客id
  • └ end_time
  • Date
  • 可选
  • 2019-01-01 12:12:12
  • 截止时间
  • └ out_biz_id
  • String
  • 可选
  • 3245676543
  • 关联交易ID,模糊查询
  • └ page_no
  • Number
  • 可选
  • 1
  • 第几页,从1开始计数
  • └ page_size
  • Number
  • 可选
  • 20
  • 每页大小,默认20
  • └ point_flow_type
  • String
  • 可选
  • POINT_INCREASE
  • 积分流水类型,类型参考枚举类
  • └ shop_id
  • String
  • 可选
  • 13245632
  • 门店id
  • └ start_time
  • Date
  • 可选
  • 2019-01-01 12:12:12
  • 开始时间
  • └ out_shop_id
  • String
  • 可选
  • 4536321
  • 外部门店ID,shop_id和out_shop_id不可同时为空
  • └ out_brand_id
  • String
  • 可选
  • 33959
  • 外部品牌id,brandId与out_brand_id不可同时为空
  • └ biz_channel
  • String
  • 可选
  • CS
  • CS是辰森,KRY是客如云

响应参数

名称 类型 示例值 描述
result CommonPageResult 分页返回模型
  • └ biz_success
  • Boolean
  • false
  • 成功状态
  • └ current_page
  • Number
  • 123
  • 当前页
  • └ has_next_page
  • Boolean
  • true
  • 是否有下一页
  • └ page_size
  • Number
  • 123
  • 每页条数
  • result_list
  • PointFlowOpenInfo []
  • 积分流水对象
  • └ biz_type
  • String
  • REWARD_FROM_RECHARGE
  • 业务场景
  • └ biz_type_description
  • String
  • 储值送积分
  • 业务类型描述
  • └ change_point
  • Number
  • 23
  • 变更积分
  • └ flow_id
  • String
  • 3245321
  • 流水id
  • └ operator_name
  • String
  • 小小汪
  • 操作员名
  • └ out_biz_id
  • String
  • 4235656
  • 交易单号
  • └ reason
  • String
  • 积分回退
  • 变更原因
  • └ remain_point
  • Number
  • 22
  • 剩余积分
  • └ shop_name
  • String
  • 小李子火锅
  • 店铺名称
  • └ time
  • Date
  • 2019-01-01 12:12:12
  • 交易时间
  • └ result_code
  • String
  • 200
  • 结果码
  • └ result_desc
  • String
  • 成功
  • 结果描述
  • └ result_view
  • String
  • ""
  • 错误结果显示
  • └ total_page
  • Number
  • 10
  • 总页数
  • └ total_size
  • Number
  • 123
  • 总条数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmPointQuerypointflowRequest req = new AlibabaAlscCrmPointQuerypointflowRequest();
AlibabaAlscCrmPointQuerypointflowRequest.PageQueryPointFlowOpenReq obj1 = new AlibabaAlscCrmPointQuerypointflowRequest.PageQueryPointFlowOpenReq();
obj1.setBrandId("32367");
obj1.setCustomerId("7027365982937563912722");
obj1.setEndTime(StringUtils.parseDateTime("2019-01-01 12:12:12"));
obj1.setOutBizId("3245676543");
obj1.setPageNo(1L);
obj1.setPageSize(20L);
obj1.setPointFlowType("POINT_INCREASE");
obj1.setShopId("13245632");
obj1.setStartTime(StringUtils.parseDateTime("2019-01-01 12:12:12"));
obj1.setOutShopId("4536321");
obj1.setOutBrandId("33959");
obj1.setBizChannel("CS");
req.setParamPageQueryPointFlowOpenReq(obj1);
AlibabaAlscCrmPointQuerypointflowResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_crm_point_querypointflow_response>
    <result>
        <biz_success>false</biz_success>
        <current_page>123</current_page>
        <has_next_page>true</has_next_page>
        <page_size>123</page_size>
        <result_list>
            <point_flow_open_info>
                <biz_type>REWARD_FROM_RECHARGE</biz_type>
                <biz_type_description>储值送积分</biz_type_description>
                <change_point>23</change_point>
                <flow_id>3245321</flow_id>
                <operator_name>小小汪</operator_name>
                <out_biz_id>4235656</out_biz_id>
                <reason>积分回退</reason>
                <remain_point>22</remain_point>
                <shop_name>小李子火锅</shop_name>
                <time>2019-01-01 12:12:12</time>
            </point_flow_open_info>
        </result_list>
        <result_code>200</result_code>
        <result_desc>成功</result_desc>
        <result_view>&quot;&quot;</result_view>
        <total_page>10</total_page>
        <total_size>123</total_size>
    </result>
</alibaba_alsc_crm_point_querypointflow_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

返回
顶部