---
title: "getReferenceCurrency"
slug: "api/basket/operations/getreferencecurrency"
sidebar:
  order: 497
---

<a id="ref-5ff27975fdcd"></a>
<a id="ref-d723af54406a"></a>
<a id="ref-dc227a186f9d"></a>

## Synopsis

```text
string getReferenceCurrency(SessionId sessionId,
    boolean? active)
throws BasketServiceFault;
```

See also: [`SessionId`](/pCon/configuratorOnline/specs/api/session/types/sessionid#ref-02e397c8fdb4), [`BasketServiceFault`](/pCon/configuratorOnline/specs/api/basket/faults/basketservicefault#ref-d5adb74faa1b)

All exchange rates are defined with respect to the reference currency. If, for instance, the reference currency is 'EUR', and the exchange rate for 'USD' is 1.4303, then 1 EUR = 1.4303 USD.

Argument `active` controls whether to return the reference currency used by the current basket (if `true`, the default value) or the reference currency of the server's currency configuration as currently seen by the session (if `false`).

The active reference currency may differ from the server's reference currency if it has been changed for the current basket by operation [`setExchangeRates`](/pCon/configuratorOnline/specs/api/basket/operations/setexchangerates) using argument `referenceCurrency`.
