Home > @vsf-enterprise/sap-commerce-webservices-sdk > CountriesApi > getCountries
CountriesApi.getCountries() method
If the value of type equals to shipping, then return shipping countries. If the value of type equals to billing, then return billing countries. If the value of type is not given, return all countries. The list is sorted alphabetically. Get a list of countries.
Signature:
getCountries(baseSiteId: string, fields?: string, type?: 'SHIPPING' | 'BILLING', options?: any): Promise<import("axios").AxiosResponse<CountryList>>;
Parameters
Parameter | Type | Description |
---|---|---|
baseSiteId | string | Base site identifier |
fields | string | Response configuration. This is the list of fields that should be returned in the response body. Examples: BASIC, DEFAULT, FULL |
type | 'SHIPPING' | 'BILLING' | The type of countries. |
options | any | Override http request option. |
Returns:
Promise<import("axios").AxiosResponse<CountryList>>
Exceptions
{RequiredError} CountriesApi