curl --request POST \
--url https://api.pricenow.dev/api/booking/products/{productId}/journey/options/{formElementId} \
--header 'Content-Type: application/json' \
--header 'accept-language: <accept-language>' \
--header 'pratiq-channel-uuid: <pratiq-channel-uuid>' \
--data '
{
"formState": {
"attributes": {},
"validity": {
"from": "<string>",
"to": "<string>"
},
"allocation": {}
},
"items": [
{
"id": 123,
"productVariantId": 123,
"personId": 123,
"validity": {
"from": "<string>",
"to": "<string>"
},
"parentItemId": 123,
"originatedItemId": 123
}
]
}
'{
"data": {
"options": [
{
"value": {
"from": "<string>",
"to": "<string>"
},
"availableCapacity": {
"kind": "range",
"min": 123,
"max": 123
},
"label": "<string>",
"isAvailable": true
}
],
"pagination": {
"page": 123,
"pageSize": 123,
"totalCount": 123
},
"kind": "validities",
"hasCapacities": true
}
}For form elements in the layout with hasPaginatedOptions=true, paginated options can be retrieved from this endpoint
curl --request POST \
--url https://api.pricenow.dev/api/booking/products/{productId}/journey/options/{formElementId} \
--header 'Content-Type: application/json' \
--header 'accept-language: <accept-language>' \
--header 'pratiq-channel-uuid: <pratiq-channel-uuid>' \
--data '
{
"formState": {
"attributes": {},
"validity": {
"from": "<string>",
"to": "<string>"
},
"allocation": {}
},
"items": [
{
"id": 123,
"productVariantId": 123,
"personId": 123,
"validity": {
"from": "<string>",
"to": "<string>"
},
"parentItemId": 123,
"originatedItemId": 123
}
]
}
'{
"data": {
"options": [
{
"value": {
"from": "<string>",
"to": "<string>"
},
"availableCapacity": {
"kind": "range",
"min": 123,
"max": 123
},
"label": "<string>",
"isAvailable": true
}
],
"pagination": {
"page": 123,
"pageSize": 123,
"totalCount": 123
},
"kind": "validities",
"hasCapacities": true
}
}Language of the response
en, de, fr, it UUID of the sales channel
Successful response
Show child attributes