taobao.tae.accounts.get (tae查询费用科目信息)

tae查询费用科目信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
fields String [] 必须 123
  • 最大列表长度:20
  • 需要返回的字段
    aids String [] 可选 10002011,10003011,10005011
  • 最大列表长度:20
  • 需要获取的科目ID

    响应参数

    名称 类型 示例值 描述
    total_results Number 1 返回记录行数
    accounts TopAccountDto [] 返回的科目信息
    • └ gmt_create
    • Date
    • 2015-03-04 18:39:01
    • 创建时间
    • └ account_id
    • Number
    • 123
    • 费用科目编号
    • └ status
    • Number
    • 123
    • 状态:0-不可用 1-可用
    • └ account_code
    • String
    • ACCT_TMALL_COMM
    • 费用科目编码
    • └ gmt_modified
    • Date
    • 2015-03-04 18:39:01
    • 修改时间
    • └ account_type
    • Number
    • 123
    • 费用科目类型:1-虚拟账户 2-交易 3-交易佣金 4-服务费 5-天猫积分 6-其他
    • └ account_name
    • String
    • demo
    • 费用科目名称
    • └ related_order
    • Number
    • 123
    • 是否订单相关:0-订单无关 1-订单相关

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    TaeAccountsGetRequest req = new TaeAccountsGetRequest();
    req.setFields("123");
    req.setAids("10002011,10003011,10005011");
    TaeAccountsGetResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <tae_accounts_get_response>
        <total_results>1</total_results>
        <accounts>
            <top_account_dto>
                <gmt_create>2015-03-04 18:39:01</gmt_create>
                <account_id>123</account_id>
                <status>123</status>
                <account_code>ACCT_TMALL_COMM</account_code>
                <gmt_modified>2015-03-04 18:39:01</gmt_modified>
                <account_type>123</account_type>
                <account_name>demo</account_name>
                <related_order>123</related_order>
            </top_account_dto>
        </accounts>
    </tae_accounts_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

    返回
    顶部