POST api/customers/{customerId}/saved-addresses

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customerId

integer

Required

Body Parameters

CreateSavedAddressRequest
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CreateSavedAddressRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.