cainiao.refund.refundactions.get (判断该订单能执行的逆向操作集合列表)

判断该订单能执行的逆向操作集合列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
order_id String 必须 1357924680 子订单ID

响应参数

名称 类型 示例值 描述
result BizResult {} 返回结果对象
  • └ status_code
  • String
  • ERROR
  • 调用错误时,错误code
  • data
  • OrderRefundActionResponse
  • { "order_id": "1357924680", "support_refund_actions": { "supportrefundactions": [ { "default_label": "仅退款", "desc": "仅退款", "key": "refundFeeOnly" }, { "default_label": "退货退款", "desc": "退货退款", "key": "refundFeeWithGoods" }, { "default_label": "换货", "desc": "换货", "key": "swithGoods" } ] }
  • 该订单支持的退款退货操作的集合
  • support_refund_actions
  • Supportrefundactions []
  • []
  • 该订单支持的退款退货操作的集合
  • └ desc
  • String
  • 换货
  • 退款退货操作的描述
  • └ default_label
  • String
  • 换货
  • 退款退货操作按钮的建议描述,仅仅是一个建议,ISV可以自己定义
  • └ key
  • String
  • refundFeeOnly
  • 退款退货操作的Code,由系统定义,目前支持的方式有:refundFeeOnly(仅退款),refundFeeWithGoods(退货退款),swithGoods(换货)
  • └ in_process
  • String
  • true
  • 一个纠纷单可能已经在处理流程中,比如退款退货操作,买家已经提交申请,卖家正在审核中,则该字段是true
  • └ operation_user_id
  • String
  • 12312312
  • 操作用户ID
  • └ order_id
  • String
  • 1234567890
  • 子订单ID
  • └ success
  • Boolean
  • false
  • true表示成功,false表示失败
  • └ status_message
  • String
  • 参数不能为空
  • 调用错误时,错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoRefundRefundactionsGetRequest req = new CainiaoRefundRefundactionsGetRequest();
req.setOrderId("1357924680");
CainiaoRefundRefundactionsGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<cainiao_refund_refundactions_get_response>
    <result>
        <status_code>ERROR</status_code>
        <data>
            <support_refund_actions>
                <supportrefundactions>
                    <desc>换货</desc>
                    <default_label>换货</default_label>
                    <key>refundFeeOnly</key>
                    <in_process>true</in_process>
                </supportrefundactions>
            </support_refund_actions>
            <operation_user_id>12312312</operation_user_id>
            <order_id>1234567890</order_id>
        </data>
        <success>false</success>
        <status_message>参数不能为空</status_message>
    </result>
</cainiao_refund_refundactions_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

返回
顶部