注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 店小蜜API

taobao.timi.alphax.financeservice.getallmsgpage (分页获取店小蜜消息接口)

分页获取店小蜜消息接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
scope String 可选 cntaobao
  • 默认值:cntaobao
  • 域信息
    page_size Number 可选 10
  • 默认值:10
  • 每页条数
    page_index Number 可选 1
  • 默认值:1
  • 页码
    message_type String 可选 orderNotice 消息类型
    is_read Number 可选 0 是否已读

    响应参数

    名称 类型 示例值 描述
    result Result result
    • └ message
    • String
    • message
    • data
    • Data
    • 1234
    • data
    • notification_inbox_list
    • Notificationinboxlist []
    • notificationInboxList
    • └ id
    • Number
    • 消息id
    • └ seller_id
    • Number
    • 店小蜜商家id
    • └ user_id
    • Number
    • 用户id
    • └ title
    • String
    • 消息标题
    • └ content
    • String
    • 消息内容
    • └ message_type
    • String
    • 消息类型
    • └ is_read
    • Number
    • 是否已读
    • └ batch_id
    • Number
    • 批次号id
    • └ source_type
    • String
    • 来源类型
    • └ gmt_create
    • Date
    • 创建时间
    • └ gmt_modified
    • Date
    • 修改时间
    • └ is_top
    • Number
    • 是否置顶
    • └ total_items
    • Number
    • 总数
    • └ current_page
    • Number
    • 当前页数
    • └ code
    • String
    • code
    • └ success
    • Boolean
    • false
    • success

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    TimiAlphaxFinanceserviceGetallmsgpageRequest req = new TimiAlphaxFinanceserviceGetallmsgpageRequest();
    req.setScope("cntaobao");
    req.setPageSize(10L);
    req.setPageIndex(1L);
    req.setMessageType("orderNotice");
    req.setIsRead(0L);
    TimiAlphaxFinanceserviceGetallmsgpageResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <timi_alphax_financeservice_getallmsgpage_response>
        <result>
            <message></message>
            <data>
                <notification_inbox_list>
                    <notificationinboxlist>
                        <id></id>
                        <seller_id></seller_id>
                        <user_id></user_id>
                        <title></title>
                        <content></content>
                        <message_type></message_type>
                        <is_read></is_read>
                        <batch_id></batch_id>
                        <source_type></source_type>
                        <gmt_create></gmt_create>
                        <gmt_modified></gmt_modified>
                        <is_top></is_top>
                    </notificationinboxlist>
                </notification_inbox_list>
                <total_items></total_items>
                <current_page></current_page>
            </data>
            <code></code>
            <success>false</success>
        </result>
    </timi_alphax_financeservice_getallmsgpage_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

    返回
    顶部