Apply discount codes in store

2 0 0

Hi there! I´m using the Shopify Api for create all my products, orders and discounts(with price rules and codes), but how a customer can add the discount code to the order checkout, I have to send the code inside the order request, or I missing a step before that

Replies 3 (3)

Shopify Partner
35 0 7



There is the option for automatic discounts which are "automatically" applied at the checkout?



2 0 0

Hi, no my discounts are not applied automatically, the customers have to added when they are on the last step to pay for the products

Shopify Staff (Retired)
624 104 188

Hi @xavimartz ,


If it is not an Automatic Discount but instead a Discount Code, then the only place where the customer can submit this code is in the Checkout when they are trying to pay for their order.


An alternative option is that you can pass the Discount Code by URL - you just need to redirect to the customer to the URL or "https://{shop_name}{discount_code}". Read more about how to generate this URL here:

To learn more visit the Shopify Help Center or the Community Blog.