Hi there, how do i change the currency of when using draft order API?
Right now we need to create a invoice in USD but it’s defaulting to canada marketplace (CAD).
I tried adjusting the currency and currency_code to “USD” But the order is still created in CAD.
Do i need graphQL to enable this feature?
Also, how can i add a partial payment to my draft order? There’s no place in the draft order JSON to add a partial payment, only is the order completed or pending.
i also tried changing the customer currency to USD,
line items JSON
currency_code: ‘USD’,
currency: ‘USD’,
presentment_currency: ‘USD’,
The draft order created is still all in CAD
I am not 100% sure, but I think your customer needs to have a billing address within the market you want to use the currency of.
Have you already tried to use a customer for US to create a USD draft order?
since most of our customers are in canada, their address in not in us but they can only pay in USD as it’s for wholesale.
okay i tried the graphQL approach, here is my query.
{“query”: “mutation draftOrderUpdate($id: ID!, $input: DraftOrderInput!) { draftOrderUpdate(id: $id, input: $input) { draftOrder { totalPriceSet { shopMoney { amount currencyCode } presentmentMoney { amount currencyCode } } marketName marketRegionCountryCode presentmentCurrencyCode } } }”,“variables”: {“id”:“gid://shopify/DraftOrder/”,“input”:{“marketRegionCountryCode”:“US”,“presentmentCurrencyCode”:“USD”}}}
And im getting the following errors:
message: “Field ‘totalPriceSet’ doesn’t exist on type ‘DraftOrder’”
message: “Field ‘marketName’ doesn’t exist on type ‘DraftOrder’”
message: “Field ‘marketRegionCountryCode’ doesn’t exist on type ‘DraftOrder’”
message: “Field ‘presentmentCurrencyCode’ doesn’t exist on type ‘DraftOrder’”