Skip to content
On this page

getUserCountry ​

Definition ​

Get the current session's country

Signature ​

ts
export async function getUserCountry(
  countryId: string,
  contextInstance: ShopwareApiInstance = defaultInstance,
): Promise<Country> 

Parameters ​

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

Return type ​

ts
Promise<Country>

Usage example ​

WARNING

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

Open in StackBlitz

getUserCountry has loaded