# Get the store currency

URL: https://docs.sparklayer.io/developers/api/purchasing/get-store-currency
Operation: `GET /api/v1/store-currency` (operationId `getStoreCurrency`)
OpenAPI spec: https://docs.sparklayer.io/openapi/purchasing.yaml

Returns the store's base currency as an ISO 4217 `currency_code`, such as `GBP`. Returns `404` if no base currency has been set.

`GET /api/v1/store-currency`

**Base URLs:** `https://app.sparklayer.io` (Live), `https://test.app.sparklayer.io` (Test)

**Authentication:** send `Authorization: Bearer <access_token>` and `Site-Id: <site id>` with every request. Get the token from [Get an access token](https://docs.sparklayer.io/developers/api/core/get-an-access-token.md); see [Authentication](https://docs.sparklayer.io/developers/authentication.md).

### Example request

```bash
curl "https://app.sparklayer.io/api/v1/store-currency" \
  -H "Authorization: Bearer $SPARKLAYER_TOKEN" \
  -H "Site-Id: $SPARKLAYER_SITE_ID"
```

Set `SPARKLAYER_TOKEN` to an access token and `SPARKLAYER_SITE_ID` to your Site ID. For the test environment, use `https://test.app.sparklayer.io`.

### Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Site-Id` | string | Yes | Your SparkLayer Site ID, from Settings > API in the SparkLayer Dashboard. Length: min 1. Example: `jones-climbing` |

### Responses

#### 200: The store base currency

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `currency_code` | string | Yes | Length: min 3, max 3. |

```json
{
  "currency_code": "GBP"
}
```

#### 404: Store base currency not set
