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.
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
[
{
"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}
]
}
]
[
{
"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-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:
| State | Trigger | Outcome |
|---|---|---|
| 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.
/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./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.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.
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.