Request methods

All webservice requests are simple Http post requests with parameters. Below articles about request commands describe the post request parameters.

Please may refer to request structure article  and download Download Sample-Curl-Class.zip for more clear understanding before you start with this chapter.

 

In general most commands has new parameter named “updatedafter” which provides checkpoint, and let command return only the records had been modified after given time. “updatedafter” parameter has to be provides in “d/m/Y H:i:s” format. For ex. “31/05/2017 15:02:01”.

We tried to choose field names in data results specially to be easily understandable as much as possible. By the time there can be changes about these fields and methods.However most important parameters are explaned in this documentation.

 

hotelextralist

Retrieves other services and charges for the given hotel by serviceid.

Search parameters

serviceid             Unique hotel ID

Returns on success: Array of Objects

“extraid”ID of extra
“ownerid”ID of owner (In this query the hotel)
“appliesto”0 – ALL / 1 – Package / 2 – Ticket Only / 3 – Hotel only
“incadult”Adults (Bed and extrabeds) are applies
“incchild”Children 2. years and bigger applies
“incinfant”Children smaller then 2 years applies (up to 1.99 years)
“calculatebyduration”0 – Oncee / 1 – Amount * duration of nights
“validfrom”if null ignore, if exists valid from
“validuntil”if null ignore, if defined valid until
“optional”0 – Obligatory / 1 – By request
“asales”Amount for adults
“csales”Amount for children
“isales”Amount for infants
“minage”if applies to children the minimum age
“maxage”if applies to children the maximum age
“smoneyid”Currency
“marketname”Marketname
“method”0 – Cash / 1 – Applies by the percentage to accomodation price of passenger (acc. price/Amount%)
“chbegin”Pair with “chend”. if null ignore // if defined checkin date between
“chend”
“accbegin”Pair with “accend”. if null ignore // if defined any of the accomodation date between
“accend”
“updated”Datetime record has been updated

tour_servicetextpricelist

Retrieves the Text/HTML pricelist related to a tour program for accommodation facility.

Request parameters

serviceidUnique system ID (obligatory)
packageidUnique system ID

servicetourprogramsweb

Returns the list of available uploaded tour programs with download url for the hotel.

serviceidUnique system ID

leisureupdatelistwithdeparture

Provides list of the actual status leisure packages and departures.

updatedafterformat such as “30/09/2024 1435”

updated after parameter provides a checkpoint for the changes, so you may not have to download all prices and status each time.


packagepricelist

Bulk json datalist of hotel package prices from all programs.

serviceidHotel system ID

Returns on success

Array of Objects

id153 characters long string seperated by “|” character. 1stpriceID – 2nd extrabedpriceID – 3rd childpriceID
packagenameName of package
packageidID of tour package
bednumber of beds
extnumber of extra beds
chdnumber of children
infnumber of of infants
minpaymentminimum prepayment required (%)
expiresexpire date
bedpricesfinalPrice for adults paying bed
extpricesfinalPrice for adult paying extra bed
prices[x]final“X” can be 1-4. Price for children if exists
min[x]-max[x]Range for the age of children by order
roomidUnique ID for room type
roomnameRoom name
mealidUnique ID for meal type
mealnameMeal name
updatedlast updated date
packagegroupidUnique ID of package group definition
packagegroupnamePackage group name
departureidUnique id of departure
departuradateTour start date
checkinDate of entering hotel
checkoutDate of leaving hotel
returndateStart of the return travel
hoteldurationNumber of nights in program
tourdurationBasic definition for number of nights between departure date and return date
roompriorityOrder priority of room

exchangelist

Returns the current exchange rates in system.
Currency and sales rate are the returning values.


hoteldefinitionlist

Returns hotel additional definitions.

Search parameters

serviceid             Unique hotel ID
definitiontypeidMain categoryid (HFA,RAC,SFA,ENT,CFA,BAC,MEL,OPE,CAT)

Returns on success: Array of Objects

idUnique ID of definition
nameName of definition
varitemThis definition is part of hotel
definitiontypeidMain category of definition

hoteldiscountlist

Retrieves the periodic discounts as early booking and special offers. This query returns only currently valid discounts.

Search parameters

serviceid             Unique hotel ID

Returns on success: Array of Objects

idUnique ID of the record
marketnameMarketname which discount belongs to
resbeginBegin date of reservation filter (default null)
resendEnd date of reservation filter (default null)
accbeginAccommodation filter begin (default null)
accendAccommodation filter end date (default null)
chbeginCheck filter start date (default null)
chendCheck/In filter end date (default null)
preventcumulativeIf it is 1 or true than this discount available only alone.
ActiontypeBy contract or it is a special offer. (SPO has priority)
Salestype0 – Percent / 1 – Cash
SalesamountAmount of discount by given type
salesminpaymentPercentage of the minimum payment
mindateDuration filter minimum date (default 0)
maxdateDuration filter maximum date (default 365)
servicenameName of the hotel
roomnameRoomname filter (default empty means all)

servicepricelistdata

Retrieves the accommodation contract prices currently valid for a hotel.

Request parameters

serviceidUnique system ID (id from “servicelist” query – obligatory)

Returns on success

Array of Objects

servicenameHotel/Facility name
citynameName of city hotel located
countrynameName of country hotel located
regionnameName of region hotel located
servicetypenameCategory of hotel
generaltypenameClassification of hotel
serviceidUnique system ID for hotel
marketidUnique market ID for prices
roomidUnique room type ID
roomnameType of room
mealidUnique meal type ID
mealnameName of meal service
periodidUnique ID for period
bdatePeriod start date
edatePeriod end date
checkin0 / 1 if period if C/IN based
mindateMinimum duration of accommodation
maxdateMaximum duration of accommodation
type0 / 1 If period is an SPO
validuntilPrices valid until – null if not applied
validafterPrices valid after – null if not applied
releasebeforeDuration before release – null if not applied
moneyidCurrecy of prices
headerConstructed label description for the price (such as 2 PAX + 1 EXT and similar)
childsignConstructed label for included children
roompriceTotal room price by the capacity except infants
bedNumber of beds
extNumber of extra beds
chdNumber of children (max 4)
infNumber of infants allowed
chd1age1st children age min-max
chd2age2nd children age min-max
chd3age3rd children age min-max
chd4age4th children age min-max
bedpricePrice for each bed
extpricePrice for each extra bed
chd1pricePrice for 1st child
chd2pricePrice for 2nd child
chd3pricePrice for 3rd child
chd4pricePrice for 4th child
infpricePrice for each infant (Generally allowed only 1)

textlist

Retrieves the text information about an item in system.

Request parameters

idUnique system ID
owneridID of the text collection owner. (obligatory)

Returns on success:

Array of Objects

idUnique system ID
grouppriorityGroup priority order
groupnameMain group label
subheaderText sub header
htmlHtml content

filelist

Retrieves the list of files/documents with URL addresses for given ownerid parameter. This function documents such as factsheets.

Request parameters

idUnique system ID
owneridID of the file collection owner. (obligatory)

Returns on success:

Array of Objects

idUnique system ID
sizeSize of file in bytes
nameVisual label name
name originalOriginal name of file uploaded
urlUrl of file for download

imagelist

Retrieves the list of images with URL address for given ownerid (required) parameter.

Request parameters

idUnique system ID
owneridID of the image collection owner. (obligatory)

Returns on success:

Array of Objects

idUnique system ID
urlURL of image for download
priorityPriority order of image ascending.

servicelist

Retrieves the list of hotels in system with all information. If you are using this query as a checklist for prices you may consider to send a request with packageupdatelog or hotelupdatelog parameter which add fields with DateTime marker when last time prices have been updated to avoid unnecessary imports.

Request parameters

idUnique system ID
cityidCity system ID
citynameCountry system ID
countryidCountry system ID
nameHotel name
namelikeHotel name like
packagepricelastupdatedAdds a datetime field named as “packageupdated” which shows the last time when package prices are updated.
priceupdatedafterAdds a datetime field named as “hotelupdated” which shows the last time when accommodation prices are updated.

Returns on success:

Array of Objects

idUnique system ID
nameName of Hotel
servicetypeidUnique system ID of hotel category definition
servicetypenameHotel category name such as 3*,4*,5* etc.
generaltypeidUnique system ID of hotel classification
generaltypenameHotel classification such as Hotel, Resort, Resort & Spa etc.
cityidCity system ID
citynameName of city
countryidCountry system ID
countrynameName of country
regionidUnique system ID for disrict
regionnameDistrict name
mapxGoogle map latitude
mapyGoogle map attitude
youtubeLink for Youtube video
talocationidTrip advisor object ID
wpstatusShows hotel is currency active or not. (integer 0/1)

regionlist

Retrieves the list of districts in cities

Request parameters

id                           Unique system ID
cityid    Country system ID
cityname            Country system ID
countryid            Country system ID
name                   City name
namelike             City name like

Returns on success

Array of Objects

idUnique system ID
nameName of city
cityidCity system ID
citynameName of the city
countryidCountry system ID
countrynameName of the country
mapxGoogle map latitude
mapyGoogle map attitude
talocationidTrip advisor location ID

citylist

Retrieves the list of cities in system.

Request parameters

idUnique system ID
countryidCountry system ID
nameCity name
namelikeCity name like

Returns on success

Array of Objects

idUnique system ID
nameName of city
countryidCountry system ID
countrynameName of the country
mapxGoogle map latitude
mapyGoogle map attitude
talocationidTrip advisor location ID

countrylist

Retrieves the list of countries in system.

Returns on success: Array of Objects

idUnique system ID
nameName of country
mapxGoogle map latitude
mapyGoogle map attitude
talocationidTripadvisor location ID

Request  parameters

idUnique system ID
nameCountry name
namelikeCountry name like

userdata

This command retrieves the current user information unless the credentials are correctly supplied. Generally, user may use this command as a login at startup and retrieve session information to use in further requests. “userdata” is a special command which uses only constant system parameters.

Returns on success:

Object

idUnique userid
clientidUnique clientid (Sub-agentID)
nameName
surnameSurname
emailUsers notification email address.
accounttypeType of account E – Employee / F – Firma / C – Client
debitcredit0 – Debtor / 1 – Creditor
marketidUser’s specified marketid.
remoteipRequest IP address.
sessionidUnique sessionID for the connection