注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > 国内机票

大客户代采支付API

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

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)


import com.taobao.api.ApiException;
import com.taobao.api.DefaultTaobaoClient;
import com.taobao.api.TaobaoClient;
import com.taobao.api.request.AlitripFlightOrderAnotherPayRequest;
import com.taobao.api.response.AlitripFlightOrderAnotherPayResponse;

public class BigBuyer {
public static void main(String[] args) throws ApiException {

TaobaoClient client = new DefaultTaobaoClient( url, appkey, appSecret);

AlitripFlightOrderAnotherPayRequest request = new AlitripFlightOrderAnotherPayRequest();

request.setOrderId(1084659040342L);

AlitripFlightOrderAnotherPayResponse response = client.execute(request, sessionId );

System.out.println(response.getBody());
}
}
 

 

返回示例(JSON)

 

{

     "alitrip_flight_order_another_pay_response":{

         "trade_no":"1558663021174514213",

         "order_id":1084659040342

     }

}

 

 

FAQ

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