GET api/customers/deliveryaddress?customerNumber={customerNumber}
Get all delivery addresses for a customer
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| customerNumber |
Customer number |
integer |
Required |
Body Parameters
None.
Remarks
None.
Example
None.
Response Information
Resource Description
Collection of DeliveryAddressResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| CountryName | string |
Max length: 50 |
|
| Name | string |
Required Max length: 50 |
|
| Address1 | string |
Max length: 50 |
|
| Address2 | string |
Max length: 50 |
|
| Address3 | string |
Max length: 50 |
|
| PostalCode | string |
Max length: 50 |
|
| Town | string |
Max length: 50 |
|
| CountryId | string |
Max length: 2 |
|
| Phone1 | string |
Max length: 50 |
|
| Phone2 | string |
Max length: 50 |
|
| IsDefaultAddress | boolean |
Required |
Response Formats
application/json, text/json
Sample:
[
{
"Id": "a1763b01-a2f4-4d74-a4a9-0094a138abeb",
"CountryName": "sample string 2",
"Name": "sample string 3",
"Address1": "sample string 4",
"Address2": "sample string 5",
"Address3": "sample string 6",
"PostalCode": "sample string 7",
"Town": "sample string 8",
"CountryId": "sample string 9",
"Phone1": "sample string 10",
"Phone2": "sample string 11",
"IsDefaultAddress": true
},
{
"Id": "a1763b01-a2f4-4d74-a4a9-0094a138abeb",
"CountryName": "sample string 2",
"Name": "sample string 3",
"Address1": "sample string 4",
"Address2": "sample string 5",
"Address3": "sample string 6",
"PostalCode": "sample string 7",
"Town": "sample string 8",
"CountryId": "sample string 9",
"Phone1": "sample string 10",
"Phone2": "sample string 11",
"IsDefaultAddress": true
}
]
application/xml, text/xml
Sample:
<ArrayOfDeliveryAddressResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Business">
<DeliveryAddressResponse>
<Address1>sample string 4</Address1>
<Address2>sample string 5</Address2>
<Address3>sample string 6</Address3>
<CountryId>sample string 9</CountryId>
<IsDefaultAddress>true</IsDefaultAddress>
<Name>sample string 3</Name>
<Phone1>sample string 10</Phone1>
<Phone2>sample string 11</Phone2>
<PostalCode>sample string 7</PostalCode>
<Town>sample string 8</Town>
<CountryName>sample string 2</CountryName>
<Id>a1763b01-a2f4-4d74-a4a9-0094a138abeb</Id>
</DeliveryAddressResponse>
<DeliveryAddressResponse>
<Address1>sample string 4</Address1>
<Address2>sample string 5</Address2>
<Address3>sample string 6</Address3>
<CountryId>sample string 9</CountryId>
<IsDefaultAddress>true</IsDefaultAddress>
<Name>sample string 3</Name>
<Phone1>sample string 10</Phone1>
<Phone2>sample string 11</Phone2>
<PostalCode>sample string 7</PostalCode>
<Town>sample string 8</Town>
<CountryName>sample string 2</CountryName>
<Id>a1763b01-a2f4-4d74-a4a9-0094a138abeb</Id>
</DeliveryAddressResponse>
</ArrayOfDeliveryAddressResponse>