POST api/Address/AddAddress
Request Information
URI Parameters
None.
Body Parameters
AddressDTOMobile| Name | Description | Type | Additional information |
|---|---|---|---|
| AddressId | integer |
None. |
|
| BuildingNo | string |
None. |
|
| Steert | string |
None. |
|
| Floor | string |
None. |
|
| Apartment | string |
None. |
|
| ZoneName | string |
None. |
|
| ZoneId | integer |
None. |
|
| CityId | integer |
None. |
|
| CityName | string |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
|
| LandMark | string |
None. |
|
| AddressCategoryId | integer |
None. |
|
| AddressCategoryName | string |
None. |
|
| SubZoneName | string |
None. |
|
| SubZoneId | integer |
None. |
|
| CustomerId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"AddressId": 1,
"BuildingNo": "sample string 2",
"Steert": "sample string 3",
"Floor": "sample string 4",
"Apartment": "sample string 5",
"ZoneName": "sample string 6",
"ZoneId": 1,
"CityId": 1,
"CityName": "sample string 7",
"Latitude": 1.1,
"Longitude": 1.1,
"LandMark": "sample string 8",
"AddressCategoryId": 1,
"AddressCategoryName": "sample string 9",
"SubZoneName": "sample string 10",
"SubZoneId": 1,
"CustomerId": 1
}
application/xml, text/xml
Sample:
<AddressDTOMobile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MYLERZ.Base.DTO.MobileDTO"> <AddressCategoryId>1</AddressCategoryId> <AddressCategoryName>sample string 9</AddressCategoryName> <AddressId>1</AddressId> <Apartment>sample string 5</Apartment> <BuildingNo>sample string 2</BuildingNo> <CityId>1</CityId> <CityName>sample string 7</CityName> <CustomerId>1</CustomerId> <Floor>sample string 4</Floor> <LandMark>sample string 8</LandMark> <Latitude>1.1</Latitude> <Longitude>1.1</Longitude> <Steert>sample string 3</Steert> <SubZoneId>1</SubZoneId> <SubZoneName>sample string 10</SubZoneName> <ZoneId>1</ZoneId> <ZoneName>sample string 6</ZoneName> </AddressDTOMobile>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
DescriptiveResponseOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Value | boolean |
None. |
|
| CoreValue | string |
None. |
|
| IsErrorState | boolean |
None. |
|
| ErrorDescription | string |
None. |
|
| ErrorMetadata | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Value": true,
"CoreValue": "sample string 2",
"IsErrorState": true,
"ErrorDescription": "sample string 4",
"ErrorMetadata": {}
}
application/xml, text/xml
Sample:
<DescriptiveResponseOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MYLERZ.Base.Entities"> <CoreValue>sample string 2</CoreValue> <ErrorDescription>sample string 4</ErrorDescription> <ErrorMetadata /> <IsErrorState>true</IsErrorState> <Value>true</Value> </DescriptiveResponseOfboolean>