var draft = {
line_items: [],
applied_discount: '',
currency_code: "CAD",
currency: "CAD",
email: "[email protected]",
shipping_address: {
first_name: "John"
last_name: "Smith"
},
billing_address: {
first_name: "John"
last_name: "Smith"
},
}
var item = {
variant_id: request.query.variant[i],
product_id: request.query.product[i],
quantity: quantity,
custom: true,
}
draft.line_items[0] = item
shopify-api-node: "^2.15.0" to create a draft order but the currency for some reason isn't getting set.
I'm setting the currency_code and currency to CAD for Canada but the draft orders always appears in AUD (my store is located in Australia).
I've tried many different variations of setting the draft order. Like setting:
currency_code, currency, currency_initials, cart_params: { currency_iso_name: "CAD" }, exchange_rate
But nothing works