Web API - Guide

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:

EndpointsHeaders
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 Emailuser_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

  1. Show properties: Web Details or Full Details.
  2. Show the calendar and prices: Calendar, Price seasonal, Price list.
  3. Calculate the price of the selected stay: Calculate Price.
  4. Take the payment: Payment Gateway.
  5. Save the reservation: Add, then Add items if needed.
  6. Record the payment: Add payment, optionally Issue invoice for payment.
  7. Send your own confirmation: Send Email.
  8. 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.