Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hello,
We are generating discount codes for users from API and want to apply this discount code to the currently active checkout object of the user using an API. If a discount code is already applied to the checkout then remove and apply the one specified in the API. Which API can help to achieve this?
Thanks
Aditya
Solved! Go to the solution
This is an accepted solution.
Depending on how you have things set up checkoutDiscountCodeApplyV2 and checkoutDiscountCodeRemove may do what you need.
This is an accepted solution.
Depending on how you have things set up checkoutDiscountCodeApplyV2 and checkoutDiscountCodeRemove may do what you need.