Cart Initialization
Cart Initialization
To initialize a new cart, you can navigate to the route /cart/init.
This endpoint accepts optional parameters for cart initialization:
Available Parameters
| Field | Description |
|---|---|
storeId | Imagonist ID of the selected store |
deliveryType | Imagonist slug of the selected delivery type (e.g. "takeaway") |
originUrl | URL to return to when the "back" button on home is clicked or "return to home" is requested after payment completion |
selectedViber | Umbrella/table/viber/seat number if already available |
slot | Selected time slot if present, in ISO or UTC format |
participants | Number of participants in case of table reservation |
culture | User’s language in ISO 639-1 format (2 characters: it, en, fr, etc.). If not provided, the browser language or fallback default will be used |
returnUrl | Relative or absolute URL to redirect to after cart initialization |