getBookings() apiSource

Develper issues when using the Beds24 APi.
Post Reply
goodtimehomecm
Posts: 2
Joined: Wed Mar 23, 2016 2:47 pm

Hi,

We are developing on premises reports based on your API.
We noticed that the json of getBookings() returns a apiSource number that seems to be different for each Channel.

1- I need to be sure that each channel has a unique apiSource. Can i make that assumption?

2 - If true can you provide a list of apiSource's and the respective channels?

Thanks
markkinchin
Site Admin
Posts: 935
Joined: Fri Mar 02, 2012 1:43 pm

The apiSource number is unique per channel, the current definitions are:

define ("apisource_beds24", 0);
define ("apisource_bookingcom", 1); //obsolete
define ("apisource_bookit", 2);
define ("apisource_nzaa", 3);
define ("apisource_ezibed", 4); //not used
define ("apisource_wotif", 5); //not used
define ("apisource_jasonsnz", 6); //not used
define ("apisource_venerecom", 7); //not used 2014-04-14
define ("apisource_lateroomscom", 8);
define ("apisource_bookitnowcomau", 9); //notused
define ("apisource_airbnbcom", 10);
define ("apisource_agodacom", 11); //not used anymore
define ("apisource_flipkeycom", 12);
define ("apisource_guestlinkcouk", 13);
define ("apisource_expediacom", 14);
define ("apisource_wimducom", 15);
define ("apisource_icalbookings", 16);
define ("apisource_agodaapi", 17);
define ("apisource_travelocitycom", 18);
define ("apisource_bookingapi", 19);
define ("apisource_tripadvisorcom", 20);
define ("apisource_icalimport1", 21);
define ("apisource_budgetplacescom", 22);
define ("apisource_tablethotelscom", 23);
define ("apisource_hostelworldcom", 24);
define ("apisource_visitscotlandcom", 25);
define ("apisource_holidaylettingscouk", 26);
define ("apisource_bedandbreakfasteu", 27);
define ("apisource_icalimport2", 28);
define ("apisource_icalimport3", 29);
define ("apisource_homeawaycom", 30);
define ("apisource_bedandbreakfastnl", 31);
define ("apisource_atraveode", 32);
define ("apisource_feratel", 33);
define ("apisource_webroomsconz", 34);
define ("apisource_lastminutecom", 35);
define ("apisource_hotelbedscom", 36);
define ("apisource_housetripcom", 37);
define ("apisource_nineflatscom", 38);
define ("apisource_hotelscombined", 39);
define ("apisource_homeawayical", 40);
define ("apisource_stayintown", 41);
define ("apisource_ota", 42);
define ("apisource_beds24agent", 999);
goodtimehomecm
Posts: 2
Joined: Wed Mar 23, 2016 2:47 pm

Perfect,

Thanks for the quick reply.
socialtravel
Posts: 1
Joined: Tue Oct 04, 2016 9:42 pm

Is there any way that beds24 send me the reservations that are made in the api without my having to make a request?
markkinchin
Site Admin
Posts: 935
Joined: Fri Mar 02, 2012 1:43 pm

socialtravel wrote:Is there any way that beds24 send me the reservations that are made in the api without my having to make a request?
You can setup a notify push to your server that will notify when a booking is made or modified.

See the menu Settings > Properties > Link > Notify URL
nordenau
Posts: 1
Joined: Wed Sep 07, 2016 11:30 am

Mark,

Can you give the latest list of apiSource's and the respective channels
markkinchin
Site Admin
Posts: 935
Joined: Fri Mar 02, 2012 1:43 pm

beds24 0
bookit 2
nzaa 3
lateroomscom 8
airbnbcom ical 10
flipkeycom 12
guestlinkcouk 13
expediacom 14
wimducom 15
ical import 16
agoda 17
travelocitycom 18
bookingcom 19
tripadvisorcom 20
icalimport1 21
budgetplacescom 22
tablethotelscom 23
hostelworldcom 24
visitscotlandcom 25
holidaylettingscouk 26
bedandbreakfasteu 27
icalimport2 28
icalimport3 29
homeawaycom 30
bedandbreakfastnl 31
atraveode 32
feratel 33
webroomsconz 34
lastminutecom 35
hotelbedscom 36
housetripcom 37
nineflatscom 38
hotelscombined 39
homeawayical 40
ota 42
trivagocom 43
hostelinternational 44
airbnbxml 46
bookingsuitecom 47
tomastravel 50
ostrovokru 51
Post Reply