Skip to main content
This module contains all organization and location-related models used for managing business entities and their operational settings.

Payment Settings Models

PaymentSettingsDTO

Model for location payment configuration.
FieldTypeRequiredDescription
paymentMethodsstring[]NoAvailable payment methods for this location

Integration Models

WhatsAppIntegrationDTO

Model for WhatsApp integration configuration.
FieldTypeRequiredDescription
isEnabledbooleanYesWhether WhatsApp is enabled
channelIdstringNoWhatsApp channel identifier
whatsappNumberstringNoWhatsApp business number
clientIdstringNoWhatsApp client identifier
apiKeystringNoWhatsApp API key

StripeIntegrationDTO

Model for Stripe payment integration configuration.
FieldTypeRequiredDescription
isEnabledbooleanYesWhether Stripe is enabled
accountIdstringNoStripe account identifier

HubriseIntegrationDTO

Model for Hubrise POS integration configuration.
FieldTypeRequiredDescription
isEnabledbooleanYesWhether Hubrise is enabled
accessTokenstringNoHubrise API access token
customerListIdstringNoHubrise customer list identifier

IntegrationsDTO

Complete integrations configuration model.
FieldTypeRequiredDescription
whatsappWhatsAppIntegrationDTOYesWhatsApp integration settings
stripeStripeIntegrationDTOYesStripe integration settings
hubriseHubriseIntegrationDTOYesHubrise integration settings
This model is currently unused but defines the complete integration structure for locations.

AccountDTO

Model for account information.
FieldTypeRequiredDescription
idstringYesAccount identifier
namestringYesAccount name
currencystringYesAccount currency: “CHF”, “EUR”, “USD”
This model is currently unused but defines account-level information.

Media Models

ImageDTO

Model for image data with multiple formats and sizes.
FieldTypeRequiredDescription
idstringYesImage identifier
urlstringYesFull resolution image URL
mediumBase64stringNoMedium size base64 encoded image
base64stringNoFull size base64 encoded image
mediumCompressedUrlstringNoMedium size compressed image URL
smallCompressedUrlstringNoSmall size compressed image URL

Location Models

LocationDTO

Complete location model with operational settings and catalog.
FieldTypeRequiredDescription
idstringYesUnique location identifier
namestringYesLocation display name
accountNamestringYesAssociated account name
currencystringYesLocation currency
addressAddressDTOYesLocation address
timezonestringYesLocation timezone
openingHoursOpeningHoursDTOYesOpening hours for pickup and delivery
whatsappNumberstringYesWhatsApp business number
locationInformationsstringNoLocation-specific information
contactInformationstringNoContact information
averagePreparationTimeAveragePreparationTimeDTONoAverage order preparation time
minOrderAmountnumberNoGlobal minimum order amount
deliverySettingsDeliverySettingsDTONoDelivery configuration
paymentSettingsPaymentSettingsDTONoPayment configuration
catalogChatbotCatalogDTONoLocation’s product catalog
useFlowbooleanNoWhether to use WhatsApp flows (default: true)
defaultLanguagestringNoDefault language: “fr”, “en”, “de”, “it”, “es” (default: “fr”)
isCurrentLocationbooleanNoCurrent interaction location in org mode (default: false)

Location Features

Multi-Currency Support

Locations can operate in different currencies:
  • CHF: Swiss Franc
  • EUR: Euro
  • USD: US Dollar

Operating Hours

Each location has separate schedules for:
  • Pickup: In-store collection hours
  • Delivery: Delivery service hours

Delivery Configuration

Locations can have different delivery modes:
  • None: No delivery service
  • Postal Code: Zone-based delivery
  • UberDirect: Uber delivery integration
  • Chaskis: Chaskis delivery integration
  • Free: Free delivery for all orders

WhatsApp Integration

  • Native WhatsApp Business API integration
  • Support for flows and interactive messages
  • Customizable business number per location

Organization Models

OrganizationDTO

Model for multi-location business organizations.
FieldTypeRequiredDescription
idstringYesUnique organization identifier
namestringYesOrganization display name
imageImageDTONoOrganization logo/image
organizationIdstringNoExternal organization identifier
locationIdsstring[]NoAssociated location identifiers
timezonestringNoDefault organization timezone
locationsLocationDTO[]NoFull location data
defaultLanguagestringNoDefault language: “fr”, “en”, “de”, “it”, “es” (default: “fr”)
locationInformationsstringNoOrganization-level special instructions
whatsappNumberstringNoOrganization WhatsApp number
specialInstructionsstringNoLocation-level special instructions

Organization Methods

get_location_by_id(location_id)

Retrieves a specific location by its identifier. Parameters:
  • location_id (string): The location identifier to search for
Returns:
  • LocationDTO | None: The matching location or None if not found

Multi-Location Management

Organizations support:
  1. Centralized Management: Single organization managing multiple locations
  2. Location Selection: Dynamic location selection based on customer needs
  3. Shared Resources: Common branding, policies, and customer data
  4. Localized Operations: Each location maintains its own:
    • Operating hours
    • Menu/catalog
    • Delivery settings
    • Payment methods
    • Language preferences

Organization vs Location Mode

Location Mode

  • Single location operation
  • Direct location context in all interactions
  • Simplified customer experience

Organization Mode

  • Multi-location operation
  • Dynamic location selection
  • Location-aware catalog and pricing
  • Centralized customer management
In organization mode, the chatbot can determine the appropriate location based on delivery address, customer preferences, or explicit selection.