Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

【API】 is there any solution for checking customer can use the discount code

【API】 is there any solution for checking customer can use the discount code

nakano_thesense
Shopify Partner
30 7 9

Hi everyone.

 

I'm trying to create my coupons feature which can hold coupons and use it on headless commerce built with storefront API.

The feature's scenario would be like below.

 

1. input discount code

2. checking the discount code is valid
    - the discount code is exist

    - customer can use the code

      - customer selection(all or segmented or specific customers)
      - usage limit

3. save discount code on database

4. use discount on cart page

 

I've struggled with checking the discount code is valid.

It is possible to check the code exist, but I don't know how to check the customer can use it.

Please let me know if you tried it or know the solution.

Please regard.

株式会社thesenseはアパレルの輸入代行サービスやクーポン保有アプリなど様々なEC運営サービスの提供、自社ブランドの運営を行っている会社です。
わたしたちについて: https://biz.thesense.tokyo
Replies 0 (0)