Apply discount codes in store

xavimartz
Visitor
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)

MartinGlenware
Shopify Partner
35 0 7

Hi

 

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

 

https://help.shopify.com/en/manual/promoting-marketing/discount-codes/automatic-discounts

 

Martin

xavimartz
Visitor
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

hassain
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}.myshopify.com/discount/{discount_code}". Read more about how to generate this URL here: https://help.shopify.com/en/manual/promoting-marketing/discount-codes/managing-discount-codes#promot...

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