ac_get_accomm
Description
Returns a list of accommodation types and their IDs. Additional details for the accommodation types may also be requested, such as notes, max capacity and images..
Version
Available from version 5.5.0.
Access
Read-only, master access not required, available to all users.
Parameters
Number | Name | O/R | Version | Usage |
---|---|---|---|---|
1 | Auth | Required | 5.5.0+ | Authentication structure.* |
2 | Property | Required | 5.5.0+ | “Id” of the property to return accommodation for. Case sensitive. |
3 | Search | Optional | 5.5.0+ | Search for specific property names. This search may use * or % as wildcard characters. |
4 | Extra | Optional | 5.20.0+ | An array specifying extra information to return about each property: see table below. |
Array key | Structure key | Description |
---|---|---|
0 | note | If not empty add the note. |
1 | max_capacity | If not empty add the maximum room capacity. |
2 | max_adults | If not empty add the maximum adults per room. |
3 | max_child_age | If not empty add the maximum age for children. |
4 | room_capacity | If not empty add the standard room capacity. |
5 | images | If not empty add the accommodation type images. |
Example
Request
{ "method": "ac_get_accomm", "params": [ { "bridge_username":"username", "bridge_password":"password", "link_id":"4" }, "WB2", "*", { "note":"0", "max_capacity":"0", "max_adults":"0", "max_child_age":"0", "room_capacity":"0", "images":"0" } ], "id": 1 }
Response
{ "id": 1, "error": null, "result": [ { "id": "WB1", "name": "Luxury Suites" }, { "id": "WB3", "name": "Standard Suites" } ] }
Keep up to date with us
Menu
Visit our website
ResRequest Modules
- Business Intelligence
- Central Reservations
- Channel Management
- Customer Relationship Management
- Developer
- Email Series 2022
- Email Series 2023
- Financial Management
- Marketing tools
- Payment Gateways
- Point of sale
- Product
- Professional Services
- Property Management
- ResConnect
- ResInsite
- ResNova
- System Setup
- Technical Alerts
- Technical Tips
- Telephone Management
- Webinars Index