post
https://api.my-rent.net/b2b/inquery_add
Saves a guest inquiry (booking request) for a MyRent account, optionally with the requested stay.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Saves an inquiry (booking request) from a guest for a MyRent account, optionally with the requested stay. The agency and the guest are notified by email.
Authentication: send the user_guid, b2b_guid and token headers. The account must have your partner integration enabled. See Getting started.
The body has two objects: inqury (contact and message, required) and rent (requested stay, optional). Note the spelling inqury. inqury.user_id and inqury.b2b_id must match the accounts of the user_guid and b2b_guid headers.
| Field | Required | Description |
|---|---|---|
inqury.user_id | yes | MyRent account that receives the inquiry. |
inqury.b2b_id | yes | Your partner ID. |
inqury.contact_tel | yes | Guest phone with country code. Spaces, dashes and brackets are removed; 00 becomes +. The guest country is taken from the phone prefix. |
inqury.contact_name | Guest name. | |
inqury.contact_email | Guest email. | |
inqury.type | Inquiry channel: web_user, wp2, blp, email, tel, spv, wbc, gbe. | |
inqury.subject | Subject. | |
inqury.message | Guest message. HTML is removed. | |
inqury.object_id | Property ID. rent.object_id is used instead when rent is sent. | |
rent.object_id | Property ID of the requested stay. | |
rent.date_from, rent.date_until | Arrival and departure, yyyy-MM-dd. | |
rent.guests | Number of guests. Default 0. | |
rent.price | Offered price. | |
rent.currency_id | MyRent currency ID. Default 2 (EUR). | |
rent.note | Note. |
Partners that use only b2b_guid send the same body to Add (partner key only).
Responses
| Status | Meaning |
|---|---|
200 | Inquiry saved. |
204 | Empty request body. |
401 | Missing or wrong user_guid / b2b_guid, or the account has not enabled your partner integration. |
404 | Missing or invalid token (empty body). |
500 | user_id / b2b_id missing or not matching the headers, or the inquiry could not be saved. The body is the error text. |
