Price period

Calculates the total price of a stay in a shared property, with availability and the extra items that apply.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Calculates the total price of a stay in one property, with availability and the extra items that are added automatically.

Authentication: send only the b2b_guid header with your partner GUID. user_guid and token are not used. See B2B API - Guide.

Always send date_from (arrival) and date_until (departure). Without them the server uses a range of about two years, which is not a useful stay.

The response has two lists:

  • price: one row with the stay price. object_free is Y when the property is free for the whole period. price_total = object_period_price + price_items and includes your partner markup. price_advance is the advance payment (advance_percent of the total).
  • items: extra items (fees, services, discounts) for this stay. mandatory and auto are Y / N.

Responses

StatusMeaning
200Stay price and extra items.
401The b2b_guid header is missing, unknown, or the partner account is not active. Plain-text body, e.g. "B2B not found".
403The property is not shared with your partner account. Body: "sorry: no access to this property".
Path Params
string
required

MyRent property ID. The property must be shared with your partner account.

Query Params
date
required

Arrival date, yyyy-MM-dd.

date
required

Departure date, yyyy-MM-dd.

int32
Defaults to 1

Number of adults.

int32
Defaults to 0

Number of children.

int32
Defaults to 0

Number of pets.

string
Defaults to -1

Price item (rate) ID. -1 is the base price of the property.

string
Defaults to 1

MyRent language ID for item names, e.g. 1 = English. See Languages.

Headers
string
required

Your partner GUID, issued by MyRent.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json