## Coupon Consumption
>接口說明
優惠券消費接口
>接口請求說明
HTTP請求格式: application/json
>接口參數說明
~~~[api]
post:/api/coupon/consumption
*string:code#優惠碼
*string:orderNumber#訂單號
*string:tripType#航程 :OW - 單程,RT - 往返
*string:route#航線:YTO-CTU,BJS-YTO
*string:cabin#艙位:E - 經濟艙,F - 頭等艙,B - 商務艙,P - 高級經濟艙
*string:carrier#航司:US,CA
*string:platformType#平臺類型:WEB Or MOBILE
<<<
success
{
"status": 0,
"msg": "success",
"timestamp": "20180815031258553"
}
<<<
error
{
"status": 1009,
"msg": "Invalid order number",
"timestamp": "20180718044652458"
}
~~~
>接口請求示例
~~~
{
"code":"tianbao200",
"orderNumber":"E4345E0D",
"tripType":"OW",
"route":"CTU-YTO",
"cabin":"F",
"carrier":"US",
"platformType":"WEB"
}
~~~