Headers
| Header | Example | Description |
|---|---|---|
X-Spree-Locale | fr | Language for translated content (product names, descriptions, etc.) |
X-Spree-Currency | EUR | Currency for prices and totals |
X-Spree-Country | FR | Country ISO code for market resolution |
Client-Level Defaults
Set locale, currency, and country once at initialization — all subsequent requests use these defaults:SDK
Per-Request Overrides
Override client defaults for individual requests:Country and Markets
TheX-Spree-Country header resolves the customer’s market, which influences default locale and currency. Markets allow you to configure different pricing, languages, and product availability per region.
- The market’s default locale is used (unless overridden by
X-Spree-Locale) - The market’s default currency is used (unless overridden by
X-Spree-Currency)
Resolution Priority
Each value is resolved in the following order:Locale
X-Spree-Localeheaderlocalequery parameter- Market default locale (if country is set)
- Store default locale
Currency
X-Spree-Currencyheadercurrencyquery parameter- Market default currency (if country is set)
- Store default currency
Market
X-Spree-Countryheadercountryquery parameter
The locale and currency must be supported by the current store. If an unsupported value is provided, the API falls back to the store’s default.

