Voucher Code System for Organization Limits Change #383

Open
opened 2026-01-30 10:04:13 +00:00 by tobru · 0 comments
Owner

Stories

As a user, I want to test Servala

Implementation Notes

In #380 we make it possible to configure limits per organization. To gather interest and attract users, we intend to distribute voucher codes to unlock more possibilities.

Implement a voucher system that allows the creation of voucher codes, when applied by the user, changes the organization limit (see #380) according to the voucher configuration.

A voucher code has:

  • unique code (human entry, not auto generated)
  • number of times it can be used (when not set, no limit, when 0 cannot be used anymore)
  • validity period (when not set, valid all the time)
  • setting which organization limit (#380) gets configured when the voucher code is applied

The voucher code can be added by the user in the "Organization Details" view.

Validation when applying a voucher code:

  • Voucher code still in validity period?
  • Number of times it can be used not 0?
  • Organization limit from the voucher code different from what is already configured on the organization?
  • Can limits be applied?

Inform the user about any issues and ask them to contact support for any help.

When validity passes:

  • Apply configured organization limit to the organization
  • Decrement "number of times it can be used" on the used voucher (when set)
  • Log in auditlog which user used which voucher code on which organization
## Stories _As a user, I want to test Servala_ ## Implementation Notes In #380 we make it possible to configure limits per organization. To gather interest and attract users, we intend to distribute voucher codes to unlock more possibilities. Implement a voucher system that allows the creation of voucher codes, when applied by the user, changes the organization limit (see #380) according to the voucher configuration. A voucher code has: * unique code (human entry, not auto generated) * number of times it can be used (when not set, no limit, when 0 cannot be used anymore) * validity period (when not set, valid all the time) * setting which organization limit (#380) gets configured when the voucher code is applied The voucher code can be added by the user in the "Organization Details" view. Validation when applying a voucher code: * Voucher code still in validity period? * Number of times it can be used not 0? * Organization limit from the voucher code different from what is already configured on the organization? * Can limits be applied? Inform the user about any issues and ask them to contact support for any help. When validity passes: * Apply configured organization limit to the organization * Decrement "number of times it can be used" on the used voucher (when set) * Log in auditlog which user used which voucher code on which organization
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
servala/servala-portal#383
No description provided.