ac_get_extra
Description
Returns a list of extra detail structures containing “id”, ”desc”, ”cat_desc”, ”type”, ”note”, ”memo”, “cost”, ”currency” and “media”. Currency will be blank in the case of a non-chargeable extra.
Access
Read-only, master access not required, available to internal users only. For version 8.2.0 + this is available to agent users as well.
Parameters
Number | Name | O/R | Version | Usage |
---|---|---|---|---|
1 | Auth | Required | Authentication structure.* | |
2 | Search | Optional | Allows a search on name. May use * or % as wildcard characters. | |
3 | Categories | Optional | For the array of categories – see the table below. | |
4 | Types | Optional | For the array of types – see the table below. | |
5 | Properties | Optional | For the array of properties – see the table below. | |
6 | Agent ID | Optional | 8.2.0 + | “Id” of specific agent to lookup. Internal users may use the code “linked” to specify that the linked agent should be used. Case sensitive. |
*See call structure explanation.
3. Array of categories:
Array key | Description |
---|---|
0 | As returned by ac_get_extra_category. |
4. Array of types:
Array key | Description |
---|---|
0 | 0=general, 1=activity, 2=travel, 3=accommodation |
5. Array of properties:
Array key | Description |
---|---|
0 | Property ID |
6. An agent Id
Array key | Description |
---|---|
0 | Agent ID |
Example
Request
{ "method": "ac_get_extra", "params": [ { "bridge_username":"username", "bridge_password":"password", "link_id":"4" }, "*", [ 1 ] ], "id": 1 }
Response
{ "id": 1, "error": null, "result": [ { "id": "WB1", "desc": "Air Kenya - Wilson to Mara", "cat_desc": "Travel Arrival", "type": "2", "note": "", "memo": "", "cost": "100.00", "currency": "USD", "discount": "0.00", "comm_rec": "10.00", "comm_pay": "0.00", "note": "", "memo": "Charge is per person per ticket.", "media": { "filename": "Extra Image", "extension": "png", "filedata": "xxxxx" } }, { "id": "WB8", "desc": "SAA - ORT to JKIA", "cat_desc": "Travel Arrival", "type": "2", "note": "", "memo": "", "cost": "450.00", "currency": "USD", "discount": "0.00", "comm_rec": "10.00", "comm_pay": "0.00", "note": "", "memo": "Charge is per person per ticket.", "media": { "filename": "Extra Image 2", "extension": "png", "filedata": "xxxxx" } }, { "id": "WB9", "desc": "SAA - JKIA to ORT", "cat_desc": "Travel Arrival", "type": "2", "note": "", "memo": "", "cost": "200.00", "currency": "USD", "discount": "0.00", "comm_rec": "10.00", "comm_pay": "0.00", "note": "", "memo": "Charge is per person per ticket.", "media": { "filename": "Extra Image 3", "extension": "png", "filedata": "xxxxx" } }, { "id": "WB71", "desc": "Safarilink - Wilson to Mara", "cat_desc": "Travel Arrival", "type": "2", "note": "", "memo": "", "cost": "100.00", "currency": "USD", "discount": "0.00", "comm_rec": "10.00", "comm_pay": "0.00", "note": "", "memo": "Charge is per person per ticket.", "media": { "filename": "Extra Image 4", "extension": "png", "filedata": "xxxxx" } } ] }
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