ROOTREZ
  1. Book
ROOTREZ
  • App
    • Api health check
      GET
    • Check if the API is alive
      GET
    • Check current outbound public IP
      GET
  • Property
    • Get property details
      GET
    • Get property availability
      POST
    • List property reviews
      GET
  • Properties
    • Get static data for an Account
      GET
    • Get availability for an account
      POST
  • ParityCheck
    • Perform parity check with availability data for a accountId
      POST
    • Check rate parity for a provider
      POST
  • Account
    • PublisherController_getSettings
      GET
    • Get map pins for a Account
      GET
    • Get filters for a Account
      GET
    • Get themes for a Account
      GET
    • Get banners by account
      GET
    • Get landing page by account and slug
      GET
  • Public Account
    • PublicPublisherController_getFilters
      GET
    • PublicPublisherController_getWidget
      GET
  • Auth
    • Authenticate token and secret to get JWT
      POST
    • AuthController_checkJWT
      GET
    • AuthController_refresh
      POST
  • Discount
    • Get grouped discounts
    • Get all discounts
    • DiscountController_getViewDiscount
  • Addons
    • Get products for the authenticated account
    • Get product detail from cache
    • AddOnsController_createOrder
  • Cache
    • CacheController_cleanByPublisher
    • CacheController_refreshByPublisher
    • CacheController_cleanByProperty
    • CacheController_refreshByProperty
  • Book
    • Create new reservation
      POST
    • Preview reservation
      POST
  • Create a conversation collection
    POST
  • Create a conversation model
    POST
  • search conversation
    POST
  • get a conversation model
    GET
  • semantica search
    POST
  • create product
    POST
  1. Book

Create new reservation

POST
/api/account/v4.0/book/reservation
Creates a new hotel reservation with optional add-ons
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/account/v4.0/book/reservation' \
--header 'Content-Type: application/json' \
--data-raw '{
    "access_token": "string",
    "misc": {
        "referral": "PROMO2024"
    },
    "rooms": [
        {
            "adults": 0,
            "children": 0,
            "child_ages": "string"
        }
    ],
    "guest": {
        "email": "john@example.com",
        "first_name": "John",
        "last_name": "Doe",
        "phone": "+1234567890",
        "note": "string",
        "addresses": [
            {
                "type": "billing",
                "country": "US",
                "line_1": "123 Main St",
                "line_2": "Apt 4B",
                "city": "New York",
                "state": "NY",
                "postal_code": "10001"
            }
        ]
    },
    "payment": {
        "number": "4111111111111111",
        "cvv": "123",
        "month": 12,
        "year": 2025,
        "cardholder": "John Doe",
        "postal_code": "10001"
    },
    "checkin": "2024-12-01",
    "checkout": "2024-12-05",
    "property_id": 1234,
    "accommodation_id": "DBL",
    "rate_code": "BAR",
    "currency": "USD",
    "cart": {}
}'
Response Response Example
201 - Example 1
{}

Request

Body Params application/json

Examples

Responses

🟢201Created
application/json
Reservation successfully created
Body

🟠400Bad Request
🟠401Unauthorized
🔴500Server Error
Modified at 2025-05-22 15:45:10
Previous
CacheController_refreshByProperty
Next
Preview reservation
Built with