POST api/Delivery/CalculateDelivery
Request Information
URI Parameters
None.
Body Parameters
mdlDeliveryRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Customer_Latitude | decimal number |
None. |
|
| Customer_Longitude | decimal number |
None. |
|
| Branch_Latitude | decimal number |
None. |
|
| BranchName | string |
None. |
|
| Branch_Longitude | decimal number |
None. |
|
| AVERAGE_SPEED_KMPH | decimal number |
None. |
|
| MIN_COOKING_TIME_MINs | decimal number |
None. |
|
| COST_PER_KM | decimal number |
None. |
|
| MIN_DELIVERY_CHARGE_PKR | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Customer_Latitude": 1.1,
"Customer_Longitude": 2.1,
"Branch_Latitude": 3.1,
"BranchName": "sample string 4",
"Branch_Longitude": 5.1,
"AVERAGE_SPEED_KMPH": 6.1,
"MIN_COOKING_TIME_MINs": 7.1,
"COST_PER_KM": 8.1,
"MIN_DELIVERY_CHARGE_PKR": 9.1
}
application/xml, text/xml
Sample:
<mdlDeliveryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS_WEB_API.Models"> <AVERAGE_SPEED_KMPH>6.1</AVERAGE_SPEED_KMPH> <BranchName>sample string 4</BranchName> <Branch_Latitude>3.1</Branch_Latitude> <Branch_Longitude>5.1</Branch_Longitude> <COST_PER_KM>8.1</COST_PER_KM> <Customer_Latitude>1.1</Customer_Latitude> <Customer_Longitude>2.1</Customer_Longitude> <MIN_COOKING_TIME_MINs>7.1</MIN_COOKING_TIME_MINs> <MIN_DELIVERY_CHARGE_PKR>9.1</MIN_DELIVERY_CHARGE_PKR> </mdlDeliveryRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |