Miscellaneous
Introduction
This section will cover the basics of fetching Base Store configuration, countries, country regions and titles.
Fetching countries
To fetch countries, you can use the getCountries method.
import { sdk } from '~/sdk';
const category = await sdk.commerce.getCountries();
Fetching country regions
To fetch country regions, you can use the getCountryRegions method.
import { sdk } from '~/sdk';
const category = await sdk.commerce.getCountryRegions({ countryIsoCode: 'US' });
Fetching titles
To fetch a list of all localized titles, you can use the getTitles method.
import { sdk } from '~/sdk';
const category = await sdk.commerce.getTitles();
Fetching base store configuration
To fetch a base store configuration, you can use the getBaseStore method.
import { sdk } from '~/sdk';
const category = await sdk.commerce.getBaseStore();