Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
According to Deprecation of Checkout APIs we're required to migrate all of our Checkout REST APIs to Storefront Cart API.
Migrating to above-mentioned Storefront Cart API got us stuck with one of the problems that we're trying to overcome.
Problem is that whenever we programatically create Checkout using the REST API for the customer we were calculating discount on our end and supplied applied_discount property during the checkout creation.
to give you an understanding payload looks something like this:
/*
.... other properties are supplied for the Checkout creation
*/
"applied_discount": {
"title": "Custom Calculated Discount",
"value": "30.00",
"description": "Custom Calculated Discount",
"value_type": "fixed_amount",
"amount": "30.00"
}
above-mentioned value & amount properties are hardcoded for the time being, but those values are subject to change(according to our custom logic)
At the moment I couldn't find any useful mutation that would help me achieve similar result and apply either cart level or line item level discount
Anyone that could help with this by any chance?
Anyone that could help?
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024