Documentation menu

How to create a promo code in the CRM: limits, log

How to create a promo code for a discount, set total and per-client limits, issue a personal code, see the redemption log and generate codes in bulk.

Updated Nov 16, 2026About 10 minIntermediate

For roles:OwnerManager

Screen overview in words

What this page covers: What a promo code is · Creation and limits · Redemption log · Bulk generation

A promo code is a word a client says at the till to get a discount. One code is tied to one discount.

You open the Promo codes tab and press New promo code. You write the code yourself or generate it with a button. The length is not less than the value of the system rule, eight characters by default. Then you choose the discount, the limits and, if needed, a client: then the code works only for that person.

The code card shows how many times it has been used and how many are reserved by unfinished payments. A reserve appears when a client is already paying: this way two people cannot take the last use at the same time.

The Log button shows every use: status, client, order and discount amount. The Edit button changes limits, dates and activity.

For campaigns there is bulk generation: up to five thousand clients at a time. The result can be copied or downloaded as a file.

Where to find it:Main menuMoneyDiscounts and bonusesDiscountsPromo codesaddress: /finances/discounts?tab=promo

Who it is for: the owner and the manager issue codes for promotions and gifts, an administrator enters them during a sale.

Why this screen matters

A promo code gives a discount only to someone who knows the code: a client from the website, a participant in a promotion, a birthday person. Here you manage the codes: create, limit and switch them off, and check who used them.

What is on the screen

The “Promo codes” tab: a list of codes with the discount, usage limits, validity dates and active status

A promo code is tied to a discount and has a total limit, a per-client limit and a validity period.

  1. 1The “New promo code” button
  2. 2The “Log” button: who used the code
  3. 3The “Edit” button: limits, dates, activity
  4. 4How many uses are spent and reserved

The Promo codes («Промокоди») tab of the “Discounts and promo codes” page. Each card shows the code, the discount (with its size), the status (Active), the “Uses” counter (for example “3 / 10 (+2 reserved)”), the per-client limit, the validity period and the client if the code is personal. The buttons in a card: Log and Edit. At the top is the New promo code button.

Actions on the screen

How to create a promo code

The “New promo code” dialog: code, discount, usage limit, per-client limit, client search and dates

A code can be issued to a particular client or made public.

  1. 1The code: not shorter than the minimum length
  2. 2How many times the code can be used in total
  3. 3Validity dates of the code
  1. Press New promo code.
  2. Enter the Promo code or press the generate button next to it: it gives a random code without look-alike characters. Spaces are removed and the case becomes upper. The code is no shorter than the minimum length (the system rule “Minimum promo code length”, 8 by default, hard limit 6, maximum 50).
  3. Choose the Discount. The list has only active discounts.
  4. If needed set the Usage limit (how many times the code can be used in total) and the Per-client limit. Empty means no limit (the ∞ sign).
  5. The Client field makes the code personal: another person cannot activate it. Empty means a public code.
  6. Set the Start date and End date. A date without time: the start is from the beginning of the day, the end until the end of the day in the location's time.
  7. Press New promo code in the dialog. “Promo code created” appears.

The form keeps a draft for 7 days. Next to each field is an “i” icon with an explanation.

How to change or switch off a code

Press Edit in the card (the “Promo codes: change” permission is required; a click on the card opens the log). You can change the usage limit (not lower than already used plus reserved), the per-client limit, the dates and the Promo code is active switch. The code itself, the discount and the client do not change. A switched-off code is not accepted at payment and can be switched on again.

How to see who used a code

Promo code redemption log dialog: statuses, client, order and discount amount in hryvnias

The log shows who used the code and when, and whether the payment was completed.

  1. 1Status: reserved, used, released
  2. 2The order where the code was applied

Press Log. In the table: Status, Client, Order, Discount (in hryvnias), Time. The order number opens its card.

StatusWhat it means
ReservedThe client is already paying; the use is held until the payment ends (shown “until …”)
UsedThe payment succeeded, the discount was given
ReleasedThe payment did not go through or was cancelled, the reserve was removed
RestoredThe use was returned after a full refund of the order (by rule)

How a promo code works in a sale

  • One promo code per order, and only on lines without an automatic discount of their own (by the rule “Discount or promo code” it may be otherwise).
  • A use is reserved at payment. If two people pay for the last use at the same time, one payment goes through and the other gets “Promo code is no longer available”: see Price changed.
  • A use is counted only after a successful payment and only if the code gave a discount.
  • The reserve lasts until the payment finishes or the time of the rule “Promo code reservation during payment” passes (60 min by default).
  • For any reason of refusal the client sees the same “Promo code is invalid”. After 10 failed attempts within an hour, entering is temporarily blocked (the rules “Promo code: failed attempts before lock” and “Promo code: attempts window”).

Bulk generation

The Bulk generation tab: choose a discount and the Code prefix (“BDAY” gives codes BDAY_…), then the audience: Client list (add through search) or Segmentation (Gender, Age from, Age to). For birthday codes fill in Days before the birthday and Days after the birthday: the dates will apply separately for each client.

After pressing Generate promo codes you will see Generated, Skipped (clients who already have a valid code with this prefix) and a list of codes with client names. The buttons Copy codes and Download CSV (a UTF-8 file, columns “client;code”). No more than 5,000 clients at a time.

Permanent birthday issuing is set up in the discount card: see New discount.

Typical situations

A code “did not work” at the till

Check in the log and the card: whether it is active, whether the limits are used up, whether the period is valid, whether it is personal for another client. The client sees only “Promo code is invalid”, and you see the reason.

I want to issue a code to a particular client

Create a code and choose the client in the Client field, with a per-client limit of 1.

The card says “+2 reserved”

Two clients are paying for an order with this code right now. The reserve is removed when the payment ends or is cancelled.

When the system refuses

The system answers: «Промокод … вже існує»

A code must be unique. Change it or press the generate button.

The system answers: «Не можна створити промокод для неактивної знижки»

Choose an active discount or activate the one you need.

The system answers: «Код має містити щонайменше … символів»

Lengthen the code: the minimum is set by the system rule “Minimum promo code length”.

The system answers: «Не менше … (використано + зарезервовано)»

The usage limit cannot be lower than what is already used and reserved. Increase the value.

The system answers: «Забагато клієнтів для однієї генерації (понад …). Звузьте сегмент або розбийте список.»

Split the audience into several generations of up to 5,000 clients each.

The system answers: «Не більше … клієнтів за одну генерацію»

The same limit in the form itself. Reduce the list.

Who can see and do what

RoleViewActions
OwnerPromo codes, logCreate, edit, generate in bulk
ManagerDepending on the “Promo codes” permissionsView, create, change
Admin, cashierDoes not see the sectionEnters a code in a sale

Frequently asked questions

How many characters must a promo code have?

Not fewer than the value of the system rule “Minimum promo code length” (8 by default, hard limit 6). Maximum 50. The case does not matter.

Why does the counter show “+2 reserved”?

These uses are reserved by unfinished payments. If a payment fails, the reserve is removed and the code is available again.

Can a code be used twice in one order?

No. One code per order, and it applies to lines without an automatic discount of their own.

Is a code returned if the client returned the order?

By the rule “Restore promo code on refund” (no by default) the use is restored only on a full refund.

Where do I get a file with the generated codes?

After bulk generation press “Download CSV”. The file has the columns “client;code” and opens in Excel.

 

Back to all documentation