文档中心 > API类目 > 淘宝退款API

taobao.refund.detail.get (退款详情页渲染)

退款详情页渲染

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
refund_id Number 必须 112233 退款编号
fields String 必须 allowedOperations,refund_version 需要返回的字段。目前支持有:allowedOperations,refund_version

响应参数

名称 类型 示例值 描述
detail RefundDetail 退款详情
  • └ refund_version
  • Number
  • 1409231007325
  • 退款版本号
  • allowed_operations
  • Operation []
  • 退款当前可以执行的操作
  • └ operation_code
  • String
  • SELLER_REFUSE
  • 操作编码
  • └ tips
  • String
  • 操作提示文案
  • not_allowed_operations
  • Operation []
  • 退款当前不可以执行的操作
  • └ operation_code
  • String
  • SELLER_REFUSE
  • 操作编码
  • └ tips
  • String
  • 定制、虚拟等特定类目才可【拒绝申请】哦~
  • 操作提示文案

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RefundDetailGetRequest req = new RefundDetailGetRequest();
req.setRefundId(112233L);
req.setFields("allowedOperations,refund_version");
RefundDetailGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<refund_detail_get_response>
    <detail>
        <refund_version>1409231007325</refund_version>
        <allowed_operations>
            <operation>
                <operation_code>SELLER_REFUSE</operation_code>
                <tips>无</tips>
            </operation>
        </allowed_operations>
        <not_allowed_operations>
            <operation>
                <operation_code>SELLER_REFUSE</operation_code>
                <tips>定制、虚拟等特定类目才可【拒绝申请】哦~</tips>
            </operation>
        </not_allowed_operations>
    </detail>
</refund_detail_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

返回
顶部