POST api/Address/AddFriendAddress
Add Customer Billing and Shipping Address
Request Information
URI Parameters
None.
Body Parameters
AddressListAddBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Address | Collection of AddressAddBindingModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"Address": [
{
"AddressTitle": "sample string 1",
"Address1": "sample string 2",
"Address2": "sample string 3",
"LocationId": 1,
"AddressType": 0,
"IsDefault": true,
"ContactNumber": "sample string 4",
"DeliveryLocationId": 1,
"ErpCustomerId": "sample string 5",
"TaxGroup": "sample string 6",
"Longitude": 1.0,
"Latitude": 1.0
},
{
"AddressTitle": "sample string 1",
"Address1": "sample string 2",
"Address2": "sample string 3",
"LocationId": 1,
"AddressType": 0,
"IsDefault": true,
"ContactNumber": "sample string 4",
"DeliveryLocationId": 1,
"ErpCustomerId": "sample string 5",
"TaxGroup": "sample string 6",
"Longitude": 1.0,
"Latitude": 1.0
}
]
}
application/xml, text/xml
Sample:
<AddressListAddBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Coke.Models.WebApi.BindingModels.Address">
<Address>
<AddressAddBindingModel>
<Address1>sample string 2</Address1>
<Address2>sample string 3</Address2>
<AddressTitle>sample string 1</AddressTitle>
<AddressType>BillingAddress</AddressType>
<ContactNumber>sample string 4</ContactNumber>
<DeliveryLocationId>1</DeliveryLocationId>
<ErpCustomerId>sample string 5</ErpCustomerId>
<IsDefault>true</IsDefault>
<Latitude>1</Latitude>
<LocationId>1</LocationId>
<Longitude>1</Longitude>
<TaxGroup>sample string 6</TaxGroup>
</AddressAddBindingModel>
<AddressAddBindingModel>
<Address1>sample string 2</Address1>
<Address2>sample string 3</Address2>
<AddressTitle>sample string 1</AddressTitle>
<AddressType>BillingAddress</AddressType>
<ContactNumber>sample string 4</ContactNumber>
<DeliveryLocationId>1</DeliveryLocationId>
<ErpCustomerId>sample string 5</ErpCustomerId>
<IsDefault>true</IsDefault>
<Latitude>1</Latitude>
<LocationId>1</LocationId>
<Longitude>1</Longitude>
<TaxGroup>sample string 6</TaxGroup>
</AddressAddBindingModel>
</Address>
</AddressListAddBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.