@plentymarkets/shop-api / getPackstations
Function: getPackstations() ​
getPackstations(
context
,params
):Promise
<Data
<PackstationList
>>
Method getPackstations
- Used to get a list of available packstations.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: PackstationsSearchParams
Returns ​
Promise
<Data
<PackstationList
>>
Remarks ​
calls /rest/dhl-shipping/preferred-delivery/location-search
Example ​
ts
params = {
zipcode: 12345,
city: Berlin,
street: Xyz,
searchPackstation: true,
searchPostfilial: true,
}
const { data, error } = await useAsyncData(() => useSdk().plentysystems.getPackstations
(params));