Endpoints for a booking website connected to MyRent: property content, calendar, prices, payments and reservations.
These endpoints connect a booking website to a MyRent account: property content, calendar and prices, price calculation, online payment and reservations.
Base URL
https://api.my-rent.net
Authentication
Send the keys you got from MyRent as HTTP headers. Which headers an endpoint needs is listed on its page:
| Endpoints | Headers |
|---|---|
Rents (/rents/...), Object and Booking endpoints under /user/..., Payment Gateway (/p/r) | user_guid, b2b_guid |
Calendar (/object_prices/get_calendar) | user_guid, token |
| Price seasonal, Send Email | user_guid, b2b_guid, token |
user_guid: key of the MyRent account.b2b_guid: your partner key. MyRent must enable it for the account.token: API token from API Token Generation. It is valid for 1 hour; cache it and renew it shortly before it expires (for example every 45 minutes).
Server side only
Call these endpoints from your web server. Never put
user_guid,b2b_guid, the token or the keys used to create it into browser JavaScript or a mobile app.
Typical booking flow
- Show properties: Web Details or Full Details.
- Show the calendar and prices: Calendar, Price seasonal, Price list.
- Calculate the price of the selected stay: Calculate Price.
- Take the payment: Payment Gateway.
- Save the reservation: Add, then Add items if needed.
- Record the payment: Add payment, optionally Issue invoice for payment.
- Send your own confirmation: Send Email.
- Keep your copy of prices up to date: Calendar Refresh every 15 minutes.
Dates use yyyy-MM-dd. Currency 2 is EUR, language 1 is English.
