B2B API - Guide

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

  1. Contact MyRent to register as a partner. You receive your partner key, the b2b_guid.
  2. 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.
  3. To create reservations, MyRent sets up a reservation source for your partner account in each connected agency. Send its ID as rent_source_id when you add a reservation.

Authentication

Endpoints under /b2b_partner/... need only one header:

HeaderValue
b2b_guidYour 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_guid or tokens in browser JavaScript, mobile apps, public repositories or logs.

Recommended sync flow

StepEndpointHow often
Connected agenciesUser listWhen you add a new agency
PropertiesProperties list, Property detailsOnce, then on content changes
Price and availability changesChange - PriceEvery 5 minutes
Content changesChange - ContentOnce a day, between 21:00 and 07:00
Daily pricesPrices listFor each property returned by Change - Price
Booked daysDays takenFor each property returned by Change - Price
Stay price before bookingPrice periodBefore each booking
ReservationsAdd, Details, Save, DeleteOn demand

Formats

  • Dates: yyyy-MM-dd, for example 2026-12-01. Times: HH:mm.
  • Date-times in requests and responses are server local time (Europe/Zagreb), for example 2026-11-23 14:30:00 or 2026-11-23T14:30:00.
  • Y / N is 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

StatusMeaning
200Success.
401Missing or wrong b2b_guid, or the partner account is not active.
403The property or reservation is not shared with your partner account.
404Reservation not found.
500The 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".