This endpoint is used to find the revenue accounts of the hotel.

Request

GET https://app.hotelrunner.com/api/v1/apps/revenue_accounts

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/revenue_accounts?token=12345&hr_id=67890

The above request returns a JSON output like the following:

{
    "status": "success",
    "data": [
        {
            "id": 61,
            "name": "Extras",
            "type_code": "extras",
            "api_code": "HR:61",
            "type": "expense",
            "tax_amounts": [
                "0.18"
            ]
        },
        {
            "id": 62,
            "name": "F&B",
            "type_code": "f-b",
            "api_code": "HR:62",
            "type": "expense",
            "tax_amounts": [
                "0.08"
            ]
        },
        {
            "id": 63,
            "name": "Credit Card",
            "type_code": "other_payments",
            "api_code": "HR:63",
            "type": "payment",
            "tax_amounts": [
                "0.13"
            ]
        },
        {
            "id": 64,
            "name": "Cash",
            "type_code": "other_payments",
            "api_code": "HR:64",
            "type": "payment",
            "tax_amounts": [
                "0.13"
            ]
        }
    ],
    "total_count": 4
}

Output

Name Description
id ID of the revenue account
name Revenue acccount name
type_code Type of the revenue account
api_code Revenue account ID with the "HR:" prefix to use for postings
type Indicates if the revenue account is for "expense" or "payment"
tax_amounts Tax rate for the revenue account. There can be multiple tax amounts for a revenue account.