Skip to main content
Skip table of contents

The Holibob API - Booking Questions

When answering Booking Questions via the booking GraphQL query (The Holibob API - Look to Book Flow | TheHolibobAPI-LooktoBookFlow-Input-answers-to-the-booking):

  1. All answer values must be sent as strings

  2. All answer values must pass schema validation defined in the table below

  3. To reset a value, you can pass null

DataType

Comments

DataFormat

Validation

Examples

TEXT

-

Minimum length 1

John Smith

TEXT

PHONE_NUMBER

Fully-qualified phone number (containing the area code and country code)

We use google-libphonenumber package for phone number validation. We expect E.164 format.

+12125551234

+442079460958

+61293744000

TEXT

EMAIL_ADDRESS

Fully qualified email addresses.

john.doe@example.com

support@company.co.uk

admin@subdomain.school.edu

TEXT

ADDRESS

Minimum length 1

LONG_TEXT

scheduled for deprecation for TEXT

-

Minimum length 1

INT

-

Correctly casts to an integer value, between JavaScript Number.MIN_SAFE_INTEGER and Number.MAX_SAFE_INTEGER

0

123

123456

DOUBLE

-

Correctly casts to a float value, between JavaScript Number.MIN_SAFE_INTEGER and Number.MAX_SAFE_INTEGER or null

0

0.0001

12.003

-0.0001

BOOLEAN

-

Correctly casts to a boolean value

true

false

DATE

-

Matches ISO 8601 standard (YYYY-MM-DD)

2023-01-20

TIME

-

Matches HH:MM:SS[.s+]format or null

00:00:00

09:52:31

23:59:59.9999999

DATE_AND_TIME

-

Matches ISO 8601 standard

2020-01-20T00:00:00Z

2020-01-20T00:00:00.123Z

2020-01-20T00:00:00.123456Z

CHECKBOX_TOGGLE

scheduled for deprecation for BOOLEAN

-

Correctly casts to a boolean value

true

false

ACCEPT

scheduled for deprecation for BOOLEAN

-

Correctly casts to a boolean value

true

false

FILE

Only for some INTERNAL products

portableDocument

OR

image

OR

image,portableDocument

Only accept “true”

true

OPTIONS

-

Correctly matches the value of one of the availableOptions items

GB

US

FR

TYPESCRIPT
//availableOptions
[
    {
        label: "United Kingdom",
        value: "GB",
    },
    { 
        label: "United States", 
        value: "US"
    },
    {
        label: "France",
        value: "FR",
    },
];
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.