Appearance
getUserCountry ​
Definition ​
Get the current session's country
Signature ​
ts
export async function getUserCountry(
  countryId: string,
  contextInstance: ShopwareApiInstance = defaultInstance,
): Promise<Country> 
Parameters ​
| Name | Type | Description | 
|---|---|---|
| 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.