Connect one MyRent account to your website or system: properties, prices, reservations, guests, invoices and POS items.
The MyRent User API connects one MyRent account to your own website, channel manager, POS or other system. Use it to read properties, prices and availability, and to create and manage reservations, guests and items.
Base URL
https://api.my-rent.net
Authentication
Send the keys you got from MyRent as HTTP headers on every request:
| Header | Used by | Value |
|---|---|---|
user_guid | all endpoints | Key of the MyRent account. |
b2b_guid | most endpoints | Your partner key. MyRent must enable your partner key for the account. |
token | Messages and Inquiry endpoints | API token from API Token Generation. Valid for 1 hour. |
Each endpoint page lists the headers it needs. The POS endpoints need only user_guid.
If you do not have the keys, ask MyRent support.
Keep the keys secret
user_guid,b2b_guidand the token give access to the account data. Use them only on your server, never in browser or mobile app code, and never share them in e-mails or tickets.
Conventions
- Dates use
yyyy-MM-dd, timesHH:mm. - IDs are MyRent IDs (property =
object_id, reservation =rent_id). - Flags use
Y/N. - Most endpoints accept both
GETandPOST. JSON bodies are sent withPOST. - Common IDs: currency
2= EUR, language1= English, country99= Croatia.
Errors
| Code | Meaning |
|---|---|
| 401 | Missing or wrong user_guid / b2b_guid, or your partner key is not enabled for the account. The body is a short text, for example Sorry: headers are empty. |
| 404 | On endpoints that need a token: missing or invalid user_guid / token. No body. |
| 500 | Invalid data or no access to the property. The body holds the message. |
