Workflow
- Call
GET /apiv1/bookingdetails/{productPricesDetailsId}to retrieve the booking requirements for the selected fareprice. - Read the optional field IDs returned for that fareprice.
- Send each answer in
POST /apiv1/validateCartunderredeemers[].products[].optionalFields[].
Required request shape
Each object inoptionalFields must include:
optionalFieldId: the field ID returned byGET /apiv1/bookingdetails/{productPricesDetailsId}fieldText: the user-entered value for that field
fieldText is the value property TDMS uses for custom booking fields. Do not send optionalFieldValue. TDMS ignores that key.
Notes
- Use the field IDs returned for the same fareprice and booking setup you are validating.
- Send one
optionalFieldsentry per answer. - If the fareprice does not return optional booking fields, you can omit
optionalFields.