Vouchers & codes | CMS

Vouchers & codes

A code is made for every bundle or voucher bought (set them up under Services & products). Whoever has the code enters it in the basket, and the sessions it includes are then already paid for. Places used and left are counted from bookings; a refunded booking gives its place back.

{#if form?.message}{/if} {#if issued}
Code {issued} issued — send it to whoever it’s for.
{/if} {#if data.passesError}{/if} {#if !data.bundles.length}
No bundles yet — add one under Services & products (type “Bundle / voucher”).
{/if}
{#if data.q}Show all{/if}
{#each passes as pass (pass.id)} {@const s = passStatus(pass)} {:else} {/each}
CodeBundleBought by / forLeft to bookExpiresStatus
{pass.code} {pass.name} {pass.email || (pass.anonymisedAt ? 'Anonymised' : pass.order ? '—' : 'Issued here')} {#if pass.recipientName}for {pass.recipientName}{/if} {#each bookable(pass) as part (`${part.item}|${part.minutes}`)} {part.left}/{part.count} {partLabel(part)}{part.held ? ` · ${part.held} in a basket` : ''} {/each} {pass.expiresAt ? dateOnly(pass.expiresAt) : 'Never'} {s.label}
{data.q ? 'No codes match that search.' : 'No codes yet — they appear here when a bundle is bought.'}
{#if passes.length === 200}

Showing the newest 200 — search to find older codes.

{/if}
{#if managing} {#if manageError}{/if}

{managing.name}{managing.recipientName ? ` · for ${managing.recipientName}` : ''}

{#if managing.message}

“{managing.message}”

{/if}

{managing.created ? `Created ${formatDateTime(managing.created, data.timezone)}` : ''}{managing.order ? ` · order ${managing.order}` : ' · issued here'}

{#each managing.parts as part (`${part.item}|${part.minutes}`)} {#if part.redeemable} {:else} {/if} {/each}
PartUsedIn a basketLeftShare of the price
{part.count}× {partLabel(part)}{part.used}{part.held}{part.left}Handed over with the purchase{money.format(part.value)}{part.count > 1 ? ` (${money.format(part.value / part.count)} each)` : ''}

The share of the price is what each part is worth for a partial refund (refund in Stripe, then mark the booking’s order refunded to give its place back).

{/if}
{#if issueError}{/if}

A code without a purchase — a gift from you, or a replacement. Nothing is charged.