This endpoint is used to find the sales departments of the hotel.
Request
GET https://app.hotelrunner.com/api/v1/apps/sales_departments
Query Parameters
| Key | Description |
|---|---|
| TOKEN | Token generated for this integration on integration setup page |
| HR ID | Hotel ID provided on integration setup page |
Example: GET https://app.hotelrunner.com/api/v1/apps/sales_departments?token=12345&hr_id=67890
The above request returns a JSON output like the following:
{
"status": "success",
"data": [
{
"id": 36,
"name": "Extras",
"type_code": "extras",
"api_code": "HR:36",
"type": "expense"
},
{
"id": 37,
"name": "F&B",
"type_code": "f-b",
"api_code": "HR:37",
"type": "expense"
},
{
"id": 38,
"name": "Other",
"type_code": "other",
"api_code": "HR:38",
"type": "expense"
},
{
"id": 39,
"name": "Restaurant Payment - Credit Card",
"type_code": "other_payments",
"api_code": "HR:39",
"type": "payment"
},
{
"id": 40,
"name": "Restaurant Payment - Cash",
"type_code": "other_payments",
"api_code": "HR:40",
"type": "payment"
}
],
"total_count": 5
}
Output
| Name | Description |
|---|---|
| id | ID of the sales department |
| name | Sales department name |
| type_code | Type of the sales department |
| api_code | Sales department ID with the "HR:" prefix to use for postings |
| type | Indicates if the sales department is for "expense" or "payment" |