Liquid, JavaScript, themes, sales channels
Hi, we are currently migrating our e-commerce to Shopify and I'm working on historical order sync using REST API (the latest stable version) and NodeJS, some of our orders have up to 2 discounts applied but when I pass more than 1 discount code only the first one is applied to the order, for ex:
const shopifyOrder = new shopify.rest.Order({ session });
...
sOrder.discount_codes = [
{
code: "CODE_1",
amount: "20",
type: "fixed_amount",
},
{
code: "CODE_2",
amount: "30",
type: "fixed_amount",
},
];
...
is it possible to create an order with more than one discount? thanks.
User | RANK |
---|---|
37 | |
24 | |
13 | |
13 | |
9 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023