To limit a discount code to one use per customer, open the code’s Maximum discount uses and tick Limit to one use per customer. Shopify recognises customers by their email address or phone number, so the same customer can’t use the code on a second order. To cap the code for everyone as well, tick Limit number of times this discount can be used in total and enter the number of orders. In OneCode: Stackable Discounts, these limits cover the whole code, even when it gives a percentage off and free shipping together.

Example: a launch code for the first 500 orders

The code LAUNCH15 gives 15% off everything and free shipping. Each customer can use it once, and it stops after 500 orders in total.

  • A customer orders a $60 shirt with LAUNCH15. The shirt drops by $9 to $51, and the $8 shipping is free. They pay $51.
  • The same customer comes back with the same email address and enters LAUNCH15 again. The code doesn’t apply, so they pay $60 for the shirt and $8 for shipping, $68 in total.
  • Once 500 orders have used LAUNCH15, it stops working for everyone, including customers who have never used it.

LAUNCH15 at checkout. The $60 Summer linen shirt is $51, Economy shipping is free instead of $8, and the total is USD $51.00.

Set it up

  1. In OneCode, click Create discount, keep Discount code, and enter LAUNCH15.
  2. Click Add Discount Type and enter 15 in Percentage. Keep Discount Type as Product Discount and Target as All Products.
  3. Click Add Discount Type again, set Discount Type to Shipping Discount, and keep Free Shipping.
  4. In Maximum discount uses, tick Limit to one use per customer.
  5. For a cap on total orders, also tick Limit number of times this discount can be used in total and enter 500. Leave it unticked for no cap.
  6. Click Save discount.

You can use either limit on its own, or both together.

The OneCode editor for the code LAUNCH15: a 15% Product Discount on All Products, a Free Shipping discount on all rates, and Maximum discount uses with Limit number of times this discount can be used in total set to 500 and Limit to one use per customer ticked

With bulk codes, the limits count per code

If the discount has bulk codes, each limit applies to each code separately, not to the batch as a whole.

  • One use per code: set Limit number of times this discount can be used in total to 1. Every code then works for one order. If you generate 100 codes from a discount that gives 15% off and free shipping, each one can be used once, so the batch covers at most 100 orders. A customer who enters one of them on a $60 order gets $9 off and free shipping.
  • Reusable codes, once per customer: leave the total limit off and tick Limit to one use per customer. Each code can be used by many customers, once each. A customer who has two different codes from the same discount can use each of them once.

The Maximum discount uses card with Limit number of times this discount can be used in total ticked and set to 1, and Limit to one use per customer not ticked

Single-use codes suit welcome emails and printed vouchers. Reusable codes suit one code per creator, where each code is used many times. To see how often each code was used, open the bulk codes page and check Uses.

Code or automatic discount

Usage limits are a setting on discount codes. An automatic discount applies to everyone who qualifies, so there is no code to count and usage limits aren’t available. Choose your method by what the offer needs:

  • Discount code: when the offer should be capped, used once per customer, or sent as unique codes.
  • Automatic discount: when every qualifying customer should get it on every order, such as a sitewide sale or buy more, save more tiers.

You choose the method when you create the discount, and it can’t be changed after saving. To switch, create a new discount with the other method and the same settings, then delete the old one. See code or automatic.

Things to check before you launch

  • One use per customer doesn’t check order history. An existing customer who has never used the code can still use it once. To keep it to first orders, add a Customer Segment condition under Global Conditions with a segment of customers who have no orders. See welcome discounts.
  • A test order counts as a use. It counts toward the limits and Times used. You don’t need to place an order to test: checking the cart and checkout is enough.
  • A subscription counts once. A subscription with many payments counts as one use.
  • If the code stops applying, check Times used. It may be used up. Times used on the OneCode home page shows how many orders have used the discount, and for a discount with bulk codes it’s the total across all its codes. Shopify can take a few minutes to update it.

OneCode costs $9.90 USD every 30 days after a 7-day free trial, billed by Shopify. Install it from the Shopify App Store.