Headers
Global Webshop Client Id
UUID of the sales channel
Path Parameters
Body
application/json
Response
200 - application/json
Successful response
curl --request POST \
--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
}
]
}
'{
"data": {
"title": "<string>",
"description": [
{
"children": [
{}
],
"markDefs": [
{}
],
"style": "<string>",
"listItem": "<string>",
"level": 123
}
],
"media": [
{
"kind": "image",
"url": "<string>",
"alt": "<string>"
}
],
"currency": "<string>",
"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
}
}
]
}
],
"crossSellingOptions": [
{
"title": "<string>",
"description": [
{
"children": [
{}
],
"markDefs": [
{}
],
"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": {}
}
}
]
}
}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 'pratiq-client-id: <pratiq-client-id>' \
--data '
{
"items": [
{
"id": 123,
"validity": {
"from": "<string>",
"to": "<string>"
},
"personId": 123,
"productVariantId": 123,
"parentItemId": 123,
"originatedItemId": 123
}
]
}
'{
"data": {
"title": "<string>",
"description": [
{
"children": [
{}
],
"markDefs": [
{}
],
"style": "<string>",
"listItem": "<string>",
"level": 123
}
],
"media": [
{
"kind": "image",
"url": "<string>",
"alt": "<string>"
}
],
"currency": "<string>",
"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
}
}
]
}
],
"crossSellingOptions": [
{
"title": "<string>",
"description": [
{
"children": [
{}
],
"markDefs": [
{}
],
"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": {}
}
}
]
}
}Global Webshop Client Id
UUID of the sales channel
Show child attributes
Successful response
Show child attributes