TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelBnbhouseAddRequest req = new XhotelBnbhouseAddRequest();
req.setOutOwnerId("owner181000");
XhotelBnbhouseAddRequest.BnbBookingTimeDto obj1 = new XhotelBnbhouseAddRequest.BnbBookingTimeDto();
obj1.setStartReceptionTime("12:00");
obj1.setEndReceptionTime("12:00");
obj1.setEarliestCheckInTime("14:00");
obj1.setLatestBookingTime("12:00");
obj1.setLatestCheckInTime("12:00");
obj1.setLatestCheckOutTime("12:00");
req.setBnbBookingTime(obj1);
req.setDecorateLevel(1L);
req.setTel("0086#010#12345678");
req.setReceiveForeigners(0L);
req.setNameE("xxx");
req.setDecorateTime("2015-01-01");
req.setExtraBedsNum(1L);
req.setTags("xxx,xnian");
req.setHasFrontDesk(1L);
req.setGuestAge(1L);
req.setSettlementCurrency("CNY");
req.setName("套房");
req.setIsUseShootImage(1L);
req.setStatus("0");
req.setGuestGender(1L);
req.setActivitiesAllowed("1");
req.setOpeningTime("2015-01-01");
req.setDescription("大床房");
List<XhotelBnbhouseAddRequest.BnbPictureDTO> list3 = new ArrayList<XhotelBnbhouseAddRequest.BnbPictureDTO>();
XhotelBnbhouseAddRequest.BnbPictureDTO obj4 = new XhotelBnbhouseAddRequest.BnbPictureDTO();
list3.add(obj4);
obj4.setAttribute("全景图");
obj4.setIsmain(true);
obj4.setType("大堂");
obj4.setUrl("http://123.jpg");
obj4.setDes("客厅照片");
req.setPictures(list3);
req.setHasLicense(1L);
req.setFloors("1");
req.setVideoUrl("http://123.jpg");
req.setVendor("1001");
req.setProductType(0L);
XhotelBnbhouseAddRequest.BnbChargeDto obj5 = new XhotelBnbhouseAddRequest.BnbChargeDto();
obj5.setNum(1L);
obj5.setFee(12L);
obj5.setAddPeople(1L);
obj5.setMinChargingAge(12L);
req.setCharge(obj5);
req.setDecorateStyle(1L);
req.setCheckInNotes("前台登记");
req.setRealTel("132929123123");
XhotelBnbhouseAddRequest.BnbLocationDto obj6 = new XhotelBnbhouseAddRequest.BnbLocationDto();
obj6.setCountry("China");
obj6.setAddress("北京朝阳金辉大厦");
obj6.setBusiness("望京");
obj6.setCity(654300L);
obj6.setLatitude("41.779098");
obj6.setPositionType("M");
obj6.setDomestic(0L);
obj6.setProvince(110000L);
obj6.setEnAddress("China Beijing Chaoyang");
obj6.setReceptionAddress("望京东SOHO");
obj6.setDistrict(101100L);
obj6.setTimezone("+8");
obj6.setDoorplate("1101");
obj6.setLongitude("86.139839");
obj6.setCityName("北京市");
req.setLocation(obj6);
req.setAttributes(1L);
req.setOuterId("05181208");
req.setScenicFeature(1L);
req.setBrand("test");
req.setFacilities("{\"24058\":\"true\",\"24198\":\"true\",\"24200\":\"true\"}");
req.setHouseSize(70L);
req.setShid(123456L);
req.setStandardHotelFacilities("{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"500\":true,\"fee\":true},{\"501\":true,\"option\":\"1\"},{\"506\":true,\"mul-option\":[\"1\",\"2\"],\"desc\":\"说明\"},{\"507\":true,\"desc\":\"说明\"},{\"509\":true,\"value\":\"12:00\",\"fee\":true},{\"2\":true,\"list\":[{\"inDoorType\":\"1\",\"fee\":true},{\"inDoorType\":\"2\",\"fee\":true}]},{\"7\":true,\"list\":[{\"restaurantType\":\"1\",\"name\":\"品珍中餐厅\"},{\"restaurantType\":\"2\",\"name\":\"和日式料理\"}]}]}");
req.setIsFeizhuHotel(true);
req.setCommissionRate(92L);
XhotelBnbhouseAddResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
XhotelBnbhouseAddRequest req = new XhotelBnbhouseAddRequest();
req.OutOwnerId = "owner181000";
XhotelBnbhouseAddRequest.BnbBookingTimeDtoDomain obj1 = new XhotelBnbhouseAddRequest.BnbBookingTimeDtoDomain();
obj1.StartReceptionTime = "12:00";
obj1.EndReceptionTime = "12:00";
obj1.EarliestCheckInTime = "14:00";
obj1.LatestBookingTime = "12:00";
obj1.LatestCheckInTime = "12:00";
obj1.LatestCheckOutTime = "12:00";
req.BnbBookingTime_ = obj1;
req.DecorateLevel = 1L;
req.Tel = "0086#010#12345678";
req.ReceiveForeigners = 0L;
req.NameE = "xxx";
req.DecorateTime = "2015-01-01";
req.ExtraBedsNum = 1L;
req.Tags = "xxx,xnian";
req.HasFrontDesk = 1L;
req.GuestAge = 1L;
req.SettlementCurrency = "CNY";
req.Name = "套房";
req.IsUseShootImage = 1L;
req.Status = "0";
req.GuestGender = 1L;
req.ActivitiesAllowed = "1";
req.OpeningTime = "2015-01-01";
req.Description = "大床房";
List<XhotelBnbhouseAddRequest.BnbPictureDTODomain> list3 = new List<XhotelBnbhouseAddRequest.BnbPictureDTODomain>();
XhotelBnbhouseAddRequest.BnbPictureDTODomain obj4 = new XhotelBnbhouseAddRequest.BnbPictureDTODomain();
list3.Add(obj4);
obj4.Attribute = "全景图";
obj4.Ismain = true;
obj4.Type = "大堂";
obj4.Url = "http://123.jpg";
obj4.Des = "客厅照片";
req.Pictures_ = list3;
req.HasLicense = 1L;
req.Floors = "1";
req.VideoUrl = "http://123.jpg";
req.Vendor = "1001";
req.ProductType = 0L;
XhotelBnbhouseAddRequest.BnbChargeDtoDomain obj5 = new XhotelBnbhouseAddRequest.BnbChargeDtoDomain();
obj5.Num = 1L;
obj5.Fee = 12L;
obj5.AddPeople = 1L;
obj5.MinChargingAge = 12L;
req.Charge_ = obj5;
req.DecorateStyle = 1L;
req.CheckInNotes = "前台登记";
req.RealTel = "132929123123";
XhotelBnbhouseAddRequest.BnbLocationDtoDomain obj6 = new XhotelBnbhouseAddRequest.BnbLocationDtoDomain();
obj6.Country = "China";
obj6.Address = "北京朝阳金辉大厦";
obj6.Business = "望京";
obj6.City = 654300L;
obj6.Latitude = "41.779098";
obj6.PositionType = "M";
obj6.Domestic = 0L;
obj6.Province = 110000L;
obj6.EnAddress = "China Beijing Chaoyang";
obj6.ReceptionAddress = "望京东SOHO";
obj6.District = 101100L;
obj6.Timezone = "+8";
obj6.Doorplate = "1101";
obj6.Longitude = "86.139839";
obj6.CityName = "北京市";
req.Location_ = obj6;
req.Attributes = 1L;
req.OuterId = "05181208";
req.ScenicFeature = 1L;
req.Brand = "test";
req.Facilities = "{\"24058\":\"true\",\"24198\":\"true\",\"24200\":\"true\"}";
req.HouseSize = 70L;
req.Shid = 123456L;
req.StandardHotelFacilities = "{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"500\":true,\"fee\":true},{\"501\":true,\"option\":\"1\"},{\"506\":true,\"mul-option\":[\"1\",\"2\"],\"desc\":\"说明\"},{\"507\":true,\"desc\":\"说明\"},{\"509\":true,\"value\":\"12:00\",\"fee\":true},{\"2\":true,\"list\":[{\"inDoorType\":\"1\",\"fee\":true},{\"inDoorType\":\"2\",\"fee\":true}]},{\"7\":true,\"list\":[{\"restaurantType\":\"1\",\"name\":\"品珍中餐厅\"},{\"restaurantType\":\"2\",\"name\":\"和日式料理\"}]}]}";
req.IsFeizhuHotel = true;
req.CommissionRate = 92L;
XhotelBnbhouseAddResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new XhotelBnbhouseAddRequest;
$req->setOutOwnerId("owner181000");
$bnb_booking_time = new BnbBookingTimeDto;
$bnb_booking_time->start_reception_time="12:00";
$bnb_booking_time->end_reception_time="12:00";
$bnb_booking_time->earliest_check_in_time="14:00";
$bnb_booking_time->latest_booking_time="12:00";
$bnb_booking_time->latest_check_in_time="12:00";
$bnb_booking_time->latest_check_out_time="12:00";
$req->setBnbBookingTime(json_encode($bnb_booking_time));
$req->setDecorateLevel("1");
$req->setTel("0086#010#12345678");
$req->setReceiveForeigners("0");
$req->setNameE("xxx");
$req->setDecorateTime("2015-01-01");
$req->setExtraBedsNum("1");
$req->setTags("xxx,xnian");
$req->setHasFrontDesk("1");
$req->setGuestAge("1");
$req->setSettlementCurrency("CNY");
$req->setName("套房");
$req->setIsUseShootImage("1");
$req->setStatus("0");
$req->setGuestGender("1");
$req->setActivitiesAllowed("1");
$req->setOpeningTime("2015-01-01");
$req->setDescription("大床房");
$pictures = new BnbPictureDTO;
$pictures->attribute="全景图";
$pictures->ismain="true";
$pictures->type="大堂";
$pictures->url="http://123.jpg";
$pictures->des="客厅照片";
$req->setPictures(json_encode($pictures));
$req->setHasLicense("1");
$req->setFloors("1");
$req->setVideoUrl("http://123.jpg");
$req->setVendor("1001");
$req->setProductType("0");
$charge = new BnbChargeDto;
$charge->num="1";
$charge->fee="12";
$charge->add_people="1";
$charge->min_charging_age="12";
$req->setCharge(json_encode($charge));
$req->setDecorateStyle("1");
$req->setCheckInNotes("前台登记");
$req->setRealTel("132929123123");
$location = new BnbLocationDto;
$location->country="China";
$location->address="北京朝阳金辉大厦";
$location->business="望京";
$location->city="654300";
$location->latitude="41.779098";
$location->position_type="M";
$location->domestic="0";
$location->province="110000";
$location->en_address="China Beijing Chaoyang";
$location->reception_address="望京东SOHO";
$location->district="101100";
$location->timezone="+8";
$location->doorplate="1101";
$location->longitude="86.139839";
$location->city_name="北京市";
$req->setLocation(json_encode($location));
$req->setAttributes("1");
$req->setOuterId("05181208");
$req->setScenicFeature("1");
$req->setBrand("test");
$req->setFacilities("{\"24058\":\"true\",\"24198\":\"true\",\"24200\":\"true\"}");
$req->setHouseSize("70");
$req->setShid("123456");
$req->setStandardHotelFacilities("{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"500\":true,\"fee\":true},{\"501\":true,\"option\":\"1\"},{\"506\":true,\"mul-option\":[\"1\",\"2\"],\"desc\":\"说明\"},{\"507\":true,\"desc\":\"说明\"},{\"509\":true,\"value\":\"12:00\",\"fee\":true},{\"2\":true,\"list\":[{\"inDoorType\":\"1\",\"fee\":true},{\"inDoorType\":\"2\",\"fee\":true}]},{\"7\":true,\"list\":[{\"restaurantType\":\"1\",\"name\":\"品珍中餐厅\"},{\"restaurantType\":\"2\",\"name\":\"和日式料理\"}]}]}");
$req->setIsFeizhuHotel("true");
$req->setCommissionRate("92");
$resp = $c->execute($req, $sessionKey);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=taobao.xhotel.bnbhouse.add' \
-d 'partner_id=apidoc' \
-d 'session=5e6d2e2a-a042-42c4-9550-826fecb53540' \
-d 'sign=28457573512908FC48329E6E3C505AD6' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-21+21%3A32%3A12' \
-d 'v=2.0' \
-d 'activities_allowed=1' \
-d 'attributes=1' \
-d 'bnb_booking_time=null' \
-d 'brand=test' \
-d 'charge=null' \
-d 'check_in_notes=%E5%89%8D%E5%8F%B0%E7%99%BB%E8%AE%B0' \
-d 'commission_rate=92' \
-d 'decorate_level=1' \
-d 'decorate_style=1' \
-d 'decorate_time=2015-01-01' \
-d 'description=%E5%A4%A7%E5%BA%8A%E6%88%BF' \
-d 'extra_beds_num=1' \
-d 'facilities=%7B%5C%2224058%5C%22%3A%5C%22true%5C%22%2C%5C%2224198%5C%22%3A%5C%22true%5C%22%2C%5C%2224200%5C%22%3A%5C%22true%5C%22%7D' \
-d 'floors=1' \
-d 'guest_age=1' \
-d 'guest_gender=1' \
-d 'has_front_desk=1' \
-d 'has_license=1' \
-d 'house_size=70' \
-d 'is_feizhu_hotel=true' \
-d 'is_use_shoot_image=1' \
-d 'location=null' \
-d 'name=%E5%A5%97%E6%88%BF' \
-d 'name_e=xxx' \
-d 'opening_time=2015-01-01' \
-d 'out_owner_id=owner181000' \
-d 'outer_id=05181208' \
-d 'pictures=null' \
-d 'product_type=0' \
-d 'real_tel=132929123123' \
-d 'receive_foreigners=0' \
-d 'scenic_feature=1' \
-d 'settlement_currency=CNY' \
-d 'shid=123456' \
-d 'standard_hotel_facilities=%7B%5C%22dataVersion%5C%22%3A%5C%222.0.0%5C%22%2C%5C%22facilityList%5C%22%3A%5B%7B%5C%22500%5C%22%3Atrue%2C%5C%22fee%5C%22%3Atrue%7D%2C%7B%5C%22501%5C%22%3Atrue%2C%5C%22option%5C%22%3A%5C%221%5C%22%7D%2C%7B%5C%22506%5C%22%3Atrue%2C%5C%22mul-option%5C%22%3A%5B%5C%221%5C%22%2C%5C%222%5C%22%5D%2C%5C%22desc%5C%22%3A%5C%22%E8%AF%B4%E6%98%8E%5C%22%7D%2C%7B%5C%22507%5C%22%3Atrue%2C%5C%22desc%5C%22%3A%5C%22%E8%AF%B4%E6%98%8E%5C%22%7D%2C%7B%5C%22509%5C%22%3Atrue%2C%5C%22value%5C%22%3A%5C%2212%3A00%5C%22%2C%5C%22fee%5C%22%3Atrue%7D%2C%7B%5C%222%5C%22%3Atrue%2C%5C%22list%5C%22%3A%5B%7B%5C%22inDoorType%5C%22%3A%5C%221%5C%22%2C%5C%22fee%5C%22%3Atrue%7D%2C%7B%5C%22inDoorType%5C%22%3A%5C%222%5C%22%2C%5C%22fee%5C%22%3Atrue%7D%5D%7D%2C%7B%5C%227%5C%22%3Atrue%2C%5C%22list%5C%22%3A%5B%7B%5C%22restaurantType%5C%22%3A%5C%221%5C%22%2C%5C%22name%5C%22%3A%5C%22%E5%93%81%E7%8F%8D%E4%B8%AD%E9%A4%90%E5%8E%85%5C%22%7D%2C%7B%5C%22restaurantType%5C%22%3A%5C%222%5C%22%2C%5C%22name%5C%22%3A%5C%22%E5%92%8C%E6%97%A5%E5%BC%8F%E6%96%99%E7%90%86%5C%22%7D%5D%7D%5D%7D' \
-d 'status=0' \
-d 'tags=xxx%2Cxnian' \
-d 'tel=0086%23010%2312345678' \
-d 'vendor=1001' \
-d 'video_url=http%3A%2F%2F123.jpg'
# -*- coding: utf-8 -*-
import top.api
req=top.api.XhotelBnbhouseAddRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.out_owner_id="owner181000"
req.bnb_booking_time=""
req.decorate_level=1
req.tel="0086#010#12345678"
req.receive_foreigners=0
req.name_e="xxx"
req.decorate_time="2015-01-01"
req.extra_beds_num=1
req.tags="xxx,xnian"
req.has_front_desk=1
req.guest_age=1
req.settlement_currency="CNY"
req.name="套房"
req.is_use_shoot_image=1
req.status="0"
req.guest_gender=1
req.activities_allowed="1"
req.opening_time="2015-01-01"
req.description="大床房"
req.pictures=""
req.has_license=1
req.floors="1"
req.video_url="http://123.jpg"
req.vendor="1001"
req.product_type=0
req.charge=""
req.decorate_style=1
req.check_in_notes="前台登记"
req.real_tel="132929123123"
req.location=""
req.attributes=1
req.outer_id="05181208"
req.scenic_feature=1
req.brand="test"
req.facilities="{\"24058\":\"true\",\"24198\":\"true\",\"24200\":\"true\"}"
req.house_size=70
req.shid=123456
req.standard_hotel_facilities="{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"500\":true,\"fee\":true},{\"501\":true,\"option\":\"1\"},{\"506\":true,\"mul-option\":[\"1\",\"2\"],\"desc\":\"说明\"},{\"507\":true,\"desc\":\"说明\"},{\"509\":true,\"value\":\"12:00\",\"fee\":true},{\"2\":true,\"list\":[{\"inDoorType\":\"1\",\"fee\":true},{\"inDoorType\":\"2\",\"fee\":true}]},{\"7\":true,\"list\":[{\"restaurantType\":\"1\",\"name\":\"品珍中餐厅\"},{\"restaurantType\":\"2\",\"name\":\"和日式料理\"}]}]}"
req.is_feizhu_hotel=true
req.commission_rate=92
try:
resp= req.getResponse(sessionkey)
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"taobao.xhotel.bnbhouse.add");
add_param(pRequest,"out_owner_id","owner181000");
add_param(pRequest,"bnb_booking_time","数据结构JSON示例");
add_param(pRequest,"decorate_level","1");
add_param(pRequest,"tel","0086#010#12345678");
add_param(pRequest,"receive_foreigners","0");
add_param(pRequest,"name_e","xxx");
add_param(pRequest,"decorate_time","2015-01-01");
add_param(pRequest,"extra_beds_num","1");
add_param(pRequest,"tags","xxx,xnian");
add_param(pRequest,"has_front_desk","1");
add_param(pRequest,"guest_age","1");
add_param(pRequest,"settlement_currency","CNY");
add_param(pRequest,"name","套房");
add_param(pRequest,"is_use_shoot_image","1");
add_param(pRequest,"status","0");
add_param(pRequest,"guest_gender","1");
add_param(pRequest,"activities_allowed","1");
add_param(pRequest,"opening_time","2015-01-01");
add_param(pRequest,"description","大床房");
add_param(pRequest,"pictures","数据结构JSON示例");
add_param(pRequest,"has_license","1");
add_param(pRequest,"floors","1");
add_param(pRequest,"video_url","http://123.jpg");
add_param(pRequest,"vendor","1001");
add_param(pRequest,"product_type","0");
add_param(pRequest,"charge","数据结构JSON示例");
add_param(pRequest,"decorate_style","1");
add_param(pRequest,"check_in_notes","前台登记");
add_param(pRequest,"real_tel","132929123123");
add_param(pRequest,"location","数据结构JSON示例");
add_param(pRequest,"attributes","1");
add_param(pRequest,"outer_id","05181208");
add_param(pRequest,"scenic_feature","1");
add_param(pRequest,"brand","test");
add_param(pRequest,"facilities","{\"24058\":\"true\",\"24198\":\"true\",\"24200\":\"true\"}");
add_param(pRequest,"house_size","70");
add_param(pRequest,"shid","123456");
add_param(pRequest,"standard_hotel_facilities","{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"500\":true,\"fee\":true},{\"501\":true,\"option\":\"1\"},{\"506\":true,\"mul-option\":[\"1\",\"2\"],\"desc\":\"说明\"},{\"507\":true,\"desc\":\"说明\"},{\"509\":true,\"value\":\"12:00\",\"fee\":true},{\"2\":true,\"list\":[{\"inDoorType\":\"1\",\"fee\":true},{\"inDoorType\":\"2\",\"fee\":true}]},{\"7\":true,\"list\":[{\"restaurantType\":\"1\",\"name\":\"品珍中餐厅\"},{\"restaurantType\":\"2\",\"name\":\"和日式料理\"}]}]}");
add_param(pRequest,"is_feizhu_hotel","true");
add_param(pRequest,"commission_rate","92");
pResponse = top_execute(pClient,pRequest,sessionKey);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('taobao.xhotel.bnbhouse.add', {
'out_owner_id':'owner181000',
'bnb_booking_time':'数据结构JSON示例',
'decorate_level':'1',
'tel':'0086#010#12345678',
'receive_foreigners':'0',
'name_e':'xxx',
'decorate_time':'2015-01-01',
'extra_beds_num':'1',
'tags':'xxx,xnian',
'has_front_desk':'1',
'guest_age':'1',
'settlement_currency':'CNY',
'name':'套房',
'is_use_shoot_image':'1',
'status':'0',
'guest_gender':'1',
'activities_allowed':'1',
'opening_time':'2015-01-01',
'description':'大床房',
'pictures':'数据结构JSON示例',
'has_license':'1',
'floors':'1',
'video_url':'http://123.jpg',
'vendor':'1001',
'product_type':'0',
'charge':'数据结构JSON示例',
'decorate_style':'1',
'check_in_notes':'前台登记',
'real_tel':'132929123123',
'location':'数据结构JSON示例',
'attributes':'1',
'outer_id':'05181208',
'scenic_feature':'1',
'brand':'test',
'facilities':'{\"24058\":\"true\",\"24198\":\"true\",\"24200\":\"true\"}',
'house_size':'70',
'shid':'123456',
'standard_hotel_facilities':'{\"dataVersion\":\"2.0.0\",\"facilityList\":[{\"500\":true,\"fee\":true},{\"501\":true,\"option\":\"1\"},{\"506\":true,\"mul-option\":[\"1\",\"2\"],\"desc\":\"说明\"},{\"507\":true,\"desc\":\"说明\"},{\"509\":true,\"value\":\"12:00\",\"fee\":true},{\"2\":true,\"list\":[{\"inDoorType\":\"1\",\"fee\":true},{\"inDoorType\":\"2\",\"fee\":true}]},{\"7\":true,\"list\":[{\"restaurantType\":\"1\",\"name\":\"品珍中餐厅\"},{\"restaurantType\":\"2\",\"name\":\"和日式料理\"}]}]}',
'is_feizhu_hotel':'true',
'commission_rate':'92'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})