@plentymarkets/shop-api / getActiveShippingCountries
Function: getActiveShippingCountries() ​
getActiveShippingCountries(
context
):Promise
<Data
<ActiveShippingCountry
[]>>
Method getActiveShippingCountries - Used to get all active shipping countries.
Parameters ​
• context: PlentysystemsIntegrationContext
Returns ​
Promise
<Data
<ActiveShippingCountry
[]>>
A collection of ActiveShippingCountry items.
Remarks ​
- Calls /rest/storefront/countries.
- Method should be used to get all active shipping countries.
Example ​
ts
const { data } = await useSdk().plentysystems.getActiveShippingCountries();