文档中心 > API类目 > 五道口API

alibaba.tcls.aelophy.refund.csapply.new (代客退)

代客退

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
refund_cs_apply_d_t_o RefundCsApplyNewDTO 必须 逆向申请入参
  • └ reason_id
  • Number
  • 必须
  • 123
  • 退款原因id
  • └ out_order_id
  • String
  • 必须
  • 123
  • 渠道订单ID
  • └ store_id
  • String
  • 必须
  • 123
  • 商家经营店ID
  • └ request_id
  • String
  • 必须
  • 123
  • 请求唯一键
  • sub_refund_orders
  • CsApplySubOrderDTO []
  • 必须
  • 123
  • 申请退款的子订单ID列表
  • └ refund_fee
  • BigDecimal
  • 可选
  • 100
  • 申请子单退款金额
  • └ refund_amount
  • BigDecimal
  • 可选
  • 1
  • 申请子单退货数量
  • └ out_sub_order_id
  • String
  • 可选
  • 50011223344
  • 渠道子订单号,淘鲜达渠道为TP子单号
  • └ memo
  • String
  • 可选
  • 备注
  • 备注说明
  • └ order_from
  • Number
  • 可选
  • 3
  • 渠道来源
  • └ refund_fee
  • Number
  • 可选
  • 100
  • 申请退款金额
  • └ refund_delivery_fee
  • Number
  • 可选
  • 100
  • 申请退运费
  • └ refund_package_fee
  • Number
  • 可选
  • 100
  • 申请退包装费
  • └ refund_reason
  • String
  • 可选
  • 原因
  • 申请退款原因

响应参数

名称 类型 示例值 描述
api_result ApiResult 根据站点名称查询产品
  • └ err_msg
  • String
  • 系统错误
  • 错误信息
  • └ err_code
  • String
  • system_error
  • 错误编码
  • └ success
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTclsAelophyRefundCsapplyNewRequest req = new AlibabaTclsAelophyRefundCsapplyNewRequest();
AlibabaTclsAelophyRefundCsapplyNewRequest.RefundCsApplyNewDTO obj1 = new AlibabaTclsAelophyRefundCsapplyNewRequest.RefundCsApplyNewDTO();
obj1.setReasonId(123L);
obj1.setOutOrderId("123");
obj1.setStoreId("123");
obj1.setRequestId("123");
List<AlibabaTclsAelophyRefundCsapplyNewRequest.CsApplySubOrderDTO> list3 = new ArrayList<AlibabaTclsAelophyRefundCsapplyNewRequest.CsApplySubOrderDTO>();
AlibabaTclsAelophyRefundCsapplyNewRequest.CsApplySubOrderDTO obj4 = new AlibabaTclsAelophyRefundCsapplyNewRequest.CsApplySubOrderDTO();
list3.add(obj4);
obj4.setRefundFee("100");
obj4.setRefundAmount("1");
obj4.setOutSubOrderId("50011223344");
obj1.setSubRefundOrders(list3);
obj1.setMemo("备注");
obj1.setOrderFrom(3L);
obj1.setRefundFee(100L);
obj1.setRefundDeliveryFee(100L);
obj1.setRefundPackageFee(100L);
obj1.setRefundReason("原因");
req.setRefundCsApplyDTO(obj1);
AlibabaTclsAelophyRefundCsapplyNewResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_tcls_aelophy_refund_csapply_new_response>
    <api_result>
        <err_msg>系统错误</err_msg>
        <err_code>system_error</err_code>
        <success>true</success>
    </api_result>
</alibaba_tcls_aelophy_refund_csapply_new_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

返回
顶部