文档中心 > 国内机票

大客户代采支付API

更新时间:2021/04/14 访问次数:1099

API信息

 

API基本信息

API名称:alitrip.flight.order.another.pay( 飞猪机票代付订单支付 )
API用户授权类型:需要(根据匹配规则设置,对应付款方授权)
前台类目:交易API
简要描述:满足大代理商采购需求,该接口提供所有代付订单使用指定的代付账号完成支付

 

API应用级输入参数

名称 类型 是否必须 描述 示例值
order_id Long 必须 订单ID

1084659040342

 

返回结果

名称 类型 是否必须 描述 示例值
trade_no String 支付宝交易号

1558663021174514213

order_id Number 订单ID

1084659040342

 

请求示例(JAVA)

1
<br>import com.taobao.api.ApiException;<br>import com.taobao.api.DefaultTaobaoClient;<br>import com.taobao.api.TaobaoClient;<br>import com.taobao.api.request.AlitripFlightOrderAnotherPayRequest;<br>import com.taobao.api.response.AlitripFlightOrderAnotherPayResponse;<br><br>public class BigBuyer {<br>    public static void main(String[] args) throws ApiException {<br><br>        TaobaoClient client = new DefaultTaobaoClient( url, appkey, appSecret);<br><br>        AlitripFlightOrderAnotherPayRequest request = new AlitripFlightOrderAnotherPayRequest();<br><br>        request.setOrderId(1084659040342L);<br><br>        AlitripFlightOrderAnotherPayResponse response = client.execute(request, sessionId );<br><br>        System.out.println(response.getBody());<br>    }<br>}
1
  

 

返回示例(JSON)

 

{

     "alitrip_flight_order_another_pay_response":{

         "trade_no":"1558663021174514213",

         "order_id":1084659040342

     }

}

 

 

FAQ

关于此文档暂时还没有FAQ
返回
顶部