Skip to main content
GET
/
api
/
booking
/
products
/
{productId}
/
journey
/
validities
Retrieve validity dates incl. prices
curl --request GET \
  --url https://api.pricenow.dev/api/booking/products/{productId}/journey/validities \
  --header 'accept-language: <accept-language>' \
  --header 'pratiq-channel-uuid: <pratiq-channel-uuid>'
{
  "data": {
    "options": [
      {
        "value": {
          "from": "<string>",
          "to": "<string>"
        },
        "availableCapacity": {
          "kind": "range",
          "min": 123,
          "max": 123
        },
        "label": "<string>",
        "isAvailable": true,
        "price": {
          "minPrice": 123,
          "maxPrice": 123
        }
      }
    ],
    "hasCapacities": true,
    "availableDurations": [
      {
        "value": "<string>",
        "label": "<string>"
      }
    ],
    "selectionMode": "range"
  }
}

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

Query Parameters

from
string<date-time>
required
to
string<date-time>
required
formState
object

Response

200 - application/json

Successful response

data
object
required