rentalsunited v1.0.43
Rentals United
Package for rentalsunited API
Basic usage:
// Import to your project
let RU = require('rentalsunited')
// Set credentials to your app
RU.setCredentials('email', 'password')
// Basic call to Rentals united
RU.getOwners().then(res => console.log(res.data))
.catch(err => console.log(err))
Insert a reservation:
// create a reservation object
let reservation = {
StayInfos: [
{
pid: '1790744',
fromDate: '2018-05-18',
toDate: '2018-05-20',
pax: '2',
RUPrice: '4063.11',
clientPrice: '4130.64',
alreadyPaid: '0'
}
],
name: 'John',
surName: 'Snow',
email: 'js@gmail.com',
phone: '960000000',
skypeId: '',
address: 'Street o programming well',
zipcode: '400',
cityId: '42'
}
// make a call
RU.bookProperty(reservation).then(res => console.log(res.data))
.catch(err => console.log(err))
Create seasons for a specific property:
// create seasons for a single property
RU.setSeason('125893', {
"DateFrom": "2018-04-26",
"DateTo": "2018-04-30",
"Price": "100",
"Extra": "120",
"EGPS": [
{
"ExtraGuests": "1",
"Price": "120"
}
]
})
Set calendar dates
// set dates
RU.setCalendar('0025625', [
{ DateFrom: '2018-05-01', DateTo: '2018-05-05', Value: true }
])
.then(result => console.log(result.data))
.catch(err => console.log(err))
Set min stay dates
// set dates
RU.setMinStayNights('0025625', [
{ DateFrom: '2018-07-04', DateTo: '2018-07-29', NumNights: '10' }
])
.then(result => console.log(result.data))
.catch(err => console.log(err))
* All methods should return an XML document
Available methods:
- setCredentials(email, password)
- RURequest()
- getPaymentMethods()
- getAgents()
- getLocations()
- getOwners()
- getOwnerDetails(ownerId)
- getProperties(ownerId)
- getProperty(propertyId)
- getPropertiesList(locCode)
- addProperty(property)
- getLocationDetails()
- getRoomAmenities()
- getAmenities()
- getPropertyTypes()
- getPropertyTypesOTA()
- getLocationCurrencies()
- getCalendar(pid, blocks)
- getRates(pid)
- getDiscounts(pid)
- getRealtimeRates(pid, fromDate, toDate)
- getMinstay(pid)
- bookProperty(reservation)
- cancelBooking(bookingId)
- getReservations(fromDate, toDate, locationID)
- getPropertyPrice(pid, fromDate, toDate)
- setCalendar(pid, dates)
- setLNMPutHandlerUrl(url)
- setSeason(pid, seasons)
- getPricesAndAvailability(pid, dateFrom, dateTo)
- setMinStayNights(pid, datesRange)
- getMinStayNights(pid)
- listLanguages()
- listAdditionFeesKinds()
- listAdditionFeesTypes()
- listAdditionFeesDiscriminators()
Rentals United documentation
http://rm.rentalsunited.com/api/RUSpecification.pdf
http://rm.rentalsunited.com/api/RUQuickStartGuide.pdf
Author: Paulo Santos
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago