API References

Get Room Availability

GET https://api.aharooms.com/v1/rooms/availability

Get available rooms of hotel

Query Parameters

Name
Type
Description

hotelID

string

"8f243ff2-43cc-414a-b336-8500f9c7cb6e"

fromDate

string

"2006-01-02T15:04:05Z07:00"

toDate

string

"2006-01-02T15:04:05Z07:00"

Headers

Name
Type
Description

Authorization

string

Bearer ThisIsYourAPIKey

Content-Type

string

application/json

[
  {
    "data": [
      {
        "id": "string",
        "housekeepingStatus": "string",
        "housekeepingWarning": "string",
        "lockDoorRoomNo": "string",
        "refCode": "string",
        "roomType": {
          "CreatedAt": "string",
          "DeletedAt": "string",
          "ID": "string",
          "UpdatedAt": "string",
          "allowOverBooking": true,
          "cmsmaxSellUnits": 0,
          "cmsroomID": 0,
          "cmsweekendMaxSellUnits": 0,
          "color": {
            "CreatedAt": "string",
            "DeletedAt": "string",
            "ID": "string",
            "UpdatedAt": "string",
            "colorHex": "string",
            "name": "string"
          },
          "description": "string",
          "extranetRoomID": "string",
          "hourlySettings": {
            "CreatedAt": "string",
            "DeletedAt": "string",
            "ID": "string",
            "RoomType": {},
            "UpdatedAt": "string",
            "additionalHourPrices": "string",
            "currency": {
              "CreatedAt": "string",
              "DeletedAt": "string",
              "ID": "string",
              "UpdatedAt": "string",
              "hotelID": "string",
              "name": "string",
              "rate": {
                "CreatedAt": "string",
                "DeletedAt": "string",
                "ID": "string",
                "UpdatedAt": "string",
                "currencyID": "string",
                "rate": 0,
                "rootCurrency": {},
                "rootCurrencyID": "string",
                "status": "string"
              },
              "status": "string"
            },
            "dailyPrice": 0,
            "notes": "string",
            "price": 0,
            "roomTypeID": "string",
            "timePrecision": 0
          },
          "name": "string",
          "refCode": "string",
          "roomTypeRules": [
            {
              "CreatedAt": "string",
              "DeletedAt": "string",
              "ID": "string",
              "UpdatedAt": "string",
              "allowOverBooking": true,
              "cmsmaxSellUnits": 0,
              "roomTypeID": "string",
              "serviceDate": "string"
            }
          ],
          "status": "string",
          "weekendDates": "string"
        },
        "roomTypeID": "string",
        "status": "string",
        "title": "string"
      }
    ]
  }

Get List of Room

GET https://api.aharooms.com/v1/rooms

Headers

Name
Type
Description

Authorization

string

Bearer ThisIsYourAPIKey

Content-Type

string

application/json

Get List of Room Type

GET https://api.aharooms.com/v1/room-types

Headers

Name
Type
Description

Authorization

string

Bearer ThisIsYourAPIKey

Content-Type

string

application/json

Get List of Hotel

GET https://api.aharooms.com/v1/hotels

Get list of Aharooms's hotel

Headers

Name
Type
Description

Authorization

string

Bearer ThisIsYourAPIKey

Content-Type

string

application/json

Bookings API

Create a new booking

Description: Create a new booking

Endpoint: POST - https://aharooms.com/v1/developer/bookings

Headers:

  • Content-Type: application/json

  • Authorization: Bearer ThisIsYourAPIKey

Body: required

Response:

Cancel booking

PUT https://api.aharooms.com/v1/booking/:id/cancel

Path Parameters

Name
Type
Description

id

string

booking id

Headers

Name
Type
Description

Content-Type

string

application/json

Authorization

string

Bearer ThisIsYourAPIKey

Get booking history

GET https://api.aharooms.com/v1/bookings/history

Headers

Name
Type
Description

Authorization

string

Bearer ThisISYourAPIKey

Content-Type

string

application/json

Get booking transactions

GET https://api.aharooms.com/v1/bookings/transactions

Headers

Name
Type
Description

Authorization

string

Bearer ThisIsYourAPIKey

Content-Type

string

application/json

Promotion API

Get List of Promotion

GET https://api.aharooms.com/v1/promotions

Headers

Name
Type
Description

Authorization

string

Bearer ThisIsYourAPIKey

Content-Type

string

application/json

Apply Promotion Code

POST https://api.aharooms.com/v1/promotions/apply

Headers

Name
Type
Description

Authorization

string

Bearer ThisIsYourAPIKey

Content-Type

string

application/json

Last updated

Was this helpful?