Block sale and coupons
Block pricing, quotes, concurrency, discounts, and safe reset.
Block sale and coupons
Block sale raises ticket prices as an Event sells. It is configured per Event and uses the paid-ticket counter as the authoritative source for the next position.
Configuration
| Conceptual field | Purpose |
|---|---|
| Base price | First block value in sats |
| Block size | Number of tickets per step |
| Percentage increase | Increase between blocks |
| Mode | compounding or linear |
In compounding mode, each block increases from the previous one. In linear mode, each block adds the same increment calculated from the base. The UI and API quote are authoritative for exact rounding.
Quote multiple units
A purchase may cross blocks. For example, if two positions remain in the current block and four tickets are purchased, two use the current price and two use the next price. The response preserves the server-calculated breakdown and subtotal.
Pending reservations may temporarily bias the quote to reduce overselling. Under concurrency, quoted and finally assigned blocks may differ; both are stored for audit. The consecutive ticket number is assigned atomically when payment settles.
Coupons
A coupon is validated within the Event and applies to the block-adjusted subtotal. It may have a validity period, total usage limit, per-identity limit, eligible types, or fixed/percentage value.
Always:
- validate the code through the Event operation;
- show the returned breakdown;
- send the code again during registration;
- accept the total confirmed by the server as final.
Do not cache a validation result for indefinite reuse. Capacity, uses, and price may change before registration completes.
Each coupon use is one order, regardless of how many tickets it holds. The use is reserved when the order is created: while it waits for payment, nobody else can take it. If the order expires unpaid or is declined, the use becomes available again. When two people try to take the last use at the same time, only one succeeds and the other receives 409 with «Cupón agotado».
Coupon campaigns
A coupon campaign is a batch of codes that share one configuration, meant to be handed out outside email (sponsors, press, social media). Create it from the Event's Cupones tab: in the Campaña sub-tab, the Nuevo cupón de campaña button asks for a name, mode, prefix, discount, uses, and expiry.
- Individual: generates the requested number of unique codes (up to 1,000). Uses are counted per code.
- Shared: generates a single code. Uses set how many times it can be redeemed in total.
Each batch has its own page with usage statistics and exports as CSV, Excel, TXT, JSON, and a printable PDF with one QR per code. The link and the QR open the public page with the coupon pre-filled (?coupon=). Coupons generated from an email campaign also form a batch and export the same way.
On a manual individual batch, Agregar cupones generates more codes (up to 1,000 at a time) with the batch's configuration.
Deactivating the batch deactivates all of its codes. Deleting it removes unused codes and keeps redeemed ones inactive so order history is preserved.
Conceptual example
base: 10,000 sats
block: 10 tickets
increase: 20% compounding
tickets 1–10 → 10,000 sats each
tickets 11–20 → 12,000 sats each
tickets 21–30 → 14,400 sats eachThis example explains the model; it does not replace an API quote.
Change configuration during sales
Changing base price, block size, percentage, or mode changes future quotes and can complicate reconciliation. Before doing so:
- export or record current configuration;
- review pending orders;
- communicate the change if pricing was announced;
- complete a test checkout after saving.
Sales reset
The block sale reset is destructive: it may remove attendees, orders, and tickets for the Event to restart the counter while preserving configuration. Use it only for a test Event or after explicitly confirming that no data must be preserved.
Before resetting:
- Confirm the Event slug and ID.
- Verify there are no real or pending payments.
- Export any evidence that must be retained.
- Notify the team and close checkout.
- Retest registration, payment, and numbering.