Skip to main content

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

ValueDescription
AcceptedAddresses found.
NoSuchEntityCould not find an entity for the specified SecurityNumber.

Input

GetCustomerAddressesRequest

FieldURTypeDescription
IsCompany**BooleanTrue for company; False for private consumer.
CountryCode*-String(2)See CountryCode for valid values.
SecurityNumber**String(12)Customer SecurityNumber.

Output

GetCustomerAddressesResponse

FieldURTypeDescription
RejectionCode**EnumerationSee Rejection Codes above.
Addresses*-Array of CustomerAddressStructure containing information about the found addresses.

Structures

CustomerAddress

FieldURTypeDescription
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**EnumerationOptions: Person, Business, Unknown, GovernmentalOrganization, Organization.
AddressSelector**StringUnique address identifier.
FirstName-*StringCustomer first name.
LastName-*StringCustomer last name.