POST api/customers/{customerId}/saved-addresses
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| customerId | integer |
Required |
Body Parameters
CreateSavedAddressRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Label | string |
None. |
|
| AddressLine | string |
None. |
|
| Lat | decimal number |
None. |
|
| Lng | decimal number |
None. |
|
| SetAsDefault | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"label": "sample string 1",
"addressLine": "sample string 2",
"lat": 3.0,
"lng": 4.0,
"setAsDefault": true
}
application/xml, text/xml
Sample:
<CreateSavedAddressRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Del.Api.Models.Dtos"> <AddressLine>sample string 2</AddressLine> <Label>sample string 1</Label> <Lat>3</Lat> <Lng>4</Lng> <SetAsDefault>true</SetAsDefault> </CreateSavedAddressRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.