API Accommodations
DEVELOPMENTS S.L.
I-RENT.NET ACCOMMODATION INFORMATION WEB SERVICE
TECHNICAL HELP MANUAL
CHANGE LOG
Version Date Notes
1.0.4 12/11/2011 Initial release.
1- URL OF THE I-RENT.NET ACCOMMODATION INFORMATION WEB SERVICE
http://data2.i-rent.net/service/service.asmx
2- DESCRIPTION OF THE FUNCTIONS PUBLISHED BY THE I-RENT.NET ACCOMMODATION INFORMATION WEB SERVICE.
2.a- Insert_Accommodation: Creates a new accommodation in the I-Rent.net system.
Accepts as parameter:
– a AgentCode string value.
– a Accommodation object, which contains all accommodation features as properties.
– a Floor objects array, which contain all floors features and a Room objects array, which contain all floor’s roms features as properties.
– a Description objects array, which contain accommodation descriptions in different languages.
– a Photo objects array, which contain images URL that will be copied to the I-Rent.net server.
– a SalePrice objects array, which contain different sale prices that apply on different intervals.
– a PurchasePrice objects array, which contain different purchase prices that apply on different intervals.
– a Discount objects array, which contain all applicable discounts features.
– a Surcharge objects array, which contain all applicable sucharges features.
– a Extra objects array, which contain all applicable extras (mandatory and optional) features.
Mandatory parameters:
AgentCode
Accommodation.Name
Accommodation.Type
Accommodation.Profile
Accommodation.People
Accommodation.Urbanization
Accommodation.Location
Accommodation.Province
Accommodation.TuristicArea
Accommodation.Country
Accommodation.Stars
Accommodation.Descriptions
Accommodation.Photos
Accommodation.SalePrices
2.b- Update_Accommodation: Updates accommodation information stored inthe I-Rent.net system.
Accepts as parameter:
– an AgentCode string value.
– a reference value for identifying the accommodation to update. It could be either AccommodationCode, AccmmodationId or InternalCode values.
– an Accommodation object, which contains all accommodation features as properties.
– a Floor objects array, which contain all floors features and a Room objects array, which contain all floor’s roms features as properties.
– a Description objects array, which contain accommodation descriptions in different languages.
– a Photo objects array, which contain images URL that will be copied to the I-Rent.net server.
– a SalePrice objects array, which contain different sale prices that apply on different intervals.
– a PurchasePrice objects array, which contain different purchase prices that apply on different intervals.
– a Discount objects array, which contain all applicable discounts features.
– a Surcharge objects array, which contain all applicable sucharges features.
– an Extra objects array, which contain all applicable extras (mandatory and optional) features.
Mandatory parameters:
AgentCode
AccommodationCode o AccommodationId o Accommodation.InternalCode
Accommodation.Name
Accommodation.Type
Accommodation.Profile
Accommodation.People
Accommodation.Urbanization
Accommodation.Location
Accommodation.Province
Accommodation.TuristicArea
Accommodation.Country
Accommodation.Stars
Accommodation.Descriptions
Accommodation.Photos
Accommodation.SalePrices
3- DESCRIPTION OF THE OBJECTS THAT THE FUNCTIONS OF THE I-RENT.NET ACCOMMODATION INFORMATION WEB SERVICE ACCEPT AND RETURN.
3.a- Result: Object returned by the published functions.
3.b- Accommodation: Object that is sent as parameter in published functions.
3.c- Floors: Arrangement of objects that are sent as parameters in published functions.
3.d- Descriptions: Arrangement of objects that are sent as parameters in published functions.
3.e- Photos: Arrangement of objects that are sent as parameters in published functions.
3.f- SalePrices: Arrangement of objects that are sent as parameters in published functions.
3.g- PurchasePrices: Arrangement of objects that are sent as parameters in published functions.
3.h- Discounts: Arrangement of objects that are sent as parameters in published functions.
3.i- Surcharges: Arrangement of objects that are sent as parameters in published functions.
3.j- Extras: Arrangement of objects that are sent as parameters in published functions.
4- CONSIDERATIONS TO TAKE INTO ACCOUNT
– The correct date parameters format is : YYYY-MM-DDTHH:MM:SS (Ej: 2010-12-31T00:00:00)
– When making requests from any SOAP client with the POST method, it has to meet strictly the definitions set out in:
http://data2.i-rent.net/service/service.asmx?op=Insert_Accommodation
http://data2.i-rent.net/service/service.asmx?op=Update_Accommodation
5- AGENT CODES FOR TESTING
Agent:
29B044E0-DE5B-4788-B73E-AF4E0379F8F6