Skip to main content
POST
/
api
/
booking
/
products
/
{productId}
/
journey
/
unified-view
/
items
Retrieve Unified Items View
curl --request POST \
  --url https://api.pricenow.dev/api/booking/products/{productId}/journey/unified-view/items \
  --header 'Content-Type: application/json' \
  --header 'accept-language: <accept-language>' \
  --header 'pratiq-channel-uuid: <pratiq-channel-uuid>' \
  --data '
{
  "items": [
    {
      "id": 123,
      "productVariantId": 123,
      "personId": 123,
      "validity": {
        "from": "<string>",
        "to": "<string>"
      },
      "parentItemId": 123,
      "originatedItemId": 123
    }
  ]
}
'
{
  "data": {
    "title": "<string>",
    "description": [
      {
        "children": [
          {
            "_type": "<string>",
            "_key": "<string>"
          }
        ],
        "markDefs": [
          {
            "_type": "<string>",
            "_key": "<string>"
          }
        ],
        "style": "<string>",
        "listItem": "<string>",
        "level": 123
      }
    ],
    "media": [
      {
        "kind": "image",
        "url": "<string>",
        "alt": "<string>"
      }
    ],
    "currency": "<string>",
    "banner": {
      "text": "<string>",
      "color": "<string>",
      "icon": "<string>",
      "cta": {
        "title": "<string>",
        "color": "default",
        "variant": "link",
        "product": {
          "slug": "<string>"
        },
        "link": "<string>",
        "page": {
          "slug": "<string>"
        },
        "newTab": true
      }
    },
    "items": [
      {
        "id": 123,
        "productId": 123,
        "title": "<string>",
        "subtitle": "<string>",
        "description": [
          {
            "children": [
              {
                "_type": "<string>",
                "_key": "<string>"
              }
            ],
            "markDefs": [
              {
                "_type": "<string>",
                "_key": "<string>"
              }
            ],
            "style": "<string>",
            "listItem": "<string>",
            "level": 123
          }
        ],
        "shortDescription": "<string>",
        "images": [
          {
            "kind": "image",
            "url": "<string>",
            "alt": "<string>"
          }
        ],
        "price": {
          "listPrice": 123,
          "discountedPrice": 123
        },
        "formElements": [
          {
            "id": "<string>",
            "explanation": "<string>",
            "kind": "dropdown",
            "label": "<string>",
            "options": [
              {
                "label": "<string>",
                "value": "<string>",
                "disabled": true
              }
            ],
            "intent": "attribute",
            "value": "<string>",
            "attributeKey": "<string>"
          }
        ],
        "person": {
          "id": 123,
          "accountId": 123,
          "formDefinition": {},
          "defaultValues": {},
          "values": {},
          "isOwner": true
        },
        "validity": {
          "from": "<string>",
          "to": "<string>"
        },
        "discounts": [
          {
            "discount": 123,
            "label": "<string>"
          }
        ],
        "productVariantId": 123,
        "merchant": {
          "identifier": "<string>",
          "timezone": "<string>"
        },
        "requiredProducts": [
          {
            "id": 123,
            "productId": 123,
            "title": "<string>",
            "subtitle": "<string>",
            "description": [
              {
                "children": [
                  {
                    "_type": "<string>",
                    "_key": "<string>"
                  }
                ],
                "markDefs": [
                  {
                    "_type": "<string>",
                    "_key": "<string>"
                  }
                ],
                "style": "<string>",
                "listItem": "<string>",
                "level": 123
              }
            ],
            "shortDescription": "<string>",
            "images": [
              {
                "kind": "image",
                "url": "<string>",
                "alt": "<string>"
              }
            ],
            "price": {
              "listPrice": 123,
              "discountedPrice": 123
            },
            "formElements": [
              {
                "id": "<string>",
                "explanation": "<string>",
                "kind": "dropdown",
                "label": "<string>",
                "options": [
                  {
                    "label": "<string>",
                    "value": "<string>",
                    "disabled": true
                  }
                ],
                "intent": "attribute",
                "value": "<string>",
                "attributeKey": "<string>"
              }
            ],
            "person": {
              "id": 123,
              "accountId": 123,
              "formDefinition": {},
              "defaultValues": {},
              "values": {},
              "isOwner": true
            },
            "validity": {
              "from": "<string>",
              "to": "<string>"
            },
            "discounts": [
              {
                "discount": 123,
                "label": "<string>"
              }
            ],
            "productVariantId": 123,
            "merchant": {
              "identifier": "<string>",
              "timezone": "<string>"
            },
            "displayPrice": true
          }
        ],
        "optionalProducts": [
          {
            "id": "<string>",
            "type": "checkbox",
            "value": true,
            "isAvailable": true,
            "unavailabilityReason": "<unknown>",
            "product": {
              "id": 123,
              "productId": 123,
              "title": "<string>",
              "subtitle": "<string>",
              "description": [
                {
                  "children": [
                    {
                      "_type": "<string>",
                      "_key": "<string>"
                    }
                  ],
                  "markDefs": [
                    {
                      "_type": "<string>",
                      "_key": "<string>"
                    }
                  ],
                  "style": "<string>",
                  "listItem": "<string>",
                  "level": 123
                }
              ],
              "shortDescription": "<string>",
              "images": [
                {
                  "kind": "image",
                  "url": "<string>",
                  "alt": "<string>"
                }
              ],
              "price": {
                "listPrice": 123,
                "discountedPrice": 123
              },
              "formElements": [
                {
                  "id": "<string>",
                  "explanation": "<string>",
                  "kind": "dropdown",
                  "label": "<string>",
                  "options": [
                    {
                      "label": "<string>",
                      "value": "<string>",
                      "disabled": true
                    }
                  ],
                  "intent": "attribute",
                  "value": "<string>",
                  "attributeKey": "<string>"
                }
              ],
              "person": {
                "id": 123,
                "accountId": 123,
                "formDefinition": {},
                "defaultValues": {},
                "values": {},
                "isOwner": true
              },
              "validity": {
                "from": "<string>",
                "to": "<string>"
              },
              "discounts": [
                {
                  "discount": 123,
                  "label": "<string>"
                }
              ],
              "productVariantId": 123,
              "merchant": {
                "identifier": "<string>",
                "timezone": "<string>"
              }
            },
            "displayPrice": true,
            "displayImage": true
          }
        ]
      }
    ],
    "itemsSerialized": [
      {
        "id": 123,
        "productVariantId": 123,
        "personId": 123,
        "validity": {
          "from": "<string>",
          "to": "<string>"
        },
        "parentItemId": 123,
        "originatedItemId": 123
      }
    ],
    "crossSellingOptions": [
      {
        "title": "<string>",
        "shortDescription": "<string>",
        "description": [
          {
            "children": [
              {
                "_type": "<string>",
                "_key": "<string>"
              }
            ],
            "markDefs": [
              {
                "_type": "<string>",
                "_key": "<string>"
              }
            ],
            "style": "<string>",
            "listItem": "<string>",
            "level": 123
          }
        ],
        "media": [
          {
            "kind": "image",
            "url": "<string>",
            "alt": "<string>"
          }
        ],
        "currency": "<string>",
        "price": {
          "minPrice": 123,
          "maxPrice": 123
        },
        "isAvailable": true,
        "productId": 123,
        "productSlug": "<string>",
        "initialFormState": {
          "validity": {
            "from": "<string>",
            "to": "<string>"
          },
          "allocation": {},
          "attributes": {}
        }
      }
    ],
    "totals": {
      "listPrice": 123,
      "discountedPrice": 123
    }
  }
}

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

Body

application/json
items
object[]
required

Response

200 - application/json

Successful response

data
object
required