Lumbu API

v1
Lumbu Public API

Public REST API for Lumbu — a multi-tenant beauty-salon SaaS platform. Covers approved tenant-scoped bookings, services, products, checkout, staff portal, webhook subscriptions, and customer authentication. Lumbu owns staff/professionals, scheduling, tenant settings, analytics, and booking/lead data; only implemented operations appear here. Tenant API keys are limited to this `/api/v1` surface; platform administration and internal routes are intentionally excluded. CMS, media, and engagement remain tenant-specific. See docs/api-access-boundary.md. The proxy enforces shared IP-scoped limits before route handlers. Exceeded quotas return HTTP 429 (`rate_limited`) with `Retry-After`; if the required production shared store is unavailable, the proxy returns HTTP 503 (`rate_limit_unavailable`) with `Retry-After`. These proxy responses can apply to any API operation and are not repeated on every operation below.

Base URL: https://api.lumbu.pt

Authentication: pass your API key as Authorization: Bearer <key>

Experience

POST
/api/v1/experience/profiles/ensure

Create or retrieve an anonymous tenant-bound experience profile

Creates a tenant-bound anonymous profile. Identity linkage requires a verified customer session and separate current consent.

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/experience/profiles/ensure" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v1/experience/events

Record an idempotent experience event

Analytics and marketing scopes fail closed when the matching profile consent is not granted. Reusing an idempotency key with different data returns 409.

Parameters

NameInTypeRequiredDescription
stringno—

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/experience/events" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v1/experience/preferences

Read an anonymous profile's current preferences and consent flags

Parameters

NameInTypeRequiredDescription
X-Experience-Profile-Idheaderstring (uuid)yes—
X-Experience-Anonymous-Idheaderstringyes—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/experience/preferences" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
PATCH
/api/v1/experience/preferences

Update anonymous experience preferences

Request body

object

Example

curl -X PATCH \
  "https://api.lumbu.pt/api/v1/experience/preferences" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v1/experience/consents

Read consent state and current published consent documents

Parameters

NameInTypeRequiredDescription
X-Experience-Profile-Idheaderstring (uuid)yes—
X-Experience-Anonymous-Idheaderstringyes—
localequerystringno—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/experience/consents" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v1/experience/consents

Grant or revoke consent for an anonymous experience profile

Grants require the current published document version for the requested locale. Consent events are idempotent and independent by purpose.

Parameters

NameInTypeRequiredDescription
stringno—

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/experience/consents" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v1/experience/recommendations

Read recommendations for an analytics-consenting profile

Parameters

NameInTypeRequiredDescription
X-Experience-Profile-Idheaderstring (uuid)yes—
X-Experience-Anonymous-Idheaderstringyes—
limitqueryintegerno—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/experience/recommendations" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v1/experience/cart-recovery

Save a cart for recovery

Requires current marketing consent, and SMS consent when the requested channel includes SMS. The schema RPC upserts and rotates its recovery token; it does not support idempotency keys, so callers should not blindly retry an unknown outcome.

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/experience/cart-recovery" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v1/experience/cart-recovery/recover

Atomically claim and restore a tenant cart recovery token

The token is sent in the request body. Tenant ownership comes from the API key. Replaying a completed claim returns the same cart until token expiry.

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/experience/cart-recovery/recover" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v1/experience/link-consent

Read the current published profile-link consent document

Parameters

NameInTypeRequiredDescription
localequerystringno—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/experience/link-consent" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v1/experience/link

Link an anonymous profile to the signed-in customer

Requires the tenant API key, a valid X-Lumbu-Customer-Token session for the same tenant, and explicit acceptance of the current published experience_profile_link consent version.

Parameters

NameInTypeRequiredDescription
stringno—
X-Lumbu-Customer-Tokenheaderstringyes—

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/experience/link" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v1/experience/unlink

Unlink the signed-in customer from an experience profile

Requires a valid X-Lumbu-Customer-Token session for the authenticated tenant. The RPC revokes the current profile-link consent and is idempotent.

Parameters

NameInTypeRequiredDescription
stringno—
X-Lumbu-Customer-Tokenheaderstringyes—

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/experience/unlink" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'

Acquisition

POST
/api/v1/newsletter/subscribe

Start a tenant newsletter double opt-in

Requires a writable tenant API key. Consent is mandatory. The tenant/email unique index deduplicates pending and confirmed rows; unsubscribed rows stay suppressed. The endpoint sends only a transactional confirmation message, not newsletter content. Requests are limited by tenant/IP and tenant/email. A populated website honeypot is silently dropped.

Request body

object

Response

NewsletterSubscribeResult

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/newsletter/subscribe" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v1/newsletter/confirm

Open the inert newsletter confirmation form

Hosted only on a verified tenant primary or alias hostname. This GET never changes subscription state; it displays a user-submit form to prevent link scanners from confirming.

Parameters

NameInTypeRequiredDescription
tokenquerystring (uuid)yes—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/newsletter/confirm" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v1/newsletter/confirm

Confirm a newsletter subscription

Accepts either a matching tenant credential or a single-use token from the verified tenant hostname. Invalid and valid tokens share the same response. Confirmation records confirmed_at and consumes the token.

Request body

object

Response

NewsletterConfirmResult

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/newsletter/confirm" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'

Reports

GET
/api/v1/reports/daily-summary

Get the tenant's daily operational summary

Requires a tenant integration credential with scope reports:read or an active MCP OAuth grant whose user explicitly selected reports:read during consent. Generic OAuth read/write access does not include reporting. Returns aggregate counts and paid-order totals for one UTC day; appointment count means bookings created that day, and revenue is paid order totals, not total salon turnover. The projection contains no customer records, card data, payment identifiers, or other row-level order or appointment data. Responses are never cached.

Parameters

NameInTypeRequiredDescription
datequerystring (date)noUTC calendar date; defaults to yesterday in UTC.

Response

DailySummaryReport

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/reports/daily-summary" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/reports/business-analytics

Get aggregate operational health for a tenant-local period

Requires a tenant integration key with reports:read or an active MCP OAuth grant with explicitly consented reports:read. Generic read/write grants do not imply reporting access. Periods are inclusive tenant-local dates and are limited to 90 days. Returns appointment lifecycle counts, service mix, schedule-derived capacity, and aggregate canonical care-journey metrics. An optional comparison period must have the same number of days; the response compares appointments, capacity, and care-journey aggregates. It omits customer rows, care records, staff names, and finance totals. Capacity is partial because the current read model does not include shift changes or breaks. Finance revenue per hour is unavailable until a separately authorized financial source is available. Results are not cached.

Parameters

NameInTypeRequiredDescription
fromquerystring (date)yes—
toquerystring (date)yes—
comparison_fromquerystring (date)no—
comparison_toquerystring (date)no—

Response

BusinessAnalyticsReport

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/reports/business-analytics" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/reports/finance/monthly-summary

Get aggregate monthly Finance and close-readiness metrics

Requires an active MCP OAuth grant with explicitly consented finance:read. Generic read/write and reports:read do not grant access to this operation. The response reuses the tenant-scoped Sage revenue and Finance health read contracts. Every metric carries coverage. Unsupported credit-note, cash, unpaid-receivable, expense completeness, payroll, owner-transfer, bank, or PDF-close evidence stays null or unavailable; missing evidence is never reported as zero. Past months have a complete calendar window; the current month is marked partial and future months are rejected. Sage synchronization time is returned separately from report generation time. The response contains no full invoices, raw transactions, bank credentials, payroll personal details, or write operations. Results are not cached.

Parameters

NameInTypeRequiredDescription
monthquerystringyesTenant-local calendar month in YYYY-MM format

Response

FinanceMonthlySummaryReport

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/reports/finance/monthly-summary" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/reports/finance/sage-invoices

List stored Sage invoices by issue date, newest first

Requires explicit invoice consent. Returns stored snapshots, not live Sage data. Includes status and document type; no customer identities or raw documents.

Parameters

NameInTypeRequiredDescription
fromquerystring (date)yes—
toquerystring (date)yesInclusive range of at most 92 days
statusquerystringno—[issued, draft, void, review]
document_typequerystringno—[sales_invoice, credit_note, other, unknown]
pagequeryintegerno—
limitqueryintegerno—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/reports/finance/sage-invoices" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/reports/finance/sage-invoices/{observationId}

Read a stored Sage invoice with financial lines and payment entries

Requires explicit invoice consent. Use the observationId returned by listSageInvoices. No customer identities, free text, PDFs or bank account information. Recorded payment entries are not bank confirmation.

Parameters

NameInTypeRequiredDescription
observationIdpathstring (uuid)yes—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/reports/finance/sage-invoices/{observationId}" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/reports/finance/period-summary

Get aggregate stored Sage invoice totals for a date range

Requires financial reporting consent. Totals are grouped by currency, excluding drafts, voids and credit notes. Not a complete profit or cash report. Source coverage is stored snapshot only.

Parameters

NameInTypeRequiredDescription
fromquerystring (date)yes—
toquerystring (date)yesInclusive range of at most 92 days

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/reports/finance/period-summary" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/finance/invoices

List fiscal documents for a bounded date range

Requires explicit finance:invoices:read consent. Uses the latest imported fiscal document observations, not live provider calls. Opaque invoice IDs remain stable across observation revisions. Exact decimal amounts are strings. Customer tax IDs, contact details, raw source records and PDFs are excluded.

Parameters

NameInTypeRequiredDescription
fromquerystring (date)yes—
toquerystring (date)yes—
limitqueryintegerno—
cursorquerystringno—
document_typequerystringno—[invoice, credit_note, debit_note, receipt, other, unknown]
statusquerystringno—[issued, draft, voided, review]
referencequerystringno—

Response

FiscalInvoiceList

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/finance/invoices" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/finance/invoices/{id}

Get a fiscal invoice and normalized lines

Parameters

NameInTypeRequiredDescription
idpathstringyes—

Response

FiscalInvoiceDetail

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/finance/invoices/{id}" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/finance/invoices/{id}/payments

List recorded settlement evidence for a fiscal invoice

Provider-recorded payment entries do not confirm bank receipt. Unsupported allocations and missing evidence remain incomplete or unavailable.

Parameters

NameInTypeRequiredDescription
idpathstringyes—

Response

FiscalInvoicePayments

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/finance/invoices/{id}/payments" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/finance/invoices/{id}/reconciliation

Get appointment associations and reconciliation review state

Parameters

NameInTypeRequiredDescription
idpathstringyes—

Response

FiscalInvoiceReconciliation

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/finance/invoices/{id}/reconciliation" \
  -H "Authorization: Bearer {YOUR_API_KEY}"

Customer

GET
/api/v1/customer/waitlist

List the authenticated customer's waitlist entries

Requires a tenant API credential and the customer's verified Lumbu session. Returns entries owned by that customer in the resolved tenant.

Parameters

NameInTypeRequiredDescription
x-lumbu-customer-tokenheaderstringyes—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/customer/waitlist" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
DELETE
/api/v1/customer/waitlist

Withdraw the authenticated customer's waitlist entry

Withdrawal is tenant and customer scoped. Repeated withdrawal requests succeed without exposing whether an entry exists.

Parameters

NameInTypeRequiredDescription
x-lumbu-customer-tokenheaderstringyes—

Request body

object

Example

curl -X DELETE \
  "https://api.lumbu.pt/api/v1/customer/waitlist" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v1/customer/loyalty

Get loyalty balance, rewards, tiers, and recent history

Derives the tenant from the tenant API key and the canonical customer identity from the verified tenant-scoped customer session.

Parameters

NameInTypeRequiredDescription
stringno—

Response

CustomerLoyaltyResponse

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/customer/loyalty" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v1/customer/loyalty

Redeem an eligible customer loyalty reward

The customer and tenant are derived from verified credentials. Reuse the idempotency key only when retrying the same reward redemption.

Parameters

NameInTypeRequiredDescription
stringno—

Request body

object

Response

CustomerLoyaltyRedemptionResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/customer/loyalty" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v1/customer/appointments

List a page of appointments for the verified customer

Uses the tenant-scoped verified customer session. Results are ordered by start_at and id descending and use an opaque keyset cursor.

Parameters

NameInTypeRequiredDescription
stringno—
limitqueryintegerno—
cursorquerystringno—

Response

CustomerAppointmentListResponse

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/customer/appointments" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v1/customer/appointments

Get appointment detail and customer history

Request body

object

Response

CustomerAppointmentsResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/customer/appointments" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v1/customer/appointments/{id}/context

Resolve an appointment for its guest access token

Returns only tenant-scoped appointment details after verifying the guest booking token, including persisted service duration and variant composition for historical bookings.

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes—

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/customer/appointments/{id}/context" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v1/customer/appointments/payment-confirmation

Resolve a paid branded booking callback

Requires the tenant API key, a tenant-bound opaque payment callback token, and the matching Stripe checkout session. Appointment access is issued only after Lumbu confirms the persisted payment as paid.

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/customer/appointments/payment-confirmation" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v1/customer/orders

List orders for the verified customer session

Parameters

NameInTypeRequiredDescription
stringno—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/customer/orders" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/customer/orders/{id}

Get one order for the verified customer session

Parameters

NameInTypeRequiredDescription
stringno—
idpathstring (uuid)yes—

Response

Order

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/customer/orders/{id}" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
DELETE
/api/v1/customer/session

Revoke the verified customer browser session

Parameters

NameInTypeRequiredDescription
stringno—

Example

curl -X DELETE \
  "https://api.lumbu.pt/api/v1/customer/session" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/customer/profile

Read the verified customer's profile

Parameters

NameInTypeRequiredDescription
stringno—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/customer/profile" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
PATCH
/api/v1/customer/profile

Update the verified customer's profile

Parameters

NameInTypeRequiredDescription
stringno—

Request body

object

Example

curl -X PATCH \
  "https://api.lumbu.pt/api/v1/customer/profile" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v1/customer/export

Get a bounded customer data snapshot with explicit coverage limits

Requires the verified customer session. This is explicitly not a complete GDPR export; consumers must inspect complete=false and limitations.

Parameters

NameInTypeRequiredDescription
stringno—

Response

CustomerDataExport

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/customer/export" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/customer/wishlist

List wishlist items for the verified customer

Currently unavailable. Published wishlist storage is keyed by Supabase Auth user_id and cannot be safely joined to canonical customer identity.

Parameters

NameInTypeRequiredDescription
stringno—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/customer/wishlist" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v1/customer/wishlist

Add a product to the verified customer's wishlist

Parameters

NameInTypeRequiredDescription
stringno—

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/customer/wishlist" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE
/api/v1/customer/wishlist

Remove a product from the verified customer's wishlist

Parameters

NameInTypeRequiredDescription
stringno—

Request body

object

Example

curl -X DELETE \
  "https://api.lumbu.pt/api/v1/customer/wishlist" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v1/customer/addresses

List addresses for the verified customer

Parameters

NameInTypeRequiredDescription
stringno—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/customer/addresses" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v1/customer/addresses

Add an address to the verified customer's address book

Parameters

NameInTypeRequiredDescription
stringno—

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/customer/addresses" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
PATCH
/api/v1/customer/addresses/{id}

Update an address in the verified customer's address book

DELETE
/api/v1/customer/addresses/{id}

Delete an address from the verified customer's address book

GET
/api/v1/customer/preferences

Read the marketing preference and active tenant disclosure

Parameters

NameInTypeRequiredDescription
stringno—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/customer/preferences" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
PATCH
/api/v1/customer/preferences

Record a marketing consent ledger event

Parameters

NameInTypeRequiredDescription
stringno—

Request body

object

Example

curl -X PATCH \
  "https://api.lumbu.pt/api/v1/customer/preferences" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v1/orders/{id}/returns

Request a return for a paid and shipped order

Creates an auditable request for operator review. This endpoint does not approve a return or issue a refund.

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes—
stringno—

Request body

CustomerOrderReturnRequest

Response

CustomerOrderReturnResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/orders/{id}/returns" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'

Tenant

GET
/api/v1/tenant/context

Verify tenant identity and read public tracking settings

Uses fresh tenant credential and lifecycle checks. Returns only the verified tenant ID and public Meta/Google Ads settings. Responses are private, no-store. Tenant SDK read/write credentials are supported; widget keys are not supported.

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/tenant/context" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/tenant/capabilities

Read effective public tenant capabilities

Uses the verified tenant credential and lifecycle policy, then the canonical tenant capability evaluator. Returns only the verified tenant ID and the effective reservations decision. Ignores caller-supplied tenant IDs. Provider failures return 503 rather than a cacheable disabled result. The response is private, no-store. Widget keys are not accepted.

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/tenant/capabilities" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/tenant

Get tenant metadata

Response

TenantMetadata

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/tenant" \
  -H "Authorization: Bearer {YOUR_API_KEY}"

Onboarding

GET
/api/v1/onboarding/check

Check tenant setup completeness

Returns a structured readiness check for the tenant's salon setup. The ready result is authoritative when services, staff, staff hours, staff-service links, locations, and business hours all pass. Payment, branding, locale, and notification checks are informational only.

Response

SetupCheckResult

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/onboarding/check" \
  -H "Authorization: Bearer {YOUR_API_KEY}"

Booking

GET
/api/v1/booking/bootstrap

Get the public booking bootstrap snapshot

Returns the complete tenant-scoped presentation snapshot needed to render a public booking flow. Online payment availability is an authoritative Lumbu capability; consumers must not infer it from Stripe-specific tenant fields.

Response

BookingBootstrap

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/booking/bootstrap" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/booking/packages

List active, currently bookable service packages

Parameters

NameInTypeRequiredDescription
commercial_offer_keyquerystringnoSelects the typed Ukembu hair-therapy offer representation for its configured package. Omit this parameter to preserve the generic package response.

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/booking/packages" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v1/booking/slots

Retrieve available booking slots

Request body

SlotsRequest

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/booking/slots" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v1/booking/quote

Resolve authoritative booking price and eligibility

Resolves the current tenant catalog, variants, compatible add-ons, package price, promotion eligibility, payment capability, and optional staff/slot eligibility. Pass quote_revision to the direct booking request; a changed catalog selection is rejected before appointment creation. Omit customer_email and start_at for an early selection preview.

Request body

BookingQuoteRequest

Response

BookingQuoteResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/booking/quote" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v1/booking/book

Create a new booking

Parameters

NameInTypeRequiredDescription
stringno—

Request body

BookRequest

Response

BookResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/booking/book" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v1/booking/cancel

Cancel an existing booking

Request body

CancelRequest

Response

BookingCancellationResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/booking/cancel" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v1/booking/meta-consent/revoke

Revoke Meta advertising measurement permission

Requires a tenant API key. Revocation is tenant-scoped and cannot grant or read permission.

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/booking/meta-consent/revoke" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v1/booking/reschedule

Reschedule a booking to a new time

Request body

RescheduleRequest

Response

RescheduleResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/booking/reschedule" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'

Services

GET
/api/v1/services

List services

Parameters

NameInTypeRequiredDescription
stringno—
stringno—
activequerystringnoFilter by active status[true, false]
booking_enabledquerystringnoFilter by booking-enabled flag[true, false]
classificationquerystringnoFilter by canonical structured service classification[hair_evaluation, hair_therapy_session, hair_therapy_programme, head_spa, braids, other_hair_service, other]
updated_sincequerystring (date-time)noOnly return services updated on or after this timestamp

Response

PaginatedServiceList

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/services" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/service-categories

List service categories with nested services

Checkout

POST
/api/v1/checkout

Create a Stripe checkout session

Lumbu resolves product prices and applies eligible promotions and an optional gift card. A new checkout remains pending until the settlement webhook completes. Supply an Idempotency-Key header to make an ambiguous request safely retryable. The response includes a durable checkout intent ID and current intent status; use the intent read endpoint to poll later transitions. Pricing and promotion can be omitted when replaying an already finished checkout.

Request body

CheckoutRequest

Response

CheckoutResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/checkout" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v1/checkout/intents/{id}

Read the durable status of a checkout intent

Returns only the tenant-owned operation status and total. It is a status snapshot, not payment authorization or settlement confirmation.

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes—

Response

CheckoutIntentResponse

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/checkout/intents/{id}" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v1/appointments/{id}/checkout

Create or resume an appointment payment session

Requires a tenant integration key with the bookings:payment scope. Tenant, appointment price, currency, and prepayment policy are resolved by Lumbu. The Idempotency-Key must remain stable when retrying an ambiguous response.

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes—
Idempotency-Keyheaderstringyes—

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/appointments/{id}/checkout" \
  -H "Authorization: Bearer {YOUR_API_KEY}"

Staff

GET
/api/v1/staff

List staff members

Parameters

NameInTypeRequiredDescription
stringno—
stringno—
activequerystringnoFilter by active status[true, false]
location_idquerystring (uuid)noFilter by location ID
updated_sincequerystring (date-time)noOnly return staff updated on or after this timestamp

Response

PaginatedStaffList

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/staff" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/team-members

List team member assignments

Parameters

NameInTypeRequiredDescription
stringno—
stringno—
location_idquerystring (uuid)noFilter by location ID
staff_idquerystring (uuid)noFilter by staff ID
joined_sincequerystring (date-time)noOnly return memberships created on or after this timestamp

Response

PaginatedTeamMemberList

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/team-members" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/staff-availability

Get computed staff availability

Parameters

NameInTypeRequiredDescription
fromquerystringyesStart date (YYYY-MM-DD)
staff_idquerystring (uuid)noFilter by staff ID
daysqueryintegernoNumber of days to look ahead

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/staff-availability" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/staff-hours

List staff recurring weekly hours

Parameters

NameInTypeRequiredDescription
stringno—
stringno—
staff_idquerystring (uuid)noFilter by staff ID
location_idquerystring (uuid)noFilter by location ID

Response

PaginatedStaffHoursList

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/staff-hours" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/staff-time-off

List staff time-off periods

Parameters

NameInTypeRequiredDescription
stringno—
stringno—
staff_idquerystring (uuid)noFilter by staff ID
location_idquerystring (uuid)noFilter by location ID
start_at_gtequerystring (date-time)noFilter time-off starting on or after this timestamp
start_at_ltequerystring (date-time)noFilter time-off starting on or before this timestamp

Response

PaginatedStaffTimeOffList

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/staff-time-off" \
  -H "Authorization: Bearer {YOUR_API_KEY}"

Staff Portal

GET
/api/v2/staff-portal/url

Get the tenant's canonical staff portal URL

Resolves the canonical hosted staff URL from the tenant bound to the tenant API key. It does not accept tenant IDs, template keys, hosts, or return URLs from the caller. A verified staff_portal domain is preferred; a verified primary domain falls back to its /staff route.

Response

StaffPortalUrl

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/url" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v2/staff-portal/session

Get the authenticated staff portal session

Verifies the tenant API key and opaque staff adapter session, then returns the server-scoped tenant/staff identity, explicit permission flags, and the tenant staff time-management approval policy.

Parameters

NameInTypeRequiredDescription
stringno—

Response

StaffPortalSession

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/session" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v2/staff-portal/session/logout

Revoke an opaque staff adapter session

Parameters

NameInTypeRequiredDescription
stringno—

Response

OkResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v2/staff-portal/session/logout" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v2/staff-portal/dashboard

Get the staff portal dashboard aggregate

Returns today and next appointments, alerts, and the approval policy. It does not include earnings, commissions, sales, or targets.

Parameters

NameInTypeRequiredDescription
stringno—

Response

StaffPortalDashboard

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/dashboard" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v2/staff-portal/schedule

Get my or salon staff schedule

Returns appointments plus schedule context for the authenticated staff member (`scope=mine`) or salon (`scope=salon`). Tenant and staff identity are resolved server-side; salon appointment contact fields are redacted unless the staff member has appointment-management permission.

Parameters

NameInTypeRequiredDescription
stringno—
scopequerystringno—[mine, salon]
start_datequerystring (date)yesStart date (YYYY-MM-DD), maximum range 31 days
end_datequerystring (date)noEnd date (YYYY-MM-DD), defaults to start_date
target_staff_idquerystring (uuid)noOptional staff filter within the authenticated tenant

Response

StaffPortalSchedule

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/schedule" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v2/staff-portal/manager/salon-schedule

Get the manager salon schedule

Manager/admin-only salon schedule view with tenant-wide staff, appointments, client details, assigned staff, appointment state, and permissions-aware editing controls.

Parameters

NameInTypeRequiredDescription
stringno—
start_datequerystring (date)yes—
end_datequerystring (date)no—
target_staff_idquerystring (uuid)no—

Response

StaffPortalSchedule

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/manager/salon-schedule" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v2/staff-portal/appointments

List staff portal appointments

Parameters

NameInTypeRequiredDescription
stringno—
windowquerystringno—[upcoming, past]
statusquerystringno—
staff_idquerystring (uuid)noManager-only staff filter; staff members may only request their own id.
limitqueryintegerno—

Response

StaffPortalAppointmentListResponse

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/appointments" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v2/staff-portal/appointments

Create a staff portal appointment

Parameters

NameInTypeRequiredDescription
stringno—

Request body

StaffPortalAppointmentCreateRequest

Response

StaffPortalAppointmentCreateResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v2/staff-portal/appointments" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v2/staff-portal/booking-options

List bookable services for a staff member

Parameters

NameInTypeRequiredDescription
stringno—
staff_idquerystring (uuid)noManager-only target staff member. Defaults to the authenticated staff member.

Response

StaffPortalBookingOptionsResponse

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/booking-options" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v2/staff-portal/active-services

List active bookable services for the salon team

Lists active bookable services assigned to at least one active team member. Requires team appointment management permission.

Parameters

NameInTypeRequiredDescription
stringno—

Response

StaffPortalActiveServicesResponse

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/active-services" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v2/staff-portal/customers

Search or inspect Customer 360 records

Searches customers within the authenticated staff member's permitted team scope. Pass customer_key to load one profile. Generic results exclude Care Vault and other protected health or sensitive history.

Parameters

NameInTypeRequiredDescription
stringno—
qquerystringnoSearch by customer name, phone, or email
customer_keyquerystringnoExact customer email or opaque anonymous customer key
limitqueryintegerno—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/customers" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v2/staff-portal/customers/notes

Add an internal customer note

Parameters

NameInTypeRequiredDescription
stringno—
stringno—

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v2/staff-portal/customers/notes" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
PATCH
/api/v2/staff-portal/customers/notes/{id}

Update an internal customer note

Parameters

NameInTypeRequiredDescription
stringno—
idpathstring (uuid)yes—
stringno—

Request body

object

Example

curl -X PATCH \
  "https://api.lumbu.pt/api/v2/staff-portal/customers/notes/{id}" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE
/api/v2/staff-portal/customers/notes/{id}

Delete an internal customer note

Parameters

NameInTypeRequiredDescription
stringno—
idpathstring (uuid)yes—
stringno—

Example

curl -X DELETE \
  "https://api.lumbu.pt/api/v2/staff-portal/customers/notes/{id}" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v2/staff-portal/catalog/services

List canonical services, prices, variants, and booking compatibility

Scope defaults to the authenticated professional. Team scope requires team appointment permission.

Parameters

NameInTypeRequiredDescription
stringno—
scopequerystringno—[mine, team]
service_idquerystring (uuid)no—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/catalog/services" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v2/staff-portal/catalog/availability

Calculate real available slots for a service

Read-only availability calculation using canonical shifts, breaks, time off, appointments, buffers, variants, and tenant rules.

Parameters

NameInTypeRequiredDescription
stringno—

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v2/staff-portal/catalog/availability" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v2/staff-portal/inventory

List read-only staff inventory visibility

Returns product, brand, category, SKU, location placeholder, quantity, and low-stock state. Cost and wholesale data are never returned.

Parameters

NameInTypeRequiredDescription
stringno—
qquerystringno—
limitqueryintegerno—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/inventory" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v2/staff-portal/performance

Get personal operational performance metrics

Returns only the authenticated staff member's metrics. Revenue, earnings, commission, tips, and team-wide data are excluded.

Parameters

NameInTypeRequiredDescription
stringno—
startquerystring (date)no—
endquerystring (date)no—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/performance" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v2/staff-portal/appointments/upcoming

List upcoming staff portal appointments

Parameters

NameInTypeRequiredDescription
stringno—
statusquerystringno—
limitqueryintegerno—

Response

StaffPortalAppointmentListResponse

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/appointments/upcoming" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v2/staff-portal/appointments/past

List past staff portal appointments

Parameters

NameInTypeRequiredDescription
stringno—
statusquerystringno—
limitqueryintegerno—

Response

StaffPortalAppointmentListResponse

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/appointments/past" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v2/staff-portal/follow-ups

List my pending client follow-ups

Parameters

NameInTypeRequiredDescription
stringno—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/follow-ups" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v2/staff-portal/follow-ups

Create an idempotent client follow-up

Parameters

NameInTypeRequiredDescription
stringno—
stringno—

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v2/staff-portal/follow-ups" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
PATCH
/api/v2/staff-portal/follow-ups/{id}

Complete, reopen, or update a client follow-up

Parameters

NameInTypeRequiredDescription
stringno—
idpathstring (uuid)yes—
stringno—

Request body

object

Example

curl -X PATCH \
  "https://api.lumbu.pt/api/v2/staff-portal/follow-ups/{id}" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
PATCH
/api/v2/staff-portal/follow-ups/programmes/{id}

Complete or dismiss a programme follow-up action

Manager-scoped transition for conversion, next-session, retention, and overdue programme actions.

Parameters

NameInTypeRequiredDescription
stringno—
idpathstring (uuid)yes—
stringno—

Request body

object

Example

curl -X PATCH \
  "https://api.lumbu.pt/api/v2/staff-portal/follow-ups/programmes/{id}" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
PATCH
/api/v2/staff-portal/appointments/{id}

Update a staff portal appointment status or duration

Parameters

NameInTypeRequiredDescription
stringno—
idpathstring (uuid)yes—

Request body

StaffPortalAppointmentUpdateRequest

Response

StaffPortalAppointmentMutationResponse

Example

curl -X PATCH \
  "https://api.lumbu.pt/api/v2/staff-portal/appointments/{id}" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v2/staff-portal/availability

Get my weekly staff availability

Parameters

NameInTypeRequiredDescription
stringno—

Response

StaffPortalAvailabilityResponse

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/availability" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
PUT
/api/v2/staff-portal/availability

Replace my weekly staff availability

Parameters

NameInTypeRequiredDescription
stringno—

Request body

StaffPortalAvailabilityUpdateRequest

Response

StaffPortalAvailabilityUpdateResponse

Example

curl -X PUT \
  "https://api.lumbu.pt/api/v2/staff-portal/availability" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v2/staff-portal/unavailability

List my one-off unavailability blocks

Parameters

NameInTypeRequiredDescription
stringno—
start_at_gtequerystring (date-time)no—
start_at_ltequerystring (date-time)no—

Response

StaffPortalUnavailabilityListResponse

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/unavailability" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v2/staff-portal/unavailability

Create a one-off unavailability block

Parameters

NameInTypeRequiredDescription
stringno—

Request body

StaffPortalUnavailabilityCreateRequest

Response

StaffPortalUnavailabilityBlock

Example

curl -X POST \
  "https://api.lumbu.pt/api/v2/staff-portal/unavailability" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE
/api/v2/staff-portal/unavailability/{id}

Delete my one-off unavailability block

Parameters

NameInTypeRequiredDescription
stringno—
idpathstring (uuid)yes—

Response

OkResponse

Example

curl -X DELETE \
  "https://api.lumbu.pt/api/v2/staff-portal/unavailability/{id}" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v2/staff-portal/time-off

List my time-off requests

Parameters

NameInTypeRequiredDescription
stringno—
statusquerystringno—[pending, approved, rejected, cancelled]
start_at_gtequerystring (date-time)no—
start_at_ltequerystring (date-time)no—

Response

StaffPortalTimeOffListResponse

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/time-off" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v2/staff-portal/time-off

Request time off

Creates a time-off request for the authenticated staff member. If the tenant approval policy is auto-approve, Lumbu also creates the matching staff_time_off availability block before returning the approved request.

Parameters

NameInTypeRequiredDescription
stringno—

Request body

StaffPortalTimeOffCreateRequest

Response

StaffPortalTimeOffRequest

Example

curl -X POST \
  "https://api.lumbu.pt/api/v2/staff-portal/time-off" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE
/api/v2/staff-portal/time-off/{id}

Cancel my pending or approved time-off request

Parameters

NameInTypeRequiredDescription
stringno—
idpathstring (uuid)yes—

Response

OkResponse

Example

curl -X DELETE \
  "https://api.lumbu.pt/api/v2/staff-portal/time-off/{id}" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v2/staff-portal/shift-swaps

List my shift swap requests

Parameters

NameInTypeRequiredDescription
stringno—
statusquerystringno—

Response

StaffPortalShiftSwapListResponse

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/shift-swaps" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v2/staff-portal/shift-swaps

Request a shift swap

Parameters

NameInTypeRequiredDescription
stringno—

Request body

StaffPortalShiftSwapCreateRequest

Response

StaffPortalShiftSwapMutationResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v2/staff-portal/shift-swaps" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
PATCH
/api/v2/staff-portal/shift-swaps/{id}

Accept or decline a received shift swap

Parameters

NameInTypeRequiredDescription
stringno—
idpathstring (uuid)yes—

Request body

StaffPortalShiftSwapRespondRequest

Response

StaffPortalShiftSwapMutationResponse

Example

curl -X PATCH \
  "https://api.lumbu.pt/api/v2/staff-portal/shift-swaps/{id}" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE
/api/v2/staff-portal/shift-swaps/{id}

Cancel a requested shift swap while it is pending

Parameters

NameInTypeRequiredDescription
stringno—
idpathstring (uuid)yes—

Response

OkResponse

Example

curl -X DELETE \
  "https://api.lumbu.pt/api/v2/staff-portal/shift-swaps/{id}" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v2/staff-portal/approval-policy

Get staff time-management approval policy

Parameters

NameInTypeRequiredDescription
stringno—

Response

StaffPortalApprovalPolicy

Example

curl -X GET \
  "https://api.lumbu.pt/api/v2/staff-portal/approval-policy" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
PUT
/api/v2/staff-portal/approval-policy

Update staff time-management approval policy

Parameters

NameInTypeRequiredDescription
stringno—

Request body

object

Response

StaffPortalApprovalPolicy

Example

curl -X PUT \
  "https://api.lumbu.pt/api/v2/staff-portal/approval-policy" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v2/staff-portal/session/handoff

Exchange a canonical staff portal handoff

Consumes a host-bound handoff once and returns an opaque adapter session handle.

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v2/staff-portal/session/handoff" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'

Plugin: feedback

POST
/api/v1/appointment-feedback

Submit feedback for an appointment

Requires an appointment-scoped feedback access token. A token and appointment must belong to the authenticated tenant, the appointment must be completed and ended, and the token must be valid. Each appointment accepts one submission; duplicate submissions return 409.

Request body

SubmitAppointmentFeedbackRequest

Response

Feedback

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/appointment-feedback" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'

Plugin: waitlist

POST
/api/v1/waitlist

Join the booking waitlist

Creates or reuses a tenant-scoped entry only after validating the service and staff. The caller must record explicit notification consent. A verified customer session is optional for visitors and binds signed-in entries to the canonical customer identity.

Request body

CreateWaitlistEntryRequest

Response

WaitlistEntry

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/waitlist" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'

Auth

POST
/api/v1/auth/signin

Sign in with email and password

Request body

SignInRequest

Response

SignInResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/auth/signin" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v1/auth/signup

Create a new customer account

Request body

SignUpRequest

Response

SignUpResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/auth/signup" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v1/auth/magic-link

Send a passwordless magic link email

Request body

MagicLinkRequest

Response

OkResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/auth/magic-link" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v1/auth/refresh

Refresh an authentication token

Request body

RefreshRequest

Response

RefreshResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/auth/refresh" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'

Plugin: gift-cards

POST
/api/v1/gift-cards/validate

Preview a gift card balance

Read-only, tenant-scoped balance inquiry. The tenant is derived from the verified API credential. Missing, foreign, expired, exhausted, checkout-held, and inactive cards return the same generic unavailable result. A valid response reports the persisted balance observed by this read; it does not reserve value, authorize payment, redeem the card, or settle an order. Gift-card spend and settlement must go through a checkout intent.

Request body

object

Response

GiftCardValidationResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/gift-cards/validate" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'

Products

plugin
GET
/api/v1/products

List products

Parameters

NameInTypeRequiredDescription
stringno—
stringno—
activequerystringnoInclude active_for_sale products (defaults to true; false is not supported)[true]
category_idquerystring (uuid)noFilter by product category
updated_sincequerystring (date-time)noOnly return products updated on or after this timestamp

Response

PaginatedProductList

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/products" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v1/products/inventory

Get reservation-aware product availability

Returns purchase availability for published, active physical, digital, or service products in the authenticated tenant. Gift cards are excluded. Unknown, foreign, archived, unpublished, discontinued, and disabled products share the unavailable result. Inventory lookup failures fail the entire request.

Request body

ProductInventoryRequest

Response

ProductInventoryResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/products/inventory" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v1/products/search

Search published products

Searches eligible products for the authenticated tenant. Requires the products plugin. Provider failures return 503.

Request body

ProductSearchRequest

Response

ProductSearchResponse

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/products/search" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v1/products/{id}

Get product detail by ID or slug

Parameters

NameInTypeRequiredDescription
idpathstringyesProduct UUID or slug

Response

ProductDetail

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/products/{id}" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/products/{id}/reviews

List public product reviews

Returns only approved reviews for a published product in the authenticated tenant.

Parameters

NameInTypeRequiredDescription
idpathstringyes—
stringno—
stringno—

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/products/{id}/reviews" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v1/products/{id}/verify-purchase

Verify a customer's product purchase

Requires a tenant customer session. Returns only a boolean for a paid or partially refunded order and does not disclose order details.

Parameters

NameInTypeRequiredDescription
idpathstringyes—
x-lumbu-customer-tokenheaderstringyes—

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/products/{id}/verify-purchase" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
POST
/api/v1/products/{id}/reviews/submit

Submit a verified product review

Requires a tenant customer session and a paid or partially refunded order containing the published product. Fully refunded orders are ineligible. New reviews remain pending moderation.

Parameters

NameInTypeRequiredDescription
idpathstringyes—
x-lumbu-customer-tokenheaderstringyes—

Request body

object

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/products/{id}/reviews/submit" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
GET
/api/v1/product-categories

List product categories with product counts

Other

plugin
GET
/api/v1/appointments

List appointments

Parameters

NameInTypeRequiredDescription
stringno—
stringno—
start_at_gtequerystring (date-time)noFilter appointments starting on or after this timestamp
start_at_ltequerystring (date-time)noFilter appointments starting on or before this timestamp
statusquerystringnoFilter by appointment status[requested, confirmed, cancelled, completed, no_show]
location_idquerystring (uuid)noFilter by location ID
staff_idquerystring (uuid)noFilter by staff ID
service_idquerystring (uuid)noFilter by service ID
updated_sincequerystring (date-time)noOnly return appointments updated on or after this timestamp

Response

PaginatedAppointmentList

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/appointments" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/appointment-feedback

List appointment feedback entries

Parameters

NameInTypeRequiredDescription
stringno—
stringno—
appointment_idquerystring (uuid)noFilter by appointment ID
x-lumbu-customer-tokenheaderstringnoOptional verified passwordless customer session. When present, results are limited to feedback for that customer's own visible, undeleted appointments.
updated_sincequerystring (date-time)noOnly return feedback updated on or after this timestamp

Response

PaginatedFeedbackList

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/appointment-feedback" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/locations

List locations

Parameters

NameInTypeRequiredDescription
stringno—
stringno—
is_activequerystringnoFilter by active status[true, false]
updated_sincequerystring (date-time)noOnly return locations updated on or after this timestamp

Response

PaginatedLocationList

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/locations" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/waitlist

List waitlist entries

Parameters

NameInTypeRequiredDescription
stringno—
stringno—
location_idquerystring (uuid)noFilter by location ID
service_idquerystring (uuid)noFilter by service ID
staff_idquerystring (uuid)noFilter by staff ID
created_at_gtequerystring (date-time)noFilter entries created on or after this timestamp
created_at_ltequerystring (date-time)noFilter entries created on or before this timestamp

Response

PaginatedWaitlistList

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/waitlist" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v1/orders/lookup

Look up an order with an active guest access token

Request body

OrderLookupRequest

Response

Order

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/orders/lookup" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'

Webhooks

plugin
GET
/api/v1/webhooks

List webhook subscriptions

Requires an integration credential with scope webhooks:read and the webhooks plugin.

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/webhooks" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
POST
/api/v1/webhooks

Register a new webhook subscription

Requires an integration credential with scope webhooks:write and the webhooks plugin.

Request body

CreateWebhookRequest

Response

WebhookSubscriptionCreated

Example

curl -X POST \
  "https://api.lumbu.pt/api/v1/webhooks" \
  -H "Authorization: Bearer {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE
/api/v1/webhooks/{id}

Delete a webhook subscription

Requires an integration credential with scope webhooks:write and the webhooks plugin.

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yesWebhook subscription ID

Response

OkResponse

Example

curl -X DELETE \
  "https://api.lumbu.pt/api/v1/webhooks/{id}" \
  -H "Authorization: Bearer {YOUR_API_KEY}"

Plugin: referral

plugin
GET
/api/v1/referral/owner

Get or create the authenticated customer's referral code

Returns the referral code owned by the customer session supplied in `x-lumbu-customer-token`, creating it when needed. The tenant is derived from the tenant API key and the customer identity is verified in that tenant. Email query or body input is not accepted or used for authorization.

Parameters

NameInTypeRequiredDescription
stringno—

Response

ReferralOwnerCodeResponse

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/referral/owner" \
  -H "Authorization: Bearer {YOUR_API_KEY}"
GET
/api/v1/referral/validate

Validate a referral code format

Parameters

NameInTypeRequiredDescription
codequerystringyesReferral code to validate (alphanumeric, 3-50 chars, hyphens/underscores allowed)

Response

ReferralValidationResponse

Example

curl -X GET \
  "https://api.lumbu.pt/api/v1/referral/validate" \
  -H "Authorization: Bearer {YOUR_API_KEY}"