Skip to main content

Packages

Packages (class bundles) let students pre-purchase a set number of class sessions at a discounted rate.

Creating a package

Go to Packages → New Package and configure:

FieldDescription
Namee.g. "10-Class Bundle"
DescriptionOptional details shown to the student at checkout
PriceTotal purchase price
SessionsNumber of class sessions included
Duration (months)How long the package is valid after purchase
Allowed Dance TypesLeave blank to allow all types; restrict to specific types
Allowed LevelsLeave blank to allow all levels
CurrencyISO 4217 code (e.g. USD, MXN)

Student purchase

Students can purchase packages through the public package listing on your website (powered by the Packages API or the PackageList component). The purchase URL is:

https://www.bailaya.com/packages/{packageId}

Using a package

When a student books a class that has Allow Packages enabled, they can choose to use their active subscription instead of paying per class. Each booking deducts one session from their remaining count.

Expiry

Packages expire automatically after the configured duration. Expired subscriptions are processed daily by a scheduled job and their status is updated to expired. Students cannot use expired packages.