@plentymarkets/shop-api / getAggregatedCountries
Function: getAggregatedCountries() ​
getAggregatedCountries(
context
):Promise
<Data
<AggregatedCountries
>>
Method getAggregatedCountries - Used to get a combined list of active shipping countries and EU geo-regulated countries.
Parameters ​
• context: PlentysystemsIntegrationContext
Returns ​
Promise
<Data
<AggregatedCountries
>>
Remarks ​
- Calls /rest/storefront/countries/with-geo-regulated.
- Method should be used to get a combined list of:
- Active shipping countries
- EU geo-regulated countries
Example ​
ts
const { data } = await useSdk().plentysystems.getAggregatedCountries();