apidocs
  1. Trade
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. Trade

Book

POST
/api/trade/book
Place an order.

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",
    "guests": [
        {
            "age": 0,
            "mobilePhone": "string",
            "name": "string",
            "nationalityCode": "string",
            "roomIndex": 0
        }
    ],
    "payment": {},
    "ratePkgId": "string"
}

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/trade/book' \
--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",
    "guests": [
        {
            "age": 0,
            "mobilePhone": "string",
            "name": "string",
            "nationalityCode": "string",
            "roomIndex": 0
        }
    ],
    "payment": {},
    "ratePkgId": "string"
}'

Responses

🟢200OK
application/json
Success
Headers

Body

Example
{
    "orderId": "string"
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🔴500Server Error
Modified at 2025-06-06 07:47:34
Previous
Regions
Next
Cancel
Built with