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

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?

Hey @rloretto

This value is in the shop currency.

1 Like

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-spent-property-2020-04

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-property-2020-04 (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-2020-04

Shop.currencyCode https://shopify.dev/docs/admin-api/graphql/reference/object/shop#currencycode-2020-04

{
  shop {
    paymentSettings {
      currencyCode
    }
  }
}

Depreciated

{ shop { currencyCode } }

thank you!