Get Addresses
GetAddresses
If a customer has multiple addresses—or if you want to specify which address the invoice or product should be delivered to—you can use this method. It returns an array with all the associated addresses for a specified SecurityNumber. Each address comes with an AddressSelector hash that can be sent in a CreateOrderEu request to have the invoice delivered to the specified address. Otherwise, the order will be created and the invoice sent to the first address found for the provided SecurityNumber.
Note: This method is only applicable for Sweden, Norway, and Denmark (SE, NO & DK). In Norway, only companies are allowed.
Rejection Codes
GetCustomerAddressesRejectionCode
Value | Description |
---|
Accepted | Addresses found. |
NoSuchEntity | Could not find an entity for the specified SecurityNumber. |
GetCustomerAddressesRequest
Field | U | R | Type | Description |
---|
IsCompany | * | * | Boolean | True for company; False for private consumer. |
CountryCode | * | - | String(2) | See CountryCode for valid values. |
SecurityNumber | * | * | String(12) | Customer SecurityNumber. |
Output
GetCustomerAddressesResponse
Field | U | R | Type | Description |
---|
RejectionCode | * | * | Enumeration | See Rejection Codes above. |
Addresses | * | - | Array of CustomerAddress | Structure containing information about the found addresses. |
Structures
CustomerAddress
Field | U | R | Type | Description |
---|
LegalName | - | - | String(60) | Full name of the customer. |
SecurityNumber | * | * | String(12) | SSN or company organization number. Will not be returned for Finnish clients. |
AddressLine1 | * | * | String(40) | C/O Address. |
AddressLine2 | * | * | String(40) | Street address. |
Postcode | * | * | Integer(5) | Post code. |
Postarea | * | * | String(25) | Post area. |
BusinessType | * | * | Enumeration | Options: Person, Business, Unknown, GovernmentalOrganization, Organization. |
AddressSelector | * | * | String | Unique address identifier. |
FirstName | - | * | String | Customer first name. |
LastName | - | * | String | Customer last name. |