How to connect to the MyRent Customer API: base URL, the four authentication headers and the recommended sync flow.
The Customer API lets a customer read the properties that a MyRent agency has assigned to it, keep prices and content in sync, and create, update and delete reservations.
Base URL
https://api.my-rent.net/customer/..., for example https://api.my-rent.net/customer/list.
Authentication
Every Customer API request needs four headers:
| Header | Value |
|---|---|
user_guid | GUID of the MyRent account. |
token | API token from Generate token, valid for 1 hour. |
key | Your Customer API key. |
authorization | Your Customer API GUID (without Bearer). |
A missing or invalid token returns 404 with an empty body. Missing or wrong key / authorization return 401. A property that is not assigned to you returns 403 ("Can't touch this!").
Recommended sync flow
| Step | Endpoint |
|---|---|
| Properties | List of properties, Property details |
| Price changes | List of properties - price changed, then Property prices |
| Content changes, once a day | List of properties - content changed, then Property details |
| Quote a stay | Fast price & availability |
| Reservations | Reservation add, Reservation update, Reservation delete |
Save the id_hash returned by Reservation add; it identifies the reservation in update and delete.
Dates use yyyy-MM-dd. See Getting started for formats and error codes.
