Skip to content
On this page

setCurrentCurrency

Definition

Set the current session's currency to correspoding to id

Signature

ts
export async function setCurrentCurrency(
  newCurrencyID: string,
  contextInstance: ShopwareApiInstance = defaultInstance
): Promise<ContextTokenResponse> 

Parameters

NameTypeDescription
newCurrencyID
string
id of the currency
contextInstance
ShopwareApiInstance
instance of the api client (by default it's an Axios instance)

Return type

ts
Promise<ContextTokenResponse>

Usage example

WARNING

Example is generated automatically. Sometimes it's required to be adjusted to your needs.

Open in StackBlitz

setCurrentCurrency has loaded