文档中心 > API类目 > 天猫汽车

tmall.aliauto.trade.restpayfee.modify (分阶段订单尾款改价)

汽车商家通过此api修改整车分阶段订单的尾款金额

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
command ModifyRestPaymentCommand 必须 入参
  • └ order_id
  • Number
  • 必须
  • 123456
  • 订单id
  • └ target_actual_pay_fee
  • Number
  • 必须
  • 100000
  • 期望改到的实付金额,单位分
  • └ sub_pay_order_id
  • Number
  • 必须
  • 123456
  • 子支付单id

响应参数

名称 类型 示例值 描述
result AliAutoResult {} 出参
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ msg_info
  • String
  • 订单不存在
  • 错误信息
  • └ msg_code
  • String
  • ORDER_NOT_EXIST
  • 错误code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallAliautoTradeRestpayfeeModifyRequest req = new TmallAliautoTradeRestpayfeeModifyRequest();
TmallAliautoTradeRestpayfeeModifyRequest.ModifyRestPaymentCommand obj1 = new TmallAliautoTradeRestpayfeeModifyRequest.ModifyRestPaymentCommand();
obj1.setOrderId(123456L);
obj1.setTargetActualPayFee(100000L);
obj1.setSubPayOrderId(123456L);
req.setCommand(obj1);
TmallAliautoTradeRestpayfeeModifyResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_aliauto_trade_restpayfee_modify_response>
    <result>
        <success>true</success>
        <msg_info>订单不存在</msg_info>
        <msg_code>ORDER_NOT_EXIST</msg_code>
    </result>
</tmall_aliauto_trade_restpayfee_modify_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

返回
顶部