GetCustomerAddressesAsync (...)

Introduction
Searches saved addresses for one authorized customer under an ERP account. Address IDs can be used as PostOrder ShipToId and AssignToId; UserCompany.Id identifies the customer. Archived customers or contacts returned by status 'archived' or 'all' cannot be used by PostOrder.
Parameters

apiKey

The active API key.

customerId

Customer ID returned by GetCustomersAsync.

filter

Optional saved-address search, using the existing customer address search rules.

forAccount

ERP account number containing the customer.

sessionId

The active session ID.

status

Status of the customer and saved addresses to fetch. Options are 'active', 'archived', and 'all'. Defaults to 'active'.
Return value
Saved addresses, subject to the caller's existing contact and PII access rules.
Code samples

Loading API Runner...