V2 0/order/order confirm
功能说明
第三方选座产品确认订单
URL
http://[域名]//v2_0/order/order_confirm
返回格式
支持json,xml.通过format参数来控制
HTTP请求方式
POST.可以post的数据为xml或json.
输入参数说明
参数名称 | 是否必须 | 类型 | 描述 |
---|---|---|---|
uid | 是 | int | 用户id |
tid |
否 |
int |
票种id(价格票下单必须回传) |
num |
否 |
int | 数量(价格票下单必须回传) |
version |
是 |
stiring |
版本号 |
disid |
否 |
int |
套票id(价格票下单必须回传) |
dp_id | 否 |
int |
场次id(选座下单必须回传) |
area_id |
否 |
int |
区域id(选座下单必须回传) |
aid |
是 |
int |
活动id |
buy_type |
是 |
string |
购买类型:“seat”选座下单;“price”价格下单 |
tickets_info |
否 |
string |
选座信息(选座下单必须回传),格式为:价格price_id,座位seat(1:3);price_id,seat(1:4); 例如:35755633,1:19;35755633,1:17;35755633,2:9;35755633,2:7 |
请求示例
正式环境 http://api.fumubang.com/v2_0/order/order_confirm 测试环境 http://api.fumubang.net/v2_0/order/order_confirm 本地环境 http://dev-api.fumubang.net/v2_0/order/order_confirm
返回参数说明
参数 | 说明 |
---|---|
status | 发送状态:success成功 |
tickets_price |
价格票下单返回数据 |
ticket_id | 票种id |
price_id |
对应的第三方的价格id |
num |
份数 |
group_num |
套票包含张数 |
seat |
座位 |
goods_price |
现价 |
settle_price |
结算价 |
tao_status |
套票状态:1是0否 |
goods_price_ori |
如果是套票,每张票的售卖价 |
settle_price_ori |
如果是套票,每张票的结算价 |
disid |
如果是套票,套票id |
goods_price_total |
总售价 |
settle_price_total |
总结算金额 |
goods_price_cha_total |
优惠金额 |
coupon_list |
可用优惠券列表(具体参数详见 用户-我的优惠券接口) |
user_address_list |
用户默认地址(具体详见用户-收货地址接口) |
cert_list |
证件信息列表(具体详见用户-证件列表) |
tickets |
选座信息列表 |
prices |
选座价格信息数据 |
seat_name |
座位名称 |
goods_price |
现价 |
area_name |
区域名称 |
buy_info |
购买信息数据(暂时用不到) |
seat_reset |
详细优惠信息数据 |
seat_tao_remove_repeat |
套票优惠信息数据(即一个套票买2份,在优惠信息这显示一次) |
正确返回示例
选座确认订单回传
{
"status": "success",
"data": {
"tickets": {
"errno": 1,
"errmsg": "",
"date": "2017-01-14 19:30:00",
"cert_status": 0,
"shipping_status": 0,
"prices": [
{
"ticket_id": 8093,
"priceid": 35755633,
"seat": "1:19",
"seat_name": "1排19座",
"goods_price": "380.00",
"settle_price": "361.00",
"num": 1,
"area_name": "前排区域"
},
{
"ticket_id": "8093",
"priceid": 35755633,
"seat": "1:17",
"seat_name": "1排17座",
"goods_price": "380.00",
"settle_price": "361.00",
"num": 1,
"area_name": "前排区域"
},
{
"ticket_id": "8093",
"priceid": 35755633,
"seat": "2:9",
"seat_name": "2排9座",
"goods_price": "380.00",
"settle_price": "361.00",
"num": 1,
"area_name": "前排区域"
},
{
"ticket_id": "8093",
"priceid": 35755633,
"seat": "2:7",
"seat_name": "2排7座",
"goods_price": "380.00",
"settle_price": "361.00",
"num": 1,
"area_name": "前排区域"
}
],
"buy_info": {
"error_code": 0,
"error_msg": 0,
"data": [
{
"shop_user_id": "311",
"shop_warehouse_id": "0",
"shipping_fee": 0,
"ticket_group_id": "2395",
"ticket_group_name": "情人的关怀—邓丽君经典歌曲演唱会",
"aid": "102699",
"shipping_types": {
"shipping_type": 0,
"shipping_method_template": [
]
}
}
],
"shape_type": 1,
"is_cert": 1,
"sum_num": 1,
"order_sum_money": 380,
"order_sum_shipping_fee": "0.00",
"order_min_money": 380,
"order_max_money": 380
},
"seat_reset": [
{
"ticket_id": 8093,
"priceid": 35755633,
"seat": "1:19,1:17",
"goods_price": "700.00",
"settle_price": "665.00",
"num": 1,
"tao_status": 1,
"settle_per": "95.00",
"group_num": 2,
"goods_price_ori": "380.00",
"settle_price_ori": "361.00",
"disid": "35755634"
},
{
"ticket_id": "8093",
"priceid": 35755633,
"seat": "2:9,2:7",
"goods_price": "700.00",
"settle_price": "665.00",
"num": 1,
"tao_status": 1,
"settle_per": "95.00",
"group_num": 2,
"goods_price_ori": "380.00",
"settle_price_ori": "361.00",
"disid": "35755634"
}
],
"seat_tao_remove_repeat": [
{
"ticket_id": 8093,
"priceid": 35755633,
"seat": "1:19,1:17",
"goods_price": "700.00",
"settle_price": "665.00",
"num": 2,
"tao_status": 1,
"settle_per": "95.00",
"group_num": 2,
"goods_price_ori": "380.00",
"settle_price_ori": "361.00",
"disid": "35755634"
}
],
"reset_goods_price_total": 1400,
"goods_price_cha_total": "120.00"
},
"coupon_list": {
"page": {
"page": 1,
"page_size": 10,
"count": 43
},
"list": [
{
"min_amount": "满2.01可用",
"use_status": "2",
"coupon_type": "1",
"coupon_name": "勿动sam活动送优惠券",
"plat_id": "0",
"limit_type": "0",
"activity_id": "0",
"coupon_sn": "3m8PxxKcsvZ3",
"use_limit": "0",
"coupon_money": "2",
"coupon_start_time": "2015-10-15 11:42:52",
"coupon_end_time": "2016-02-12 23:59:59",
"order_sn": "20151016105410463995",
"use_time": "2015-10-16 10:54:10",
"use_time_stamp": "1444964050",
"coupon_tag": "购买送优惠券专用",
"activity_title": "",
"is_use_status": 1,
"is_kdq": 2,
"plat": "",
"coupon_type_cn": "代金券",
"coupon_status_cn": "已使用",
"start_time": "2015-10-15",
"end_time": "2016-02-12"
},...
]
},
"user_address_list": [
],
"cert_list": [
{
"id": "1835",
"uid": "33893",
"cert_type": "1",
"cert_no": "110101201403205923",
"name": "二岁儿童"
},...
]
}
}
价格确认订单回传
{
"status": "success",
"data": {
"tickets_price": {
"errno": 1,
"errmsg": "",
"data": {
"ticket_id": 8205,
"priceid": "35755685",
"num": 2,
"group_num": "2",
"seat": "",
"goods_price": "150",
"settle_price": "95.00",
"tao_status": 1,
"goods_price_ori": "400.00",
"settle_price_ori": "95.00",
"disid": 35755686,
"settle_per": "95.00",
"goods_price_total": 300,
"settle_price_total": 190,
"goods_price_cha_total": "100.00"
}
},
"coupon_list": {
"page": {
"page": 1,
"page_size": 10,
"count": 43
},
"list": [
{
"min_amount": "满2.01可用",
"use_status": "2",
"coupon_type": "1",
"coupon_name": "勿动sam活动送优惠券",
"plat_id": "0",
"limit_type": "0",
"activity_id": "0",
"coupon_sn": "3m8PxxKcsvZ3",
"use_limit": "0",
"coupon_money": "2",
"coupon_start_time": "2015-10-15 11:42:52",
"coupon_end_time": "2016-02-12 23:59:59",
"order_sn": "20151016105410463995",
"use_time": "2015-10-16 10:54:10",
"use_time_stamp": "1444964050",
"coupon_tag": "购买送优惠券专用",
"activity_title": "",
"is_use_status": 1,
"is_kdq": 2,
"plat": "",
"coupon_type_cn": "代金券",
"coupon_status_cn": "已使用",
"start_time": "2015-10-15",
"end_time": "2016-02-12"
},...
]
},
"user_address_list": [
],
"cert_list": [
{
"id": "1835",
"uid": "33893",
"cert_type": "1",
"cert_no": "110101201403205923",
"name": "二岁儿童"
},...
]
}
}
错误返回示例
1 <syntaxhighlight lang="php"> <error_code>200111</error_code> <error_msg>没有该票种信息</error_msg> </syntaxhighlight> 2 <syntaxhighlight lang="php"> <error_code>200112</error_code> <error_msg>票种日期有误</error_msg> </syntaxhighlight> 3 <syntaxhighlight lang="php"> <error_code>200113</error_code> <error_msg>提交订单信息失败</error_msg> </syntaxhighlight>