Skip to main content
POST
/
api
/
booking
/
products
/
{productId}
/
journey
/
options
/
{formElementId}
Retrieve paginated form element options
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
  }
}

Headers

accept-language
enum<string>
required

Language of the response

Available options:
en,
de,
fr,
it
pratiq-channel-uuid
string
required

UUID of the sales channel

Path Parameters

productId
number
required
formElementId
string
required

Query Parameters

page
number
required
pageSize
number
required

Body

application/json
formState
object
items
object[]

Response

200 - application/json

Successful response

data
object
required