Headers
Global Webshop Client Id
UUID of the sales channel
Path Parameters
Query Parameters
Response
200 - application/json
Successful response
curl --request GET \
--url https://api.pricenow.dev/api/booking/products/{productId}/journey/unified-view/form \
--header 'pratiq-client-id: <pratiq-client-id>'{
"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>",
"formBase": {
"proceedButton": {
"color": "<any>",
"variant": "<any>",
"label": "<string>"
}
},
"formElements": [
{
"id": "<string>",
"hasPaginatedOptions": true,
"explanation": "<string>",
"isValid": true,
"error": "<any>",
"kind": "datepicker",
"paginationType": "date",
"value": {
"from": "<string>",
"to": "<string>"
}
}
],
"items": [
{
"id": 123,
"productVariantId": 123,
"validity": {
"from": "<string>",
"to": "<string>"
},
"personId": 123,
"parentItemId": 123,
"originatedItemId": 123
}
],
"isValid": true,
"formErrors": {},
"debugHints": [
"<string>"
],
"formState": {
"allocation": {},
"attributes": {},
"validity": {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z"
}
}
}
}Fetch the unified form view for a specific product based on the provided form state. The form state must be stored client side and provided with every request. Further, if the returned form state in the request response differs from the sent from state, the client must update its persisted form state accordingly.
curl --request GET \
--url https://api.pricenow.dev/api/booking/products/{productId}/journey/unified-view/form \
--header 'pratiq-client-id: <pratiq-client-id>'{
"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>",
"formBase": {
"proceedButton": {
"color": "<any>",
"variant": "<any>",
"label": "<string>"
}
},
"formElements": [
{
"id": "<string>",
"hasPaginatedOptions": true,
"explanation": "<string>",
"isValid": true,
"error": "<any>",
"kind": "datepicker",
"paginationType": "date",
"value": {
"from": "<string>",
"to": "<string>"
}
}
],
"items": [
{
"id": 123,
"productVariantId": 123,
"validity": {
"from": "<string>",
"to": "<string>"
},
"personId": 123,
"parentItemId": 123,
"originatedItemId": 123
}
],
"isValid": true,
"formErrors": {},
"debugHints": [
"<string>"
],
"formState": {
"allocation": {},
"attributes": {},
"validity": {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z"
}
}
}
}Global Webshop Client Id
UUID of the sales channel
Show child attributes
Successful response
Show child attributes