Skip to content

Complete registration and availability rules

This guide describes the current source contracts for the Browser API and @wodira/browser. Check that the deployed API and installed SDK both support the features you use. Example identifiers are placeholders: replace them with identifiers from your event.

Load getEvent(eventId) and getPricingCards(eventId) before displaying registration. A quote does not reserve capacity or guarantee a final price: the server revalidates checkout.

Condition Behaviour
Private, unpublished or another organization’s event Unavailable through the publishable key.
Before registrationStartAt New registrations are blocked.
After registrationEndAt Closed. When absent, the cutoff defaults to two hours before the event starts.
Category with salesOpen: false Closed even when capacity remains. Existing registrations are preserved.
quota: 0 No places; not unlimited. quota: null means unlimited capacity.
Full category Checkout is rejected, including guest registrations.
Availability changes while completing the form Dates, publication and capacity are rechecked inside the transaction.

Pricing includes startDate, registrationStartAt, registrationEndAt, timezone; cards include salesOpen, quota, registered, basePrice, activePrice, tiers. Opening and closing instants are inclusive. An active free price can be null: do not use activePrice ?? basePrice, which could turn a free tier into a paid one.

An existing category defaults to open sales; clients encountering an older response without salesOpen must not interpret its absence as closed. An absent registrationStartAt adds no opening-date restriction.

Use the category’s teamSize, allowed genders/compositions and age rules (including combined age when configured). The Lit form validates participant eligibility against the event date/timezone; the server remains authoritative. Primary and guest teams can have different sizes and requirements.

Browser checkout intentionally excludes platform-only fields such as products, referralCode and useReferralCredit; the native web registration’s entire commercial payload is not interchangeable with this API.

selectedSupplementIds remains compatible for simple selections. Use supplementSelections for options and quantities, on the primary registration and on each guest:

const selection = {
categoryId: 'cat_123',
purchaserEmail: '[email protected]',
supplementSelections: [
{ supplementId: 'supp_shirt', optionId: 'option_m', quantity: 1 },
],
guestRegistrations: [{
categoryId: 'cat_guest',
supplementSelections: [{ supplementId: 'supp_meal', quantity: 2 }],
}],
promocode: 'EARLY',
};
const summary = await wodira.getRegistrationSummary(selection);

Supplements support PER_REGISTRATION, PER_TEAM_MEMBER, PER_UNIT, active options, minQuantity/maxQuantity, and category-dependent requirements. Use the server’s total instead of applying a single multiplication rule.

The example is a quote. Session creation also requires guestEmail, guestName, teamName and athletes for each guest; optional fields include club, customFields and waiversAccepted. A quote’s category alone is not a complete checkout registration. Each registration keeps its own category, participants and supplements.

Send customFields: [{ fieldId, value }] per registration, limited to fields applicable to its category. Do not include duplicate IDs or stale answers from a previous category.

Type Value
TEXT, TEXTAREA String; nonblank when required.
NUMBER Finite number or valid numeric string.
DATE Valid ISO date or compatible ISO datetime.
SELECT, RADIO One configured option.
MULTI_SELECT Array of configured options, without duplicates.
CHECKBOX Boolean; true when required.

Empty optional answers are treated as absent. Lit and the API share answer validation; guests have separate answers.

Set termsAccepted: true and provide required waiversAccepted. Checkbox acceptance does not replace legalSignature when a signature is required.

The signature contains signerName, signerIdNumber, authorityAccepted: true, locale, waiverVersions: [{ waiverId, version }], and strokes (arrays of { x, y, t } points). Minors may require minorRelationship and guardianAuthorityAccepted: true. Coordinates are normalized; the server checks trace quality and limits. Never fabricate or reuse someone else’s signature.

The Lit form collects a signature and representation for applicable primary/guest documents. Updated document versions require signing again.

Check summary.teamCompletion.available and deadlineAt before using deferredTeamCompletion. It is unavailable for individual categories, signature-required registrations or expired deadlines. Responses may include participantDataStatus: 'PENDING_PARTICIPANTS', pendingParticipantCount and a private teamManageToken. Payment completion does not mean that every participant’s details are complete.

Send promocode to both quote and session endpoints. The server checks validity dates, redemption limits, email restrictions, organization and eligible categories. Do not discount all guests or supplements in client code.

Test example: primary entry €40 + supplement €5 + guest entry €60 + guest supplement €12 = €117 subtotal. A 10% code limited to the primary category discounts €4: €113 after discount, before applicable fees. Read appliedCoupons, applicationFee, processingFee, checkoutFeePayer, total and currency from the response.

A code may expire or run out between quote and checkout. Show the reason and refresh the quote; do not silently proceed without the discount.

const session = await wodira.createRegistrationCheckoutSession(checkoutInput);
if (session.completed) {
showConfirmation(session.orderId);
} else if (session.sessionUrl) {
window.location.assign(session.sessionUrl);
}

This fragment assumes your validated checkoutInput and your own showConfirmation function. A free/fully discounted purchase with no buyer-paid fees can return completed: true, sessionId: null, sessionUrl: null. For paid purchases, a session or success redirect alone does not prove payment: WODira processes the payment provider’s confirmation.

Retain the same idempotencyKey and checkoutResumeSecret when retrying an unchanged attempt; use new values after changing the selection. See errors and idempotency.

await wodira.sendRegistrationReceipts('event_123', { email: '[email protected]' });

Both lookupRegistrationReceipts and sendRegistrationReceipts request email delivery and return { accepted: true }. Neither lists purchases nor reveals whether the email has registrations. Acceptance does not confirm email delivery; do not infer “no tickets” from it.