V2 0/longtour/check pack group bydate
功能说明
检查跟团游库存
URL
http://[域名]/v2/longtour/check_pack_group_bydate
返回格式
支持json,xml.通过format参数来控制
HTTP请求方式
POST.可以post的数据为xml或json.
输入参数说明
各个参数请进行URL 编码,编码时请遵守 RFC 1738 (1)公共参数 发送请求时必须传入公共参数,详见公共参数说明。 (2)私有参数
参数名称 | 是否必须 | 类型 | 描述 |
---|---|---|---|
date |
必须 |
date | 出行日期,yyyy-mm-dd格式 |
version |
必须 |
string | 客户端版本 |
adult_num |
必须 |
int | 成人数 |
child_num |
必须 |
int |
儿童数 |
product_id |
必须 |
int |
产品id |
sum_money |
必须 |
float |
订单总金额 |
app_sub_money |
必须 |
float |
下单立减金额,目前没有,默认0返回到服务器 |
version |
必须 |
verion |
版本号 |
请求示例
正式环境 http://api.fumubang.com/v2_0/longtour/check_pack_group_bydate 测试环境 http://api.fumubang.net/v2_0/longtour/check_pack_group_bydate 本地环境 http://dev-api.fumubang.net/v2_0/longtour/check_pack_group_bydate
返回参数说明
参数 | 说明 |
---|---|
status |
success代表成功 |
data |
跟团游数据 |
address_default |
默认地址 |
address_id |
地址id |
address_name |
地址名称 |
uid |
用户id |
receiver |
收货人 |
country |
收货人国家 |
province |
收货人省份 |
city |
收货人城市 |
area |
收货人地区 |
street |
收货人街道 |
address |
收货人地址 |
zipcode |
收货人邮编 |
tel |
收货人电话 |
mobile |
收货人手机 |
email |
收货人邮箱 |
is_default |
是否默认地址:0否,1是 |
province_name |
收货人省份名称 |
city_name |
收货人城市名称 |
email_status |
是否需要邮箱:true是,false否 |
email_require |
是否必填,true是,false否 |
weixin_status |
是否需要微信:true是,false否 |
weixin_require |
是否必填:true是,false否 |
total_price |
总价 |
differ_price |
单房差 |
adult_price |
成人价 |
child_price |
儿童价 |
user_cert |
常用联系人 |
cert_name_arr |
该产品支持的证件名称列表 |
support_passport_info |
支持的证件类型 |
coupon_list |
优惠券列表 |
pack_insur_arr |
打包保险(3.40新增) |
pack_scenic |
打包景点(3.40新增) |
pack_taxi |
打包用车(3.40新增) |
pack_other_arr |
打包其他(3.40新增) |
common_date_arr |
选择日期列表(3.40新增) |
spell_house_status |
拼房状态: 0-用户必选单房差;1-用户可选单房差(V3.71新增) |
正确返回示例
{
"status": "success",
"data":
{
"address_default":
{
"address_id": "1933",
"address_name": "",
"uid": "33455",
"receiver": "dsfdsfd",
"country": "1",
"province": "1",
"city": "37",
"area": "0",
"street": "0",
"address": "dsfd",
"zipcode": "052260",
"tel": "",
"mobile": "18701644809",
"email": "",
"is_default": "0",
"ctime": "2015-10-27 18:01:12",
"province_name": "北京市",
"city_name": "东城区"
},
"email_status": true,
"email_require": true,
"weixin_status": false,
"weixin_require": true,
"total_price": 280,
"differ_price": 70,
"adult_price": 80,
"child_price": 0,
"user_certs": [
{
"pid": "431",
"uid": "33455",
"name": "张三",
"first_name": "",
"last_name": "",
"phone_num": "",
"sex": "2",
"birthday": "0000-00-00",
"nationality": "0",
"ctime": "2016-01-21 18:36:27",
"identity": "",
"certs": [
{
"id": "515",
"cert_type": "1",
"cert_no": "110228190001011119",
"cert_name": "身份证"
}
],
"nationality_name": ""
},
{
"pid": "433",
"uid": "33455",
"name": "李四",
"first_name": "",
"last_name": "",
"phone_num": "",
"sex": "2",
"birthday": "0000-00-00",
"nationality": "0",
"ctime": "2016-01-21 18:36:27",
"identity": "",
"certs": [
{
"id": "517",
"cert_type": "1",
"cert_no": "110228190001012058",
"cert_name": "身份证"
}
],
"nationality_name": ""
},
{
"pid": "567",
"uid": "33455",
"name": "真实a",
"first_name": "",
"last_name": "",
"phone_num": "",
"sex": "1",
"birthday": "0000-00-00",
"nationality": "0",
"ctime": "2016-01-21 18:36:27",
"identity": "",
"certs": [
{
"id": "675",
"cert_type": "1",
"cert_no": "110228190001011274",
"cert_name": "身份证"
}
],
"nationality_name": ""
},
{
"pid": "569",
"uid": "33455",
"name": "真实b",
"first_name": "",
"last_name": "",
"phone_num": "",
"sex": "1",
"birthday": "0000-00-00",
"nationality": "0",
"ctime": "2016-01-21 18:36:27",
"identity": "",
"certs": [
{
"id": "677",
"cert_type": "1",
"cert_no": "110228190001011178",
"cert_name": "身份证"
}
],
"nationality_name": ""
},
{
"pid": "617",
"uid": "33455",
"name": "李四1",
"first_name": "",
"last_name": "",
"phone_num": "",
"sex": "1",
"birthday": "0000-00-00",
"nationality": "0",
"ctime": "2016-01-21 18:36:27",
"identity": "",
"certs": [
{
"id": "739",
"cert_type": "1",
"cert_no": "110101201501015074",
"cert_name": "身份证"
}
],
"nationality_name": ""
},
{
"pid": "619",
"uid": "33455",
"name": "dddd",
"first_name": "",
"last_name": "",
"phone_num": "",
"sex": "0",
"birthday": "0000-00-00",
"nationality": "0",
"ctime": "2016-01-21 18:36:27",
"identity": "",
"certs": [
{
"id": "741",
"cert_type": "1",
"cert_no": "130183198601180462",
"cert_name": "身份证"
}
],
"nationality_name": ""
},
{
"pid": "1051",
"uid": "33455",
"name": "aaa",
"first_name": "",
"last_name": "",
"phone_num": "",
"sex": "1",
"birthday": "0000-00-00",
"nationality": "0",
"ctime": "2016-01-25 20:22:23",
"identity": "",
"certs": [
{
"id": "1313",
"cert_type": "1",
"cert_no": "130183198601180759",
"cert_name": "身份证"
}
],
"nationality_name": ""
},
{
"pid": "1053",
"uid": "33455",
"name": "cccc",
"first_name": "",
"last_name": "",
"phone_num": "",
"sex": "1",
"birthday": "0000-00-00",
"nationality": "0",
"ctime": "2016-01-25 20:39:13",
"identity": "",
"certs": [
{
"id": "1317",
"cert_type": "1",
"cert_no": "130183198501168956",
"cert_name": "身份证"
}
],
"nationality_name": ""
}
],
"support_passport_info": [
"1",
"2"
],
"cert_name_arr": [
{
"key": 1,
"value": "身份证"
},
{
"key": 2,
"value": "户口簿"
}
],
"coupon_list": [
{
"min_amount": "满1.01可用",
"use_status": "0",
"coupon_type": "1",
"coupon_name": "家庭旅行",
"plat_id": "0",
"limit_type": "0",
"activity_id": "0",
"coupon_sn": "DFjTbWDSJXUc",
"use_limit": "0",
"coupon_money": "1",
"coupon_start_time": "2016-01-01 00:00:00",
"coupon_end_time": "2016-02-29 23:59:59",
"order_sn": "",
"use_time": "0000-00-00 00:00:00",
"use_time_stamp": "0",
"coupon_tag": "",
"plat": "",
"coupon_type_cn": "代金券",
"coupon_status_cn": "未使用",
"start_time": "2016-01-01",
"end_time": "2016-02-29"
},...
],
//3.4新增跟团附加费用
"pack_insur_arr": [
{
"info_id": "2231",
"package_id": "279",
"sell_id": "1661",
"product_id": "2000039",
"supplier_id": "205",
"affiliation": "2",
"day_of_trip": "0",
"days_of_trip": "0",
"day_of_trip2": "0",
"days_of_trip2": "0",
"type_name": "insurance",
"extra_name": "",
"plane_need_transfer": "0",
"taxi_set_date": "0",
"insurance_unit": "1",
"round_trip_status": "0",
"is_used": "0",
"comments": "",
"status": "1",
"is_delete": "0",
"create_uid": "275",
"admin_uid": "275",
"ctime": "2016-03-03 14:22:10",
"uptime": "2016-03-03 14:22:10",
"price_id": "32581",
"date": "0000-00-00 00:00:00",
"market_price": "0.00",
"goods_price": "150.00",
"settle_price": "160.00",
"stock": "2147483647",
"raw_stock": "2147483647",
"pss_id": "883",
"product_name": "ming-平安保险",
"cat_id": "0",
"title": "ming-平安保险",
"sub_title": "ming-平安保险",
"banner": "",
"is_fclub": "0",
"pub_city_id": "0",
"sell_city_id": "",
"age_min": "2",
"age_max": "12",
"start_city_ids": "",
"destination_country_ids": "",
"destination_provinces_ids": "",
"destination_city_ids": "",
"require_data": "",
"sell_stat": "0",
"sell_min_price": "0.00",
"market_min_price": "0.00",
"click_num": "0",
"sell_num": "0",
"start_sell_time": "0000-00-00 00:00:00",
"end_sell_time": "0000-00-00 00:00:00",
"online_time": "0000-00-00 00:00:00",
"offline_time": "0000-00-00 00:00:00",
"pay_time_limits": "0",
"sort_rank": "0",
"plat_id": "0",
"on_shelves_time": "1970-01-01 00:00:00",
"name": "ming-平安保险",
"company": "中国平安",
"contract_id": "0",
"contract_desc": "违法而威尔而额外"
}
],
"pack_scenic": [
{
"price_data": [
{
"stock": "1000",
"goods_price": "40.00",
"date": "2016-11-30"
},
{
"stock": "1000",
"goods_price": "40.00",
"date": "2016-12-01"
},
{
"stock": "1000",
"goods_price": "40.00",
"date": "2016-12-02"
},
{
"stock": "1000",
"goods_price": "40.00",
"date": "2016-12-03"
},
{
"stock": "1000",
"goods_price": "40.00",
"date": "2016-12-04"
},
{
"stock": "1000",
"goods_price": "40.00",
"date": "2016-12-05"
},
{
"stock": "1000",
"goods_price": "40.00",
"date": "2016-12-06"
},
{
"stock": "1000",
"goods_price": "40.00",
"date": "2016-12-07"
}
],
"data": {
"info_id": "2315",
"package_id": "279",
"sell_id": "1699",
"product_id": "2000069",
"supplier_id": "201",
"affiliation": "2",
"day_of_trip": "0",
"days_of_trip": "0",
"day_of_trip2": "0",
"days_of_trip2": "0",
"type_name": "scenic",
"extra_name": "",
"plane_need_transfer": "0",
"taxi_set_date": "0",
"insurance_unit": "0",
"round_trip_status": "0",
"is_used": "0",
"comments": "",
"status": "1",
"is_delete": "0",
"create_uid": "171",
"admin_uid": "171",
"ctime": "2016-03-03 18:21:30",
"uptime": "2016-03-03 18:21:30",
"price_id": "35007",
"date": "2016-12-07 00:00:00",
"market_price": "0.00",
"goods_price": "40.00",
"settle_price": "37.00",
"stock": "1000",
"raw_stock": "1000",
"pss_id": "917",
"product_name": "sam-总统府",
"cat_id": "0",
"title": "sam-总统府",
"sub_title": "sam-总统府",
"banner": "3185",
"is_fclub": "0",
"pub_city_id": "0",
"sell_city_id": "",
"age_min": "2",
"age_max": "12",
"start_city_ids": "",
"destination_country_ids": "",
"destination_provinces_ids": "",
"destination_city_ids": "",
"require_data": "",
"sell_stat": "0",
"sell_min_price": "0.00",
"market_min_price": "0.00",
"click_num": "0",
"sell_num": "2",
"start_sell_time": "0000-00-00 00:00:00",
"end_sell_time": "0000-00-00 00:00:00",
"online_time": "0000-00-00 00:00:00",
"offline_time": "0000-00-00 00:00:00",
"pay_time_limits": "0",
"sort_rank": "0",
"plat_id": "0",
"on_shelves_time": "1970-01-01 00:00:00",
"scenic_name": "sam-总统府",
"scenic_stars": "5",
"business_hour_start": "8:00",
"business_hour_end": "18:00",
"sell_hour_start": "8:00",
"sell_hour_end": "17:00",
"country_id": "0",
"province_id": "10",
"city_id": "162",
"address": "玄武区长江后街8号",
"traffic_info": "地铁\n乘坐南京地铁2号线或南京地铁3号线至大行宫站。\n公交\n从南京火车站乘坐 201、202、3、29、44、51、65、95、163、304路公交车均可到达总统府。\n乘坐5、25、55、80、9路公交车在新街口或大行宫(大行宫北站)下,穿过南京图书馆也可到达。\n自驾路线\n沿G42行驶,朝无锡/北京/江阴大桥/G2方向,稍向右转进入G2,沿无锡枢纽行驶,在无锡枢纽朝南京/G42方向,朝南京市区/中山门/中山陵/马群方向,稍向右转进入沪宁高速公路,沿沪宁高速公路行驶,朝中山东路方向,直行进入中山东路,沿中山",
"longitude": "118.803276",
"latitude": "32.052368",
"cover_images_id": "3185"
}
}
],
"pack_taxi": [
{
"info_id": "2303",
"package_id": "279",
"sell_id": "795",
"product_id": "625",
"supplier_id": "63",
"affiliation": "2",
"day_of_trip": "0",
"days_of_trip": "0",
"day_of_trip2": "0",
"days_of_trip2": "0",
"type_name": "rent_car",
"extra_name": "",
"plane_need_transfer": "0",
"taxi_set_date": "1",
"insurance_unit": "0",
"round_trip_status": "0",
"is_used": "0",
"comments": "",
"status": "0",
"is_delete": "0",
"create_uid": "123",
"admin_uid": "123",
"ctime": "2016-02-17 14:51:06",
"uptime": "2016-02-17 14:51:06",
"price_id": "7639",
"date": "0000-00-00 00:00:00",
"market_price": "0.00",
"goods_price": "200.00",
"settle_price": "150.00",
"stock": "2147483647",
"raw_stock": "2147483647",
"pss_id": "426",
"product_name": "欧洲用车",
"cat_id": "0",
"title": "欧洲用车",
"sub_title": "欧洲用车",
"banner": "",
"is_fclub": "0",
"pub_city_id": "0",
"sell_city_id": "",
"age_min": "2",
"age_max": "12",
"start_city_ids": "",
"destination_country_ids": "",
"destination_provinces_ids": "",
"destination_city_ids": "",
"require_data": "",
"sell_stat": "16",
"sell_min_price": "0.00",
"market_min_price": "0.00",
"click_num": "0",
"sell_num": "16",
"start_sell_time": "0000-00-00 00:00:00",
"end_sell_time": "0000-00-00 00:00:00",
"online_time": "0000-00-00 00:00:00",
"offline_time": "0000-00-00 00:00:00",
"pay_time_limits": "0",
"sort_rank": "0",
"plat_id": "0",
"on_shelves_time": "1970-01-01 00:00:00",
"name": "欧洲用车",
"price_units": "人",
"start_type": "0",
"start_address": "巴黎",
"end_type": "0",
"end_address": "尼斯",
"car_brand": "豪华车型",
"car_info": "0",
"seatings": "4",
"carpool": "0",
"taxi_desc": "可以约车用车优惠价格"
}
],
"pack_other_arr": [
{
"info_id": "2305",
"package_id": "279",
"sell_id": "1697",
"product_id": "2000067",
"supplier_id": "207",
"affiliation": "2",
"day_of_trip": "0",
"days_of_trip": "0",
"day_of_trip2": "0",
"days_of_trip2": "0",
"type_name": "extra",
"extra_name": "",
"plane_need_transfer": "0",
"taxi_set_date": "0",
"insurance_unit": "0",
"round_trip_status": "0",
"is_used": "0",
"comments": "",
"status": "1",
"is_delete": "0",
"create_uid": "6",
"admin_uid": "6",
"ctime": "2016-03-03 18:02:57",
"uptime": "2016-03-03 18:02:57",
"price_id": "34447",
"date": "0000-00-00 00:00:00",
"market_price": "0.00",
"goods_price": "12.00",
"settle_price": "12.00",
"stock": "12",
"raw_stock": "12",
"pss_id": "915",
"product_name": "马杰测试供应商其他产品2",
"cat_id": "0",
"title": "马杰测试供应商其他产品2",
"sub_title": "马杰测试供应商其他产品2",
"banner": "",
"is_fclub": "0",
"pub_city_id": "0",
"sell_city_id": "",
"age_min": "2",
"age_max": "12",
"start_city_ids": "",
"destination_country_ids": "",
"destination_provinces_ids": "",
"destination_city_ids": "",
"require_data": "",
"sell_stat": "0",
"sell_min_price": "0.00",
"market_min_price": "0.00",
"click_num": "0",
"sell_num": "0",
"start_sell_time": "0000-00-00 00:00:00",
"end_sell_time": "0000-00-00 00:00:00",
"online_time": "0000-00-00 00:00:00",
"offline_time": "0000-00-00 00:00:00",
"pay_time_limits": "0",
"sort_rank": "0",
"plat_id": "0",
"on_shelves_time": "1970-01-01 00:00:00",
"name": "马杰测试供应商其他产品2",
"buy_limit": "1",
"price_rules": "人",
"extra_desc": "的撒范德萨"
}
],
"common_date_arr": [
"2016-11-30",
"2016-12-01",
"2016-12-02",
"2016-12-03",
"2016-12-04",
"2016-12-05",
"2016-12-06",
"2016-12-07"
]
}
}
}
错误返回示例
实例1:
{ "error_code":"300001",
"error_msg":"参数不全"
}
实例2:
{
"error_code":"300002",
"error_msg":"抱歉,该日期产品库存不足。"
}
实例3: {
"error_code":"300004",
"error_msg":"抱歉,产品库存不足,请修改出行人数或出行日期。"
}