@plentymarkets/shop-api / getAddresses
Function: getAddresses() ​
Method getAddresses - Get billing or shipping addresses from the current session (guest or logged in).
Parameters ​
• context: PlentysystemsIntegrationContext
• params: GetAddressesParams
Returns ​
Remarks ​
- Calls /rest/storefront/contact/addresses
- This method is used to get all billing or shipping addresses
Example ​
ts
const { data } = await useSdk().plentysystems.getAddresses({typeId: AddressType.Billing});
const { data } = await useSdk().plentysystems.getAddresses({typeId: AddressType.Shipping});