@plentymarkets/shop-api / getAddressesData
Function: getAddressesData() ​
getAddressesData(
context,params):Promise<Data<GetAddressesDataResponse>>
Defined in: api/getAddressesData/index.ts:27
Method getAddressesData - to get the users addresses
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
Returns ​
Promise<Data<GetAddressesDataResponse>>
the users addresses
Remarks ​
- Calls /rest/storefront/contact/data
- This method is used to get the users addresses
Example ​
ts
const { data } = await useSdk().plentysystems.getAddressesData({types: [AddressType.Billing]});