Re: In what currency is an order's "total_spent" attribute recorded in?

Solved

In what currency is an order's "total_spent" attribute recorded in?

rloretto
Visitor
2 0 0

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?

Accepted Solution (1)

vix
Shopify Staff
540 103 122

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.

View solution in original post

Replies 3 (3)

vix
Shopify Staff
540 103 122

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.

rloretto
Visitor
2 0 0

thank you!

PaulNewton
Shopify Partner
6405 584 1358

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) 

:~: shop currency 

https://shopify.dev/docs/admin-api/rest/reference/store-properties/currency?api[version]=2020-04

 

GraphQL -  https://shopify.dev/docs/admin-api/graphql/reference/object/order?api[version]=2020-04#currencycode-...

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