## 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"
}
~~~