POST API/User/DeliveryAddress?action={action}
Manage User Delivery Addresses Action : Add/Update
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| action |
Action : Add: To add new Address Update:To update delivery address |
string |
Required |
Body Parameters
UserDeliveryAddress Entity
UserDeliveryAddress| Name | Description | Type | Additional information |
|---|---|---|---|
| UserDeliveryAddressId | integer |
None. |
|
| Name | string |
None. |
|
| Address1 | string |
None. |
|
| Address2 | string |
None. |
|
| LandMark | string |
None. |
|
| City | string |
None. |
|
| State | string |
None. |
|
| CountryId | integer |
None. |
|
| Zip | string |
None. |
|
| MobileNumber | string |
None. |
|
| Latitude | string |
None. |
|
| Longitude | string |
None. |
|
| DefaultAddress | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"userDeliveryAddressId": 1,
"name": "sample string 1",
"address1": "sample string 2",
"address2": "sample string 3",
"landMark": "sample string 4",
"city": "sample string 5",
"state": "sample string 6",
"countryId": 7,
"zip": "sample string 8",
"mobileNumber": "sample string 9",
"latitude": "sample string 10",
"longitude": "sample string 11",
"defaultAddress": true
}
application/xml, text/xml
Sample:
<UserDeliveryAddress xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrownCow.UserManagement.EntityLayer"> <Address1>sample string 2</Address1> <Address2>sample string 3</Address2> <City>sample string 5</City> <CountryId>7</CountryId> <DefaultAddress>true</DefaultAddress> <LandMark>sample string 4</LandMark> <Latitude>sample string 10</Latitude> <Longitude>sample string 11</Longitude> <MobileNumber>sample string 9</MobileNumber> <Name>sample string 1</Name> <State>sample string 6</State> <UserDeliveryAddressId>1</UserDeliveryAddressId> <Zip>sample string 8</Zip> </UserDeliveryAddress>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Success/Failure Result
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.