POST api/MasterConfig/DeliveryFare/SaveDeliveryZoneDtls
Request Information
URI Parameters
None.
Body Parameters
DeliveryZoneWithBoundsPost| Name | Description | Type | Additional information |
|---|---|---|---|
| DeliveryZone | DeliveryZone |
None. |
|
| UserID | string |
None. |
|
| IPAddress | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"DeliveryZone": {
"DeliveryZoneID": 1,
"DeliveryZoneName": "sample string 2",
"CentreLatitude": "sample string 3",
"CentreLongitude": "sample string 4",
"RadiusInKm": 5.0,
"ZoneLatLngBounds": [
{
"BoundID": 1,
"DeliveryZoneID": 2,
"Lat": "sample string 3",
"Lng": "sample string 4"
},
{
"BoundID": 1,
"DeliveryZoneID": 2,
"Lat": "sample string 3",
"Lng": "sample string 4"
}
],
"AreaPoints": [
{
"AreaPointID": 1,
"DeliveryZoneID": 2,
"Clat": "sample string 3",
"Clng": "sample string 4",
"AreaPointName": "sample string 5",
"RadiusInKm": 6.0,
"DeliveryEnabled": true,
"PickupEnabled": true,
"CurrentAreaType": "sample string 9",
"AreaTypeWithTimeSlot": [
{
"AreaPointID": 1,
"AreaType": "sample string 2",
"OpeningTime": "sample string 3",
"ClosingTime": "sample string 4"
},
{
"AreaPointID": 1,
"AreaType": "sample string 2",
"OpeningTime": "sample string 3",
"ClosingTime": "sample string 4"
}
],
"RefrencePoints": [
{
"RefrencePointID": 1,
"DeliveryZoneID": 2,
"AreaPointID": 3,
"Lat": "sample string 4",
"Lng": "sample string 5",
"RefrencePointName": "sample string 6"
},
{
"RefrencePointID": 1,
"DeliveryZoneID": 2,
"AreaPointID": 3,
"Lat": "sample string 4",
"Lng": "sample string 5",
"RefrencePointName": "sample string 6"
}
],
"AreaAssociateIDs": [
1,
2
]
},
{
"AreaPointID": 1,
"DeliveryZoneID": 2,
"Clat": "sample string 3",
"Clng": "sample string 4",
"AreaPointName": "sample string 5",
"RadiusInKm": 6.0,
"DeliveryEnabled": true,
"PickupEnabled": true,
"CurrentAreaType": "sample string 9",
"AreaTypeWithTimeSlot": [
{
"AreaPointID": 1,
"AreaType": "sample string 2",
"OpeningTime": "sample string 3",
"ClosingTime": "sample string 4"
},
{
"AreaPointID": 1,
"AreaType": "sample string 2",
"OpeningTime": "sample string 3",
"ClosingTime": "sample string 4"
}
],
"RefrencePoints": [
{
"RefrencePointID": 1,
"DeliveryZoneID": 2,
"AreaPointID": 3,
"Lat": "sample string 4",
"Lng": "sample string 5",
"RefrencePointName": "sample string 6"
},
{
"RefrencePointID": 1,
"DeliveryZoneID": 2,
"AreaPointID": 3,
"Lat": "sample string 4",
"Lng": "sample string 5",
"RefrencePointName": "sample string 6"
}
],
"AreaAssociateIDs": [
1,
2
]
}
],
"RefrencePoints": [
{
"RefrencePointID": 1,
"DeliveryZoneID": 2,
"AreaPointID": 3,
"Lat": "sample string 4",
"Lng": "sample string 5",
"RefrencePointName": "sample string 6"
},
{
"RefrencePointID": 1,
"DeliveryZoneID": 2,
"AreaPointID": 3,
"Lat": "sample string 4",
"Lng": "sample string 5",
"RefrencePointName": "sample string 6"
}
]
},
"UserID": "sample string 1",
"IPAddress": "sample string 2"
}
application/xml, text/xml
Sample:
<DeliveryZoneWithBoundsPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Master.Operations.CustomModels">
<DeliveryZone>
<AreaPoints>
<AreaPoint>
<AreaAssociateIDs xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:long>1</d5p1:long>
<d5p1:long>2</d5p1:long>
</AreaAssociateIDs>
<AreaPointID>1</AreaPointID>
<AreaPointName>sample string 5</AreaPointName>
<AreaTypeWithTimeSlot>
<DefaultAreaTypeWithTimeSlotsModel>
<AreaPointID>1</AreaPointID>
<AreaType>sample string 2</AreaType>
<ClosingTime>sample string 4</ClosingTime>
<OpeningTime>sample string 3</OpeningTime>
</DefaultAreaTypeWithTimeSlotsModel>
<DefaultAreaTypeWithTimeSlotsModel>
<AreaPointID>1</AreaPointID>
<AreaType>sample string 2</AreaType>
<ClosingTime>sample string 4</ClosingTime>
<OpeningTime>sample string 3</OpeningTime>
</DefaultAreaTypeWithTimeSlotsModel>
</AreaTypeWithTimeSlot>
<Clat>sample string 3</Clat>
<Clng>sample string 4</Clng>
<CurrentAreaType>sample string 9</CurrentAreaType>
<DeliveryEnabled>true</DeliveryEnabled>
<DeliveryZoneID>2</DeliveryZoneID>
<PickupEnabled>true</PickupEnabled>
<RadiusInKm>6</RadiusInKm>
<RefrencePoints>
<RefrencePoint>
<AreaPointID>3</AreaPointID>
<DeliveryZoneID>2</DeliveryZoneID>
<Lat>sample string 4</Lat>
<Lng>sample string 5</Lng>
<RefrencePointID>1</RefrencePointID>
<RefrencePointName>sample string 6</RefrencePointName>
</RefrencePoint>
<RefrencePoint>
<AreaPointID>3</AreaPointID>
<DeliveryZoneID>2</DeliveryZoneID>
<Lat>sample string 4</Lat>
<Lng>sample string 5</Lng>
<RefrencePointID>1</RefrencePointID>
<RefrencePointName>sample string 6</RefrencePointName>
</RefrencePoint>
</RefrencePoints>
</AreaPoint>
<AreaPoint>
<AreaAssociateIDs xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:long>1</d5p1:long>
<d5p1:long>2</d5p1:long>
</AreaAssociateIDs>
<AreaPointID>1</AreaPointID>
<AreaPointName>sample string 5</AreaPointName>
<AreaTypeWithTimeSlot>
<DefaultAreaTypeWithTimeSlotsModel>
<AreaPointID>1</AreaPointID>
<AreaType>sample string 2</AreaType>
<ClosingTime>sample string 4</ClosingTime>
<OpeningTime>sample string 3</OpeningTime>
</DefaultAreaTypeWithTimeSlotsModel>
<DefaultAreaTypeWithTimeSlotsModel>
<AreaPointID>1</AreaPointID>
<AreaType>sample string 2</AreaType>
<ClosingTime>sample string 4</ClosingTime>
<OpeningTime>sample string 3</OpeningTime>
</DefaultAreaTypeWithTimeSlotsModel>
</AreaTypeWithTimeSlot>
<Clat>sample string 3</Clat>
<Clng>sample string 4</Clng>
<CurrentAreaType>sample string 9</CurrentAreaType>
<DeliveryEnabled>true</DeliveryEnabled>
<DeliveryZoneID>2</DeliveryZoneID>
<PickupEnabled>true</PickupEnabled>
<RadiusInKm>6</RadiusInKm>
<RefrencePoints>
<RefrencePoint>
<AreaPointID>3</AreaPointID>
<DeliveryZoneID>2</DeliveryZoneID>
<Lat>sample string 4</Lat>
<Lng>sample string 5</Lng>
<RefrencePointID>1</RefrencePointID>
<RefrencePointName>sample string 6</RefrencePointName>
</RefrencePoint>
<RefrencePoint>
<AreaPointID>3</AreaPointID>
<DeliveryZoneID>2</DeliveryZoneID>
<Lat>sample string 4</Lat>
<Lng>sample string 5</Lng>
<RefrencePointID>1</RefrencePointID>
<RefrencePointName>sample string 6</RefrencePointName>
</RefrencePoint>
</RefrencePoints>
</AreaPoint>
</AreaPoints>
<CentreLatitude>sample string 3</CentreLatitude>
<CentreLongitude>sample string 4</CentreLongitude>
<DeliveryZoneID>1</DeliveryZoneID>
<DeliveryZoneName>sample string 2</DeliveryZoneName>
<RadiusInKm>5</RadiusInKm>
<RefrencePoints>
<RefrencePoint>
<AreaPointID>3</AreaPointID>
<DeliveryZoneID>2</DeliveryZoneID>
<Lat>sample string 4</Lat>
<Lng>sample string 5</Lng>
<RefrencePointID>1</RefrencePointID>
<RefrencePointName>sample string 6</RefrencePointName>
</RefrencePoint>
<RefrencePoint>
<AreaPointID>3</AreaPointID>
<DeliveryZoneID>2</DeliveryZoneID>
<Lat>sample string 4</Lat>
<Lng>sample string 5</Lng>
<RefrencePointID>1</RefrencePointID>
<RefrencePointName>sample string 6</RefrencePointName>
</RefrencePoint>
</RefrencePoints>
<ZoneLatLngBounds>
<LatLngBound>
<BoundID>1</BoundID>
<DeliveryZoneID>2</DeliveryZoneID>
<Lat>sample string 3</Lat>
<Lng>sample string 4</Lng>
</LatLngBound>
<LatLngBound>
<BoundID>1</BoundID>
<DeliveryZoneID>2</DeliveryZoneID>
<Lat>sample string 3</Lat>
<Lng>sample string 4</Lng>
</LatLngBound>
</ZoneLatLngBounds>
</DeliveryZone>
<IPAddress>sample string 2</IPAddress>
<UserID>sample string 1</UserID>
</DeliveryZoneWithBoundsPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>