curl --request PATCH \
--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
}
],
"mutations": [
{
"id": "<string>",
"value": "<unknown>"
}
]
}
'{
"data": {
"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
}
]
}
}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 '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
}
],
"mutations": [
{
"id": "<string>",
"value": "<unknown>"
}
]
}
'{
"data": {
"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
}
]
}
}Language of the response
en, de, fr, it UUID of the sales channel
Successful response
Show child attributes