Per-Salon Service Catalog Schema

WordPress custom post type · Per-salon Stage 1 intake form · 05 October 2026 (Monday, UTC)

1. The schema, in plain words

The per-salon service catalog schema is the WordPress custom post type orb_wallet_salon that the operator's Stage 1 intake form populates. The schema captures everything the per-salon Stage 1 site template needs: the per-salon's branding, the per-salon hours + address + phone, the per-salon service catalog, the per-salon stylist roster, the per-appointment deposit percentage, the per-salon charity-allocation default, the per-salon walk-in + house-call availability, and the per-salon Nuvei sub-merchant ID. The schema is the source-of-truth for the per-salon Stage 1 site; the schema is the source-of-truth for the per-salon online-booking flow; the schema is the source-of-truth for the per-salon online-payment processing.

The schema is structurally similar to the orb_wallet_restaurant custom post type (from the per-restaurant Stage 1 template wrapper pattern, Session 21.6.10.4) but with three vertical-specific additions: the per-stylist roster (with per-stylist Nuvei sub-account IDs for tip-allocation), the per-appointment deposit state machine (held / applied / refunded / forfeited), and the per-salon service-package + monthly-membership state machines. These three additions are the load-bearing pieces that make the per-salon say yes.

2. The schema (the actual fields)

post_title          = salon name
post_name           = salon slug (used in /book/<slug>/)
post_status         = publish | draft
_orb_sub_merchant_id = Nuvei sub-merchant ID (set at KYC)
_orb_logo_url        = URL to the per-salon logo
_orb_brand_dark      = hex color (default #2a2a2a)
_orb_brand_accent    = hex color (default #d4af37)
_orb_tagline         = short tagline
_orb_service_type    = haircut | color | skincare | massage | nails | barber | other
_orb_hours           = hours text
_orb_phone           = phone number
_orb_address         = street address
_orb_capacity        = stations (seats)
_orb_story           = story paragraph 1 + 2
_orb_charity_default = default charity + percentage
_orb_walk_in         = yes | no
_orb_house_call      = yes | no
_orb_deposit_pct     = 0-50 (% of service price; default 20)
_orb_tip_default     = 15 | 18 | 20 | 22 | 25 (% suggested)
_orb_services_json   = service catalog as JSON (see section 3)
_orb_stylists_json   = stylist roster as JSON (see section 4)
_orb_packages_json   = service packages as JSON (Phase 2)
_orb_memberships_json= monthly memberships as JSON (Phase 2)
_orb_tier            = small | medium | large | enterprise
_orb_subscription_status = active | paused | cancelled

3. The service catalog JSON shape

[
  {
    "section": "Cuts",
    "items": [
      {"id": "cut-womens", "name": "Women's Cut", "desc": "Cut, wash, blow-dry", "duration": 60, "price": 75},
      {"id": "cut-mens",   "name": "Men's Cut",   "desc": "Cut, wash, style", "duration": 30, "price": 45},
      {"id": "cut-kids",  "name": "Kids Cut",   "desc": "Age 12 and under", "duration": 30, "price": 25}
    ]
  },
  {
    "section": "Color",
    "items": [
      {"id": "color-single",    "name": "Single Process", "desc": "All-over color", "duration": 90, "price": 120},
      {"id": "color-highlights","name": "Highlights",     "desc": "Foil highlights", "duration": 120, "price": 180}
    ]
  }
]
The service catalog is the per-salon Stage 1 site's menu section. The Stage 1 site template renders the service catalog as a section-by-section list with per-service name + description + duration + price. The service catalog is captured at intake; the service catalog is updatable quarterly via the Stage 2 relationship check-in; the service catalog is the structural piece that drives the per-appointment booking flow.

4. The stylist roster JSON shape (the load-bearing piece for tip-allocation)

[
  {
    "id": "stylist-marisol",
    "name": "Marisol Rodriguez",
    "first_name": "Marisol",
    "initials": "MR",
    "specialty": "Color + Balayage",
    "nuvei_sub_account_id": "acct_Marisol_1234",
    "tip_default_pct": 20,
    "calendar_color": "#d4af37",
    "active": true
  },
  {
    "id": "stylist-jordan",
    "name": "Jordan Park",
    "first_name": "Jordan",
    "initials": "JP",
    "specialty": "Men's Cuts + Fades",
    "nuvei_sub_account_id": "acct_Jordan_5678",
    "tip_default_pct": 18,
    "calendar_color": "#3eae9e",
    "active": true
  }
]
The per-stylist Nuvei sub-account ID is the load-bearing piece for tip-allocation. When the client completes the per-appointment checkout, the tip is routed to the per-stylist's Nuvei sub-account; the salon's processing fee is calculated on the service amount only (not the tip); the stylist sees the tip in real-time in their Orb-Wallet dashboard; the salon's owner sees the per-stylist tip-allocation in the per-salon Orb-Wallet dashboard. The per-stylist tip-allocation is the structural protection for the per-salon say-yes: the incumbent platforms (Vagaro / Square Appointments / Booksy) don't route tips to per-stylist sub-accounts; the tip flows through the salon's Stripe processing; the stylist sees the tip on the salon's payroll cycle, not in real-time. Orb-Wallet's per-stylist sub-account tip-allocation is the load-bearing piece for the per-salon owner's daily-revenue math.

5. The per-appointment deposit state machine

The per-appointment deposit is the structural piece that protects the per-salon's book. The deposit is held by Orb-Wallet; the deposit is applied to the appointment's final total; the deposit is refundable up to 24 hours before the appointment; the deposit is forfeited to the salon on no-show. The state machine has four states:

StateTriggerOutcome
held Client books an appointment; Orb-Wallet holds the deposit Deposit is in Orb-Wallet's held-amounts pool; not yet applied to the salon's settlement
applied Client completes the appointment; Orb-Wallet applies the deposit to the salon's settlement Deposit is deducted from the appointment's final total; remainder is charged at the appointment's check-out
refunded Client cancels 24+ hours before the appointment; Orb-Wallet refunds the deposit to the client Deposit is returned to the client's payment method; the salon's book opens up for re-booking
forfeited Client no-shows or cancels within 24 hours; Orb-Wallet forfeits the deposit to the salon Deposit is added to the salon's settlement; the salon is compensated for the lost time slot

The deposit state machine is implemented as a WordPress custom post type orb_wallet_deposit with the four states as post statuses. The state transitions are managed by the orb-wallet-gateway plugin's /wp-json/orb-wallet/v1/deposit endpoint. The audit trail captures every state transition with timestamp + actor (client or operator or stylist). The state machine is the structural piece that protects the salon's book.

6. The per-appointment booking flow (end-to-end)

  1. Client visits the per-salon Stage 1 site. Client lands on the per-salon-branded site; client browses the service catalog; client picks a service + a stylist + a time.
  2. Client submits the booking form. The FlexiFunnels order form captures the service ID + the stylist ID + the appointment time + the client's contact info.
  3. The order form posts to the orb-wallet-gateway plugin's /wp-json/orb-wallet/v1/booking endpoint. The endpoint creates a per-booking record (custom post type orb_wallet_booking); generates an order ID; creates a per-deposit record (custom post type orb_wallet_deposit) in the held state; returns the order ID + the Nuvei payment-token for the deposit.
  4. FlexiFunnels renders the Nuvei hosted-fields iframe for the deposit payment. Client enters card data; Nuvei tokenizes; Nuvei processes the deposit; the deposit is held by Orb-Wallet.
  5. Client receives a confirmation email + a calendar invite. The confirmation includes the appointment details + the cancellation policy + the deposit state + the link to reschedule or cancel.
  6. Client arrives at the appointment. Stylist checks the client in; the appointment starts.
  7. Stylist marks the appointment complete. The orb-wallet-gateway plugin's /wp-json/orb-wallet/v1/appointment/complete endpoint transitions the deposit from held to applied; the appointment's final total is calculated; the remainder is charged at the appointment's check-out via Nuvei hosted-fields.
  8. Client tips the stylist at check-out. The tip-allocation flow routes the tip to the per-stylist's Nuvei sub-account; the salon's processing fee is calculated on the service amount only (not the tip).
  9. Salon sees the per-day settlement. The salon's Orb-Wallet dashboard shows the per-day processing fees + the per-day tip-allocation; the per-day settlement is the salon's net revenue.
  10. Client leaves a two-sided rating. The client rates the stylist; the stylist rates the client (the structural piece that protects the stylist from bad clients); the two-sided rating feeds the per-stylist's grade-tier + the per-salon's grade-tier.

7. The audit-trail surface, named honestly

Every per-appointment event is logged in the per-client's audit trail + the per-stylist's audit trail + the per-salon's audit trail + the operation-wide audit trail. The booking event is captured as a custom post type orb_wallet_booking; the deposit state transitions are captured as a custom post type orb_wallet_deposit; the tip-allocation is captured as a custom post type orb_wallet_tip; the two-sided rating is captured as a custom post type orb_wallet_rating. The four audit trails are queryable from the operator's admin, the per-salon owner's dashboard, the per-stylist's dashboard, and the per-client's dashboard. The audit trail is the structural piece of the trust-earning for the per-salon, the per-stylist, the per-client, and the operator.
Three failure modes the per-salon schema must defend against. (1) The per-stylist's Nuvei sub-account ID is wrong — the tip is routed to the wrong stylist. Defense: the per-stylist roster is captured at intake; the per-stylist roster is verified at KYC; the per-stylist sub-account is created in the Orb-Wallet white-label dashboard with the per-stylist's verified identity. (2) The per-appointment deposit state machine is stuck in held state — the deposit is never applied or refunded or forfeited. Defense: the orb-wallet-gateway plugin runs a daily cron job that checks for held deposits older than 30 days; the cron job transitions stuck deposits to forfeited with a manual-review flag. (3) The per-salon owner disables the per-stylist tip-allocation and keeps the tip flow through the salon's Stripe processing — the per-stylist sees the tip on the salon's payroll cycle, not in real-time. Defense: the per-salon SaaS subscription agreement requires the per-stylist tip-allocation flow; the per-salon owner's Orb-Wallet dashboard shows the per-stylist tip-allocation as a structural piece; the per-salon owner's Orb-Wallet account is disabled if the per-stylist tip-allocation is bypassed. The per-salon schema's structural protection is the per-stylist tip-allocation flow as a non-bypassable piece of the orb-wallet-gateway plugin.