↵ to select ↑↓ to navigate
iVendNext

iVendNext

Open in ChatGPT
Ask ChatGPT about this page
Open in Claude
Ask Claude about this page

Coupon rules

Retail Extensions · Rule · checked 2026-11-06

Watch the film: Coupon rules | App library spotlight

Coupon rules adds three rules your coupons cannot set on their own: a coupon for a customer's first purchase only, a coupon only for customers in one customer group, and a coupon that needs a sale of a given size for each use (one coupon for each so much spent). The rules are checked when the cashier presses Pay, before any money is taken. The person who sets up your coupons writes the rules; the cashier only sees a refusal when a coupon does not apply. This page covers what the app adds, how to write your rules, what the install switched on, and how to remove it.

What it does

When the cashier presses Pay, your iVendNext sends the priced sale to the app's service, coupon or not. A sale with no coupon is allowed at once. For a sale with a coupon, the service reads your rules, counts the customer's earlier sales if a rule asks for a first purchase, and answers before the payment screen opens.

The cashier sees When
The payment screen, as always The sale has no coupon, or no rule refuses its coupons. A coupon with no rule is not refused, while the app's user can read your site.
"This sale can't be paid", with "Coupon ⟨coupon⟩ is for a first purchase only; this customer has bought before. Remove it, or add the new customer." The coupon is for a first purchase only, and the sale's customer already has a submitted sale, at the till or in the back office (a return against a sale does not count). Nothing is paid.
"This sale can't be paid", with "Coupon ⟨coupon⟩ is only for customers in ⟨group⟩. Remove it, or add a customer in that group." The coupon is only for one customer group, and the sale's customer is not in it. Nothing is paid.
"This sale can't be paid", with "Coupon ⟨coupon⟩ needs a sale of ⟨amount⟩; this sale is ⟨total⟩. Remove a coupon, or add to the sale." (with two or more such coupons: "Coupons ⟨coupons⟩ need a sale of …") The coupons on the sale that have a Sale needed for each use need more, added together, than the sale's total. Nothing is paid.
"This sale can't be paid", with "Coupon rules cannot read your site: it refused the app's user. Remove the coupon, or ask your administrator to check the app's setup." Your site refused the app's user, for example after its key was withdrawn, the user was disabled or a right was not given. Within a minute, every coupon is refused then, with or without a rule, until the setup is put right.
The sale goes on, and is flagged on Sales to review The service did not answer within 3 seconds: then every sale is flagged, coupon or not. Or, for a sale with a coupon, the service has not been sent the app's user yet, or could not read your iVendNext in time, or got an error from it.

The till always names a customer: its walk-in customer until the cashier adds one, and the walk-in customer has usually bought before. So a first-purchase coupon rung before the new customer is added is refused when the walk-in customer has bought before, which is usual, and the words say to add the new customer.

After a coupon is allowed, the till keeps the answer for exactly that sale. If the cashier then adds a line, changes the customer or adds another coupon, the till says "The sale changed after the check. Press Pay again." Pressing Pay again checks the sale again.

An exchange's new items are checked as a sale. A return never carries a coupon: the till clears a return's coupons and does not let a coupon ride beside a returned item. The app writes nothing to your iVendNext.

What you set up first

  1. Install the app from the App library (see About Retail Extensions). The install adds the app's own user, ivendnext_cpn@integration.invalid, with one role, IVENDNEXT CPN Integration. That user works through the API only and can never sign in to Desk. The check comes in switched on for every POS Profile, with your consent recorded.
  2. The install gave IVENDNEXT CPN Integration Read on POS Invoice and on Sales Invoice, with Only If Creator unticked (iVendNext POS 2.1.0.691 or later; on an earlier site, add them in Role Permissions Manager). The first-purchase rule counts a customer's sales with this user: with User Permissions or Only If Creator, the count can read 0 and a returning customer's coupon is allowed.
  3. Search Desk for Registered Application and open IVENDNEXT CPN Rules. The install named the app's user on it. Nobody can give it a password or another role. Give the app's user no User Permissions.
  4. Write your rules (below).
  5. Limit the check to your stores, if you need to (below).
  6. In the App library, find the app under Your apps and press Details. Your site connects the app by itself after the install, and Hosted app says that it sent the service the key of the app's user. Press Connect again only if the site could not reach the app, or a key was lost or changed.

A cashier can change a customer's group at the till, so a rule that names a customer group matches the group the customer has at the sale. Treat a customer's group as the till's own record.

Rules

Search Desk for Coupon rule and press Add. Make one record for each coupon you want to restrict. The record is named by its coupon. Only a System Manager can add or change these records, unless you give another role rights on them in Role Permissions Manager.

Field What it does
Coupon The coupon this rule is for, chosen from your coupons (search Desk for Coupon to make one). One rule per coupon.
Enabled Untick to stop using the rule. The coupon is then checked by your coupon's own settings only.
First purchase only Refuses the coupon for a customer who already has a submitted sale, at the till or in the back office (a return against a sale does not count).
Only for customers in this group Refuses the coupon for a customer outside this customer group. Blank: any customer.
Sale needed for each use The sale's total each use of this coupon needs. Blank or 0: no limit.
  • You can tick First purchase only, choose a group and set a sale needed on the same rule. All must pass.
  • Sale needed for each use counts the sale's total as the customer pays it: rounded for payment, after its discounts (the coupon's own too), with tax included. On an exchange, the new items are their own sale, judged at their own total. The amount is read in each sale's own currency, the same number in every store. Every coupon on the sale with an amount here takes that much of the total. For one coupon of 100 for each 1,000 spent, set 1,000 on each such coupon: one needs a sale of 1,000, two need 2,000. With one coupon it is the smallest sale the coupon may be used on. It counts each coupon as one use, never what the coupon takes off: a 10% coupon with 1,000 set takes 100 of a 1,000 sale, a 50% coupon 500. It is a minimum sale per coupon, not a cap on the discount.
  • Several coupons of one kind on one sale count as one. For one coupon for each so much spent, give each coupon its own record and rule. Coupons issued as serial numbers of one coupon cannot be used twice on a sale unless its hidden Can Repeat In Transaction is ticked, and then count once.
  • To use a coupon at most so many times in each store, you need no rule here. Set the coupon's own Maximum Redemption Count Per Store; iVendNext refuses the coupon when it is applied once the store has used it that many times.
  • A customer group matches exactly: a customer in a group under the one you chose is refused.
  • A draft or canceled sale does not count as a purchase. No return counts, with or without its sale.
  • The service reads your rules again within a minute of a change.

A rule on a demo site with Sale needed for each use set to 50.00

At Pay on a demo site, the coupon refused on a sale of USD 33.05

What the install switched on

The install switched the check on for every POS Profile and recorded your consent. It answers every store until you limit it.

  1. Search Desk for Retail Extension Subscription and open Coupon rules. To read what it is sent, read the record.
  2. To limit the check to some of your stores, choose their POS Profiles in Only for these POS Profiles. The field's own help says "Empty: every POS Profile."
  3. Save.

What leaves your iVendNext

The app's service runs at coupon-rules.ivendnext.app, hosted by CitiXsys. After the install or an update, and when you press Connect again after a lost or changed key, or when the site could not reach the app, your site sends the service its key from the App library, its address, the check's signing key, and the API key of the app's user.

At each Pay, and before each refund the till pays, your iVendNext sends the priced sale, coupon or not: the store, the POS Profile, the company and the till's day and terminal, the signed-in cashier's user, the customer and their customer group, the price list, the currency and the till's language, the coupons, the details the cashier captured for the sale and for each line, each line's item code, item group, quantity, unit, price, amount and discount, the totals, the payment methods offered and the till's own reference for the sale. On a refund it also sends the original sale (or the order or layaway plan), which kind it was, and how it was paid. No card details are sent.

A sale with no coupon is answered at once. For a sale with a coupon, the service reads your Coupon rule records with the app's user and, for a first-purchase rule, counts the customer's submitted POS Invoices and Sales Invoices. It keeps your rules for up to a minute and keeps no sale and no count. It keeps your site's keys until you remove the app. It writes nothing to your iVendNext.

Limits

  • A rule change can take up to a minute to apply.
  • The count is taken at Pay. A sale for the same customer booked between the check and the payment is not seen.
  • Bought before means any submitted sale to the customer on your site, in any of your companies, including an order or a layaway placed at the till. A sale made offline counts only once it has synced.
  • The first-purchase rule needs iVendNext POS from 2026-10-15 on. On an older one, a sale with such a coupon goes on and is flagged.
  • Until your site has sent the service the key of the app's user, and whenever the service does not answer within 3 seconds, a sale goes on with its coupon and is flagged for review. A Pay after a quiet spell can take longer than usual.
  • Offline, the till cannot ask the service, so it acts as when the service does not answer (above).
  • The check does not run when a sale is parked to another till, on a layaway deposit, on an account collection, or in the back office's own POS screen. A restricted coupon used there is neither refused nor flagged.
  • After you install the app again, the check comes in switched on for every POS Profile, and your rules are gone. Add your rules again (the uninstall exported them to a file). The install makes the app's user again. Give the role IVENDNEXT CPN Integration its read rights again.

How to remove it

  1. In the App library, find the app under Your apps and press Details.
  2. On the app's record, press Export and uninstall and confirm. iVendNext first exports your rule records to a file, and tells the service that the app was removed.
  3. iVendNext removes the check, the rule records, the feed registration and the role.
  4. iVendNext also removes the app's user and its key, so the key the service had stops working.
Last updated 1 week ago
Was this helpful?
Thanks!