apidocs
  1. Resource
apidocs
  • Auth
    • Ticket
      POST
  • Resource
    • CheckAvail
      POST
    • HotelDetail
      POST
    • HotelIdList
      POST
    • HotelList
      POST
  • Content
    • Region
      POST
    • Regions
      POST
  • Trade
    • Book
      POST
    • Cancel
      POST
    • QueryOrders
      POST
  1. Resource

CheckAvail

POST
/api/search/checkAvail
Check whether the room rate package is available, and get the latest price.

Request

Header Params

Body Params application/json

Example
{
    "Authorization": "string",
    "Currency": "string",
    "Device-Id": "string",
    "IPv4": "string",
    "IPv6": "string",
    "Language": "string",
    "Session-Id": "string",
    "Test": "string",
    "Timeout-Milliseconds": 0,
    "Trace-Id": "string",
    "UseOriginal-Currency": true,
    "User-Agent": "string",
    "hotelId": 0,
    "ratePkgId": 0,
    "roomId": 0
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.hotelbyte.online/api/search/checkAvail' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Authorization": "string",
    "Currency": "string",
    "Device-Id": "string",
    "IPv4": "string",
    "IPv6": "string",
    "Language": "string",
    "Session-Id": "string",
    "Test": "string",
    "Timeout-Milliseconds": 0,
    "Trace-Id": "string",
    "UseOriginal-Currency": true,
    "User-Agent": "string",
    "hotelId": 0,
    "ratePkgId": 0,
    "roomId": 0
}'

Responses

🟢200OK
application/json
Success
Headers

Body

Example
{
    "rate": {
        "amenities": [
            {}
        ],
        "available": true,
        "bedTypes": [
            {
                "desc": "string",
                "id": 0
            }
        ],
        "cancelPolicy": {
            "policies": [
                {
                    "cancelFee": {
                        "amount": 0,
                        "currency": "string"
                    },
                    "deductionTimeWindow": {
                        "end": "string",
                        "start": "string"
                    },
                    "type": "",
                    "typeName": "string"
                }
            ],
            "refundable": true,
            "refundableMode": "fullyRefundable"
        },
        "dailyRates": [
            {
                "date": 0,
                "rate": {
                    "grossRate": {
                        "amount": 0,
                        "currency": "string"
                    },
                    "netRate": {
                        "amount": 0,
                        "currency": "string"
                    },
                    "respectGrossRate": true
                }
            }
        ],
        "extendStay": {
            "max": 0,
            "min": 0
        },
        "inventory": 0,
        "meal": {},
        "occupancy": {
            "adultsCount": 0,
            "childAges": [
                0
            ]
        },
        "payment": [
            {}
        ],
        "rate": {
            "grossRate": {
                "amount": 0,
                "currency": "string"
            },
            "netRate": {
                "amount": 0,
                "currency": "string"
            },
            "respectGrossRate": true
        },
        "ratePkgId": "string",
        "ratePlanId": "string",
        "tax": {
            "total": {
                "amount": 0,
                "currency": "string"
            }
        },
        "timestamp": 0
    }
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🔴500Server Error
Modified at 2025-06-06 07:47:34
Previous
Ticket
Next
HotelDetail
Built with