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 'pratiq-client-id: <pratiq-client-id>' \
  --data '
{
  "items": [
    {
      "id": 123,
      "validity": {
        "from": "<string>",
        "to": "<string>"
      },
      "personId": 123,
      "productVariantId": 123,
      "parentItemId": 123,
      "originatedItemId": 123
    }
  ],
  "formState": {
    "attributes": {},
    "validity": {
      "from": "<string>",
      "to": "<string>"
    },
    "allocation": {}
  }
}
'
{
  "data": {
    "options": [
      {
        "value": {
          "from": "<string>",
          "to": "<string>"
        },
        "selectionMode": "single",
        "availableCapacity": "<any>",
        "label": "<string>",
        "isAvailable": true
      }
    ],
    "pagination": {
      "page": 123,
      "pageSize": 123,
      "totalCount": 123
    },
    "kind": "validities",
    "hasCapacities": true
  }
}

Headers

pratiq-client-id
required

Global Webshop Client Id

pratiq-channel-uuid
string

UUID of the sales channel

Path Parameters

productId
number
required
formElementId
string
required

Query Parameters

page
number
required
pageSize
number
required

Body

application/json
items
object[]
formState
object

Response

200 - application/json

Successful response

data
object
required