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
}
}
}Fetch the unified items view for a specified product based on the provided booking state. This view allows confguring each item individually.
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
}
}
}Language of the response
en, de, fr, it UUID of the sales channel
Show child attributes
Successful response
Show child attributes