post
https://api.my-rent.net/b2b_partner/inquery_add
Sends a guest inquiry to a connected MyRent account using only your partner key (b2b_guid).
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Sends an inquiry (request for a stay) to a MyRent account connected to your partner account, optionally with the requested stay. The agency and the guest are notified by email.
Authentication: send only the b2b_guid header with your partner GUID. user_guid and token are not used. See B2B API - Guide.
The body has two objects: inqury (contact and message, required) and rent (requested stay, optional). Note the spelling inqury. inqury.user_id must be an account from User list and inqury.b2b_id must be your partner ID. contact_country_id is ignored; the guest country is taken from the phone prefix.
| 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. |
Responses
| Status | Meaning |
|---|---|
200 | Inquiry saved. |
401 | The b2b_guid header is missing or the partner account is not active. |
403 | The account in inqury.user_id is not connected to your partner account. |
500 | user_id / b2b_id missing, wrong b2b_id, or the inquiry could not be saved. The body is the error text. |
