Skip to content
pCon.configurator onlineDocumentation
Esc
↑↓navigate↵open⌘Jpreview
On this page

getReferenceCurrency

Synopsis

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

See also: SessionId, BasketServiceFault

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 using argument referenceCurrency.