Gets a Customer's Address from an external source. Support for Klarna, ResursBank and Avarda exists and must be configured in Storm. Moreover an aggreement must be established with the PSP. Returns the customer with addresses populated according to customer type. Companies will have their addresses in Customer.DefaultCompany.
A Customer with SSN and an optional InvoiceAddress must be passed in. If the search is for a Company, just pass the OrgNo in Customer.SSN. If no InvoiceAddress is passed the default Country.Code for the Application will be used.
Success
Bad Request
Key: AddressLookupFailed. Gets raised when no address is found.
Internal Server Error
{- "Id": 0,
- "Key": "string",
- "Code": "string",
- "Email": "string",
- "SSN": "string",
- "FirstName": "string",
- "LastName": "string",
- "Phone": "string",
- "CellPhone": "string",
- "ReferId": 0,
- "ReferUrl": "string",
- "Account": {
- "Id": 0,
- "Key": "string",
- "LoginName": "string",
- "Name": "string",
- "Roles": [
- 0
], - "Authorizations": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "IsActive": true
}, - "Companies": [
- {
- "Id": 0,
- "Key": "string",
- "Code": "string",
- "Name": "string",
- "OrgNo": "string",
- "Phone": "string",
- "ReferId": 0,
- "ReferUrl": "string",
- "DeliveryAddresses": [
- {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}
], - "InvoiceAddress": {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}, - "UseInvoiceAddressAsDeliveryAddress": true,
- "Info": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "PricelistIds": [
- 0
], - "ParentId": 0,
- "DeliveryMethodIds": [
- 0
], - "PaymentMethodIds": [
- 0
], - "Email": "string",
- "Flags": [
- {
- "Id": 0,
- "Name": "string",
- "Group": 0,
- "IsSelected": true
}
], - "VatNo": "string"
}
], - "DeliveryAddresses": [
- {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}
], - "InvoiceAddress": {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}, - "Flags": [
- {
- "Id": 0,
- "Name": "string",
- "Group": 0,
- "IsSelected": true
}
], - "UseInvoiceAddressAsDeliveryAddress": true,
- "Info": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "PricelistIds": [
- 0
], - "CrmId": "string",
- "IsActive": true,
- "Created": "2019-08-24T14:15:22Z",
- "Updated": "2019-08-24T14:15:22Z"
}
{- "Id": 0,
- "Key": "string",
- "Code": "string",
- "Email": "string",
- "SSN": "string",
- "FirstName": "string",
- "LastName": "string",
- "Phone": "string",
- "CellPhone": "string",
- "ReferId": 0,
- "ReferUrl": "string",
- "Account": {
- "Id": 0,
- "Key": "string",
- "LoginName": "string",
- "Name": "string",
- "Roles": [
- 0
], - "Authorizations": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "IsActive": true
}, - "Companies": [
- {
- "Id": 0,
- "Key": "string",
- "Code": "string",
- "Name": "string",
- "OrgNo": "string",
- "Phone": "string",
- "ReferId": 0,
- "ReferUrl": "string",
- "DeliveryAddresses": [
- {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}
], - "InvoiceAddress": {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}, - "UseInvoiceAddressAsDeliveryAddress": true,
- "Info": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "PricelistIds": [
- 0
], - "ParentId": 0,
- "DeliveryMethodIds": [
- 0
], - "PaymentMethodIds": [
- 0
], - "Email": "string",
- "Flags": [
- {
- "Id": 0,
- "Name": "string",
- "Group": 0,
- "IsSelected": true
}
], - "VatNo": "string"
}
], - "DeliveryAddresses": [
- {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}
], - "InvoiceAddress": {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}, - "Flags": [
- {
- "Id": 0,
- "Name": "string",
- "Group": 0,
- "IsSelected": true
}
], - "UseInvoiceAddressAsDeliveryAddress": true,
- "Info": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "PricelistIds": [
- 0
], - "CrmId": "string",
- "IsActive": true,
- "Created": "2019-08-24T14:15:22Z",
- "Updated": "2019-08-24T14:15:22Z"
}