Mandatory questions allow suppliers to request customer information. Experiences are not required to have mandatory questions. However, when mandatory questions are present, customers must provide answers to complete a booking.
Mandatory questions for experience
Error response
[- {
- "data_pattern": "string",
- "data_type": "DATE",
- "holder_category_id": null,
- "level": "BOOKING",
- "mandatory_question_id": "string",
- "option_id": null,
- "question": "string",
- "select": {
- "Raw key value1": "string",
- "Raw key value2": "string"
}
}
]
Mandatory question for experience
Error response
{- "data_pattern": "string",
- "data_type": "DATE",
- "holder_category_id": null,
- "level": "BOOKING",
- "mandatory_question_id": "string",
- "option_id": null,
- "question": "string",
- "select": {
- "Raw key value1": "string",
- "Raw key value2": "string"
}
}
{- "data_pattern": "string",
- "data_type": "DATE",
- "holder_category_id": null,
- "level": "BOOKING",
- "mandatory_question_id": "string",
- "option_id": null,
- "question": "string",
- "select": {
- "Raw key value1": "string",
- "Raw key value2": "string"
}
}
A mandatory question cannot be removed if it is part of a hold availability request.
Mandatory question removed successfully
Error response
{- "code": "400",
- "id": "3ecae132-a32d-41f9-8f7d-586f34cc29ce",
- "message": "Check the request for errors."
}
Mandatory question for experience
Error response
{- "data_pattern": "string",
- "data_type": "DATE",
- "holder_category_id": null,
- "level": "BOOKING",
- "mandatory_question_id": "string",
- "option_id": null,
- "question": "string",
- "select": {
- "Raw key value1": "string",
- "Raw key value2": "string"
}
}
data_pattern | string For unsupported data types, suppliers can provide a regular expression validation pattern. The | ||||||||||||||||
data_type required | string The type of data the question will collect.
| ||||||||||||||||
holder_category_id | null or string The holder category associated with the question. When | ||||||||||||||||
level required | string The level determines how to request the question: once per booking or once per person in a booking.
| ||||||||||||||||
mandatory_question_id required | string^(?!\-|\.|\_)[0-9a-z\-\.\_]{1,50}$ The mandatory question ID, assigned by the supplier. | ||||||||||||||||
option_id | null or string The option associated with the question. When | ||||||||||||||||
question required | string The human-friendly question to show customers. | ||||||||||||||||
object When the |
Mandatory question for experience
Error response
{- "data_pattern": "string",
- "data_type": "DATE",
- "holder_category_id": null,
- "level": "BOOKING",
- "mandatory_question_id": "string",
- "option_id": null,
- "question": "string",
- "select": {
- "Raw key value1": "string",
- "Raw key value2": "string"
}
}
{- "data_pattern": "string",
- "data_type": "DATE",
- "holder_category_id": null,
- "level": "BOOKING",
- "mandatory_question_id": "string",
- "option_id": null,
- "question": "string",
- "select": {
- "Raw key value1": "string",
- "Raw key value2": "string"
}
}