Retrieve Hotel Expenses

This API provides you with detailed information on all expenses for a property. The API can return data in CSV formats. The web service responds to HTTP POST requests.

End Point URL

Header

Content-Type: application/json

Parameter

NameData TypeDescriptionExample
HotelCode *INT(11)Unique Hotel code XXXX
AuthCode *VARCHAR(300)Unique Authentication code XXXXXXXXXXXXXXXXX
FromDate *DateDate From2020-07-01
ToDate *DateDate To2020-07-10

Request 

{
        
        "authcode": "xxxxxxxxxxxx",
        "hotel_code":"xxxx",
        "fromdate": "2020-02-01",
        "todate": "2020-03-01"
}

Response

NameData TypeDescription Example
Hotel Name StringName of HotelHotel Name
Hotel Code IntegerUnique Hotel code xxxx
Voucher Date DateDate of Voucher 2020-05-02
Voucher No IntegerVoucher number1
Contact Info StringContact information Michele B. Wiese
Expense Made To StringExpense made to GUEST
Paid Out String Paid out for Laundry Bill
Paid Out Charges DecimalPaid Out Charges amount100
Paid Out Currency StringCurrency of Paid out $
Payment Mode String Mode of paymentCash
Payment Charges Decimal Payment Charges 10
Payment Currency StringCurrency of Payment $

Success

"HotelName","HotelCode","VoucherDate","VoucherNo","ContactInfo","ExpenseMadeTo","PaidOut","PaidOutCharges","PaidOutCurrency","PaymentMode","PaymentCharges","PaymentCurrency",
"Hotel","xxxx","2020-03-18","3","Mr. Michele B. Wiese","GUEST","Laundry Bill","680","$","Cash,Cash,Cash","-680","$",

Error Codes

Property Deactivated: This property has been deactivated
OpenAPI Record invalid: Unauthorized Request. Please check hotel code and authentication code
OpenAPI Deactivated: Auth Code is inactive.
OpenAPI Request: Property is not authorized to access this api.

Click here to Register