Skip to main content
PATCH
/
api
/
booking
/
products
/
{productId}
/
journey
/
unified-view
/
items
Mutate items of the unified items view
curl --request PATCH \
  --url https://api.pricenow.dev/api/booking/products/{productId}/journey/unified-view/items \
  --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
    }
  ],
  "mutations": [
    {
      "value": "<any>",
      "id": "<string>"
    }
  ]
}
'
{
  "data": {
    "items": [
      {
        "id": 123,
        "title": "<string>",
        "subtitle": "<string>",
        "description": [
          {
            "children": [
              {}
            ],
            "markDefs": [
              {}
            ],
            "style": "<string>",
            "listItem": "<string>",
            "level": 123
          }
        ],
        "shortDescription": "<string>",
        "images": [
          {
            "kind": "image",
            "url": "<string>",
            "alt": "<string>"
          }
        ],
        "price": {
          "listPrice": 123,
          "discountedPrice": 123
        },
        "formElements": [
          {
            "id": "<string>",
            "label": "<string>",
            "explanation": "<string>",
            "kind": "dropdown",
            "options": [
              "<any>"
            ],
            "intent": "attribute",
            "value": "<string>",
            "attributeKey": "<string>"
          }
        ],
        "person": {
          "id": 123,
          "fields": {},
          "createdAt": "<string>",
          "lastUpdateAt": "<string>",
          "isOwner": true
        },
        "validity": {
          "from": "<string>",
          "to": "<string>"
        },
        "discounts": [
          {
            "discount": 123,
            "label": "<string>"
          }
        ],
        "productVariantId": 123,
        "requiredProducts": [
          {
            "id": 123,
            "title": "<string>",
            "subtitle": "<string>",
            "description": [
              "<any>"
            ],
            "shortDescription": "<string>",
            "images": [
              "<any>"
            ],
            "price": {
              "listPrice": "<any>",
              "discountedPrice": "<any>"
            },
            "formElements": [
              "<any>"
            ],
            "person": {
              "id": "<any>",
              "fields": "<any>",
              "createdAt": "<any>",
              "lastUpdateAt": "<any>",
              "isOwner": "<any>"
            },
            "validity": {
              "from": "<any>",
              "to": "<any>"
            },
            "discounts": [
              "<any>"
            ],
            "productVariantId": 123
          }
        ],
        "optionalProducts": [
          {
            "id": "<string>",
            "type": "checkbox",
            "value": true,
            "isAvailable": true,
            "unavailabilityReason": "<any>",
            "product": {
              "id": 123,
              "title": "<string>",
              "subtitle": "<string>",
              "description": [
                "<any>"
              ],
              "shortDescription": "<string>",
              "images": [
                "<any>"
              ],
              "price": {
                "listPrice": "<any>",
                "discountedPrice": "<any>"
              },
              "formElements": [
                "<any>"
              ],
              "person": {
                "id": "<any>",
                "fields": "<any>",
                "createdAt": "<any>",
                "lastUpdateAt": "<any>",
                "isOwner": "<any>"
              },
              "validity": {
                "from": "<any>",
                "to": "<any>"
              },
              "discounts": [
                "<any>"
              ],
              "productVariantId": 123
            }
          }
        ]
      }
    ],
    "itemsSerialized": [
      {
        "id": 123,
        "validity": {
          "from": "<string>",
          "to": "<string>"
        },
        "personId": 123,
        "productVariantId": 123,
        "parentItemId": 123,
        "originatedItemId": 123
      }
    ]
  }
}

Headers

pratiq-client-id
required

Global Webshop Client Id

pratiq-channel-uuid
string

UUID of the sales channel

Path Parameters

productId
number
required

Body

application/json
items
object[]
required
mutations
object[]
required

Response

200 - application/json

Successful response

data
object
required