Skip to content

Lockouts

A lockout is a monthly studio subscription: ongoing access to a private studio with recurring billing. This guide covers creating, updating, and canceling lockouts.

Finding Lockouts

There are a few ways to find existing lockouts:

  • From the staff dashboard, click Lockouts for a filtered view
  • From Reservations, filter by resource type to show only monthly studios
  • Press ⌘K and search for the member's name

Creating a Lockout

From the staff dashboard, click Create Lockout, or from Reservations, click Add Lockout.

1. Select the Member

Choose an existing user or create a new one. Creating a new user sends them an invite to set up their account.

2. Set a Referral (Optional)

If this member was referred by another member, select that person here. The referral credit is applied automatically when the lockout activates.

3. Choose Location and Studio

Select the location first, then choose from the available studios at that location. Studios in maintenance or other non-active states are blocked from receiving checkout sessions. If you select one, the form shows a warning and disables submission until the studio is returned to active status.

4. Set the Price

The Pricing section shows the studio's standard rates. Each payment method has its own card:

  • Card: what they pay with a credit/debit card
  • Bank Account: discounted rate for ACH payments

To set a custom price for this lockout, check Override for this lockout under the relevant payment method and enter the amount. Overrides are per-method: you can override card without affecting the bank account rate. If the studio already has a resource-level override configured, an Override Active indicator appears next to the rate.

When you set an override on one method, the form suggests a matching price for the other based on exact fee math.

You can also apply a Discount Code (Stripe coupon) in this section if one applies.

5. Set the Billing Date and Proration

The Billing section sets the billing anchor: the day of month the member will be charged each month.

If the start date is in the past or future (not today), a radio group appears:

  • Start and charge on billing date: access and billing begin on the anchor date
  • Start and charge immediately: access begins now, a prorated partial-month charge runs at checkout

6. Set Their Access Code

The system generates an access code automatically, but you can customize it. This code works for all their reservations and stays the same until you change it.

Click Generate to create a new random code if needed.

7. Choose Insurance

Choose one of these options:

  • Coverage tier: adds insurance to their subscription at an additional cost
  • Member's own policy: record the provider and policy number if the member has them at signup

If the member has not given their policy details yet, pick a coverage tier as a placeholder. They can change it to their own policy, a different tier, or confirm it on the review screen before paying.

The summary shows everything you've configured. When ready, click Generate Payment Link.

This creates a pre-filled checkout for the member. You can:

  • Show the QR code: if they're with you in person
  • Copy the link: to paste into a message
  • Email them: sends a "Your studio is ready" email with the link

The Invitation Holds the Studio

Generating the payment link creates an invitation, and the studio is held the moment you generate it. While the invitation is open:

  • The studio shows an Invited status and can't receive a second invitation, and no one else can book or be invited to it.
  • The invited member sees the pending invitation in their own account right away (see below); they don't have to wait until they pay to have something to look at.

The hold is not permanent:

  • It expires after 7 days if the member hasn't completed checkout. On expiry the studio is released and the location's community manager is notified that the prospect went cold.
  • Resending the invitation email resets the 7-day clock: use this to give a live prospect more time.
  • Cancelling the invitation releases the hold immediately. Open the invitation (or the reservation) and cancel it; the studio frees up and the entry disappears from the member's account. You can't cancel an invitation the member has already used.

An invited hold does not grant access: door codes are only created once the member completes checkout and payment succeeds.

What the Member Sees

As soon as you send the invitation, before they pay, the member sees an Invited entry in their account (/account/overview) showing the studio, the intended start date, and the invitation's expiry date. Selecting it takes them to the same checkout page. The entry drops off once they complete, you cancel, or it expires.

When the member opens the payment link, they see a checkout page with everything pre-filled:

  • Studio details and pricing
  • Option to add their own promo or referral code
  • Payment method choice (bank account for discount, or card)

After they complete payment:

  • The reservation shows as Pending until the start date
  • They can see their first billing date and when access begins
  • Their access code activates when the lockout starts

Future-dated lockouts: If the start date is in the future, the member receives a welcome email without an access code. When their billing date arrives, the system automatically activates the lockout: setting the start time, creating the access code, and sending a "Your studio is ready" email with their code. No staff action is needed; activation happens automatically when the first invoice is finalized.

Bank account payments: Members who pay with a bank account (ACH) get access immediately; they don't have to wait for the bank transfer to clear. The payment shows as Pending while processing (typically 3–4 business days), then updates to Paid once the transfer completes. If the bank transfer fails, the system automatically revokes access, removes their door code, and cancels the lockout; no manual cleanup needed.

Waitlist deposit: If the customer was on the waitlist for this location, their deposit automatically applies to the first payment. The checkout shows the reduced amount with "Waitlist deposit applied."

Staff Notifications

Staff automatically receive email notifications when lockouts are created or cancelled:

  • On creation: the location's community manager receives an email with the customer's contact info, studio details, and start date
  • On cancellation: the community manager receives an email with the cancellation details
  • On invitation expiry: when an invitation hold lapses after 7 days, the community manager is notified that the prospect went cold

These notifications help staff stay aware of who's moving in and out of their facility.


Updating a Lockout

To change a member's studio, adjust their price, or update their insurance, open the lockout from the reservations list.

What You Can Change

  • Studio: move them to a different studio at the same location
  • Location: transfer them to a completely different facility
  • Price: adjust their monthly rate up or down
  • Insurance: add, remove, or change their coverage level
  • Billing Anchor Day: change which day of the month they're billed (1–28)

When you change the studio or location, the price updates automatically based on that studio's rate.

Changing a Member's Payment Method

Members change their payment method in Billing in the account menu. Staff can't change it from the lockout screen. Under Current subscription, the billing portal shows one of two layouts:

The member sees What pays the studio How the member changes it
A card listed below the next billing date, with an edit icon That card Click the edit icon next to it and pick the new card. Making a new card the default does not change this studio.
No card below the billing date The card marked Default Add the new card and keep Use as default payment method checked.

Most studios rented before November 2026 show the first layout; newer studios show the second.

"I updated my card but you charged the old one": they almost always made a new card the default while their studio has its own card listed. Walk them through the edit icon under Current subscription, then retry the failed charge from the payments list.

"Bill this one studio to a different card": in the first layout the member does it with the edit icon. In the second layout, ask Platform to set it on that studio.

Switching between card and bank can change the member's price. When it can't change automatically, staff get an alert to set the new price.

Changing the Billing Anchor Day

The Billing Anchor Day dropdown lets you change which day of the month the member is billed. For example, moving from the 1st to the 15th shifts their billing cycle accordingly.

When you change the anchor day:

  • The member is not charged for gap days between now and the new anchor date
  • Their next invoice generates on the new anchor day
  • The reservation start date updates to match

This field is disabled for cancelled lockouts or those scheduled to cancel.

Studio Pricing

The Pricing section shows the member's current subscription price: the amount they were charged when the lockout was created. Their active payment method is marked with "(currently subscribed)."

To adjust the price, make changes directly in the Stripe Dashboard via the link in the Pricing section. Price changes on existing lockouts are handled through Stripe.

Price Preview

As you make changes, the form shows:

  • Original price on the left
  • New price on the right
  • A detailed breakdown of what's changing
  • Any credits the member has that will apply

Timing Options

Choose when the changes take effect:

  • Immediate: changes happen today with prorated charges
  • Next billing cycle: changes apply on their next billing date (no charge today)

If you choose immediate, the system calculates prorated amounts based on where they are in their billing period. Any credits on their account apply to the amount due.

Insurance Changes

If you're removing insurance or switching the member to their own policy, choose a coverage tier or record the member's own policy (provider and policy number). If the member has not given their policy details yet, keep a coverage tier in place; they can change it on the review screen before paying. At a location where insurance is mandatory, the update needs the provider and policy number if you're switching to the member's own policy: it cannot be saved with neither a tier nor an own-policy record.

Saving Changes

Review all the details, add any notes, and click Save. The reservation update happens immediately. The system then updates the subscription in Stripe; you can verify the changes there if needed.

If Stripe doesn't confirm the billing change right away, you'll see a warning toast saying the change is queued for retry instead of the usual success message. The studio move and other reservation changes already took effect; only the Stripe billing side is still catching up. It retries on its own over the next several hours, so no action is needed the same day. If the subscription in Stripe still shows the old studio or the old price a day later, open the lockout and save the update again. A warning that a later update supersedes this one means someone saved a newer change to the same lockout; the newest save is the one Stripe follows.


Canceling a Lockout

When a member needs to move out, open their lockout and click Cancel Lockout in the top right.

Cancellation Options

Choose one under When:

  • At end of billing period: keeps access until the current billing period ends
  • After the last day: you pick the member's last day, and access ends at midnight after it. A last day inside the period they already paid refunds nothing.
  • Immediately: ends access and billing right now

"Period end" means the end of their billing cycle. For example, if they pay on the 1st and you cancel mid-month, they keep access until the next 1st.

Recording Why the Member Is Leaving

Every cancellation needs a reason. Under Why is the member leaving?, choose the one that fits best:

  • Moving away
  • Cost
  • Not using it enough
  • Project or band ended
  • Found another space
  • Studio issue (noise, condition, access or neighbors)
  • Other

The Cancel lockout button stays off until you pick a reason. Use Note (optional) for anything worth keeping, up to 500 characters; Other does not need one. We use these answers to understand why members leave, so ask the member if they have not said, and pick the closest match rather than Other.

The reason belongs to a member's own choice to leave. A lockout that ends for another cause, such as unpaid bills or a cancellation made in Stripe, has no reason. If you change the last day or cancel again, the new reason replaces the old one.

Changing Your Mind

If you scheduled a cancellation (at period end or after a last day) and the member decides to stay, click Don't Cancel to keep the subscription active. This only works before the lockout actually ends, and it clears the reason you recorded.

Once you cancel immediately, the lockout is ended and shows the cancellation date.


Billing Status

When editing an existing lockout, the Billing Anchor section shows subscription health at a glance:

  • Current Billing Period: start and end dates for the current billing cycle, displayed in the location's timezone
  • Transfers To: the location receiving revenue from this lockout, with a link to the Stripe connected account
  • Last Payment: when the customer was last billed and how much
  • Last Transfer: when funds were last sent to the location and how much
  • Next Payment: when the customer will next be billed and the expected amount (pulled from the Stripe upcoming invoice preview)
  • Monthly Subscription: total monthly cost (studio + insurance)
  • Cancels On: if scheduled to cancel, shows when access expires

All billing dates display in the location's timezone, not UTC, so what you see matches the member's local experience.

Understanding Transfer Status

For payments to transfer correctly to the location:

Check What It Means
Transfers To shows location name ✅ Transfer routing configured correctly
Transfers To shows "Not configured" ⚠️ Location missing Stripe account, transfers won't work
Last Payment exists but no Last Transfer ⚠️ Payment charged but not transferred, investigate

Troubleshooting with Validation Script

For deeper diagnostics, use the lockout validation script from the command line:

pnpm --filter @mg/api tsx scripts/validate-lockout.ts <reservationId>

The script checks the complete lockout-to-transfer pipeline and outputs a status report:

Check What It Validates
Reservation structure Reservation exists with correct type and user
Resource assignment Studio is assigned correctly
Location configuration Location is linked properly
Stripe subscription Subscription exists and is active/trialing
Subscription metadata Contains correct purchaseType, reservationId, locationId
Payment method Customer has valid payment method
Transfer setup Location has connected Stripe account
Access codes User has active codes for facility entry
Payment history Records of paid invoices
Transfer history Funds actually transferred to location

Result Indicators

  • ✅ PASS: component configured correctly
  • ❌ FAIL: critical issue requiring immediate attention
  • ⚠️ WARN: potential issue to review
  • ℹ️ INFO: non-critical information

Common Failures

Issue Cause Fix
"Location has no stripeAccountId" Location missing Stripe connect Set up connected account for the location
"No Stripe subscription ID stored" Reservation not linked to Stripe Re-create the lockout
"No access codes found" User can't open the door Generate or assign an access code
"No transfer found for charge" Transfer webhook failed Check Stripe dashboard or re-trigger