How to connect as a MyRent B2B partner: base URL, the b2b_guid header, the recommended sync flow, formats and errors.
The B2B API lets sales partners (travel agencies, portals, channels) read the properties that MyRent agencies share with them, keep prices and availability in sync, and create, change and cancel reservations.
Base URL
All endpoints in this section use https://api.my-rent.net, for example https://api.my-rent.net/b2b_partner/object_list. Use HTTPS only.
Getting access
- Contact MyRent to register as a partner. You receive your partner key, the
b2b_guid. - Each MyRent agency (account) decides which of its properties it shares with you. Shared accounts appear in User list and their properties in Properties list.
- To create reservations, MyRent sets up a reservation source for your partner account in each connected agency. Send its ID as
rent_source_idwhen you add a reservation.
Authentication
Endpoints under /b2b_partner/... need only one header:
| Header | Value |
|---|---|
b2b_guid | Your partner GUID. |
The Messages endpoints work on one agency account and need the account headers user_guid, b2b_guid and token (see Getting started).
Keep your keys private
Call the API from your server only. Never put
b2b_guid,user_guidor tokens in browser JavaScript, mobile apps, public repositories or logs.
Recommended sync flow
| Step | Endpoint | How often |
|---|---|---|
| Connected agencies | User list | When you add a new agency |
| Properties | Properties list, Property details | Once, then on content changes |
| Price and availability changes | Change - Price | Every 5 minutes |
| Content changes | Change - Content | Once a day, between 21:00 and 07:00 |
| Daily prices | Prices list | For each property returned by Change - Price |
| Booked days | Days taken | For each property returned by Change - Price |
| Stay price before booking | Price period | Before each booking |
| Reservations | Add, Details, Save, Delete | On demand |
Formats
- Dates:
yyyy-MM-dd, for example2026-12-01. Times:HH:mm. - Date-times in requests and responses are server local time (Europe/Zagreb), for example
2026-11-23 14:30:00or2026-11-23T14:30:00. Y/Nis used for yes/no flags.- IDs (
user_id,object_id/ property ID,currency_id,language_id,contact_country_id) are MyRent IDs. See Countries, Currencies and Languages. - Requests with a body send JSON with
Content-Type: application/json.
Errors
| Status | Meaning |
|---|---|
200 | Success. |
401 | Missing or wrong b2b_guid, or the partner account is not active. |
403 | The property or reservation is not shared with your partner account. |
404 | Reservation not found. |
500 | The request could not be processed; the body contains the error text. |
Error bodies are short JSON strings, for example "sorry: no access to this property".
