Skip to main content

Get Tenant Dashboard

GET /tenant/{tenantId}/dashboard
Retrieves complete tenant dashboard data including business information, products, services, customization settings, plan details, and more.

Path Parameters

tenantId
integer
required
The unique identifier of the tenant

Response

Returns a rendered HTML view with the following data structure:
tenant
object
Core tenant information
plan
object
Subscription plan details
customization
object
Visual customization settings
products
array
Array of products ordered by position and featured status
services
array
Array of services ordered by position
branches
array
Array of physical branches (Plan 3 only, max 3)
dollarRate
number
Current USD to Bs exchange rate
euroRate
number
Current EUR to Bs exchange rate
daysUntilExpiry
integer
Days remaining until plan expires
isExpiringSoon
boolean
True if plan expires within 7 days
isFrozen
boolean
True if tenant is frozen due to expired subscription
blueprint
string
Template type: synticat, food, or studio
trackingQR
string
Base64 QR code for traffic tracking (300x300)
Short URL for traffic tracking

Status Codes

  • 200 - Success: Returns dashboard view
  • 404 - Tenant not found
  • 500 - Server error

Example Usage

fetch('/tenant/123/dashboard', {
  method: 'GET',
  credentials: 'include'
})
.then(response => {
  // Returns rendered HTML dashboard
})

Error Handling

If the tenant is not found or has an invalid status, the endpoint returns an HTTP 500 error with a rendered error page.
{
  "exception": "Error message details"
}

Build docs developers (and LLMs) love