---
title: "Limit how many times a code can be used"
description: "Set a total usage limit or one use per customer on a OneCode discount code."
url: https://jxngqfpxd.us.gleap.help/en/articles/21-limit-how-many-times-a-code-can-be-used
collection: "Discount settings"
updated: 2026-11-06
language: en
---

# Limit how many times a code can be used

Set a total usage limit or one use per customer on a OneCode discount code.

**In short:** In **Maximum discount uses**, tick **Limit number of times this discount can be used in total** and enter a number, or tick **Limit to one use per customer**. Usage limits are only available on discount codes.

## Set it up

1.  In **Maximum discount uses**, tick either or both:
    
    -   **Limit number of times this discount can be used in total:** enter the number of orders that can use the code, for example `500`.
        
    -   **Limit to one use per customer:** each customer can use the code once. Shopify recognises customers by their email address or phone number.
        
2.  Save the discount.
    

![Maximum discount uses with a total limit of 500 and one use per customer](https://staticfiles.us.gleap.ai/p6ae440349b260bc5e19963ea/HipmwdAg4bk3TPp4IzxBjndyqJ0jl2e5nxnYka1ctKzI8rDfKg3vQFHvAaYkVigQgQUAp4BCKAp.png "Maximum discount uses with a total limit of 500 and one use per customer")

## Codes with bulk codes

If the discount has [bulk codes](https://jxngqfpxd.us.gleap.help/en/articles/23.md), the limits apply to **each code separately**:

-   A total limit of `1` makes every code single use. That's how you send unique one-time codes.
    

![Maximum discount uses with a total limit of 1](https://staticfiles.us.gleap.ai/p6ae440349b260bc5e19963ea/wNZ3IfW9EpuGuyMmRfs4TYHJIlof3bBGGrAWNsfWzuZWkCCILirIgJPWhqixEAMcnZ3CKadLx81.png "Maximum discount uses with a total limit of 1")

-   **Limit to one use per customer** means once per customer per code. A customer with two different codes from the same discount can use each once.
    

## Good to know

-   Automatic discounts don't have usage limits.
    
-   A subscription with many payments counts as one use.
    
-   **Times used** on the OneCode home page shows how many orders have used the discount. With bulk codes, it's the total across all its codes.

## Related

- [Discount code or automatic discount?](https://jxngqfpxd.us.gleap.help/en/articles/18-discount-code-or-automatic-discount.md)
- [Schedule a discount with start and end dates](https://jxngqfpxd.us.gleap.help/en/articles/19-schedule-a-discount-with-start-and-end-dates.md)
- [How OneCode discounts combine with your other discounts](https://jxngqfpxd.us.gleap.help/en/articles/20-how-onecode-discounts-combine-with-your-other-discounts.md)
- [Discounts on subscriptions and renewals](https://jxngqfpxd.us.gleap.help/en/articles/22-discounts-on-subscriptions-and-renewals.md)
- [Create bulk discount codes](https://jxngqfpxd.us.gleap.help/en/articles/23-create-bulk-discount-codes.md)
