Skip to main content

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

FieldDescription
storeIdImagonist ID of the selected store
deliveryTypeImagonist slug of the selected delivery type (e.g. "takeaway")
originUrlURL to return to when the "back" button on home is clicked or "return to home" is requested after payment completion
selectedViberUmbrella/table/viber/seat number if already available
slotSelected time slot if present, in ISO or UTC format
participantsNumber of participants in case of table reservation
cultureUser’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
returnUrlRelative or absolute URL to redirect to after cart initialization