Discussing APIs and development related to customers, discounts, and order management.
I'm working with the 2020-04 Order API, and the documentation does not seem to provide any assertions about the currency in which customers' "total_spent" attribute is recorded in. Is it the customer's currency, the store's currency? Some normalized currency like USD?
Solved! Go to the solution
This is an accepted solution.
Hey @rloretto
This value is in the shop currency.
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hey @rloretto
This value is in the shop currency.
To learn more visit the Shopify Help Center or the Community Blog.
thank you!
Yes supposed to be in shop currency though docs do not specify https://shopify.dev/docs/admin-api/rest/reference/customers/customer?api[version]=2020-04#total-spen...
And it is not impossible for shop currency to change , so to hard confirm one would have to go through customer orders and many resources as it's also unclear what happens then.
https://shopify.dev/docs/admin-api/rest/reference/orders/order?api[version]=2020-04#currency-propert... (scroll up as stupid sticky header breaks id anchors)
https://shopify.dev/docs/admin-api/rest/reference/store-properties/currency?api[version]=2020-04
Shop.currencyCode https://shopify.dev/docs/admin-api/graphql/reference/object/shop#currencycode-2020-04
{ shop { paymentSettings { currencyCode } } }
Depreciated
{ shop { currencyCode } }
Save time & money ,Ask Questions The Smart Way
Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org