Headers
Global Webshop Client Id
UUID of the sales channel
Path Parameters
Response
200 - application/json
Successful response
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
}
]
}
}Allows mutating items of the unified items view. Either attributes or the validity of an item can be mutate. Further, this endpoint allows for (de)selecting optional cross selling options on items.
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
}
]
}
}Global Webshop Client Id
UUID of the sales channel
Successful response
Show child attributes