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:
| Field | Description |
|---|---|
| Name | e.g. "10-Class Bundle" |
| Description | Optional details shown to the student at checkout |
| Price | Total purchase price |
| Sessions | Number of class sessions included |
| Duration (months) | How long the package is valid after purchase |
| Allowed Dance Types | Leave blank to allow all types; restrict to specific types |
| Allowed Levels | Leave blank to allow all levels |
| Currency | ISO 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.