Reservation add

Creates a reservation for a property assigned to your customer account and returns its id_hash.

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

Creates a reservation for a property assigned to your customer account. MyRent sends the new-reservation email in the background.

Authentication: send the token headers user_guid and token, plus your Customer API keys in the key and authorization headers. See Customer API - Getting started.

Save id_hash from the response. You need it to update or delete the reservation. Fields that are not sent use the property and account defaults (currency, check-in and check-out time, status).

Responses

StatusMeaning
200Reservation created.
403The property is not assigned to your customer account. Body: "Can't touch this!".
401Missing or wrong key / authorization headers. Body: "Sorry: headers are empty. You need keys: key & authorization" or " Keys are wrong ".
404Missing or invalid user_guid or token header. Empty body.
500The reservation was not created. error explains why, for example a missing date.
Path Params
string
required

MyRent property ID. The property must be assigned to your customer account.

Body Params
date
required

Arrival date, yyyy-MM-dd.

date
required

Departure date, yyyy-MM-dd. Must not be before from_date.

string

Check-in time, HH:mm. Default: property check-in time.

string

Check-out time, HH:mm. Default: property check-out time.

int32
Defaults to 0

Number of adults.

int32
Defaults to 0

Number of children.

int32
Defaults to 0

Number of young children.

int32
Defaults to 0

Number of infants.

int32
Defaults to 0

Number of pets.

double

Total reservation price.

string

MyRent currency ID. Default: account currency. See Currencies.

double

Exchange rate. Default: account rate for the currency.

date

Date by which the full price must be paid.

double

Advance payment amount.

date

Date by which the advance must be paid.

string

Currency of the advance. Default: currency_id.

string

MyRent payment method ID.

string

MyRent reservation status ID.

string

MyRent reservation source ID.

string

Guest name.

string

Guest phone.

string

Guest email.

string

MyRent country ID of the guest. See Countries.

string

Two-letter country code, used when contact_country_id is empty.

string

Guest city.

string

Guest postal code.

string

Guest address (field name is spelled adress).

string

Reservation note.

string

Short note.

string

Note for the agency.

string

Your own reservation ID.

string

External reference.

Headers
string
required

GUID of the MyRent account you work with.

string
required

API token from Auth API Generate token (valid for 1 hour).

string
required

Customer API key from MyRent.

Responses

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