POST api/Estimate
Request Information
URI Parameters
None.
Body Parameters
TariffModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CatetegoryID | integer |
None. |
|
| PackageType | integer |
None. |
|
| isAC | boolean |
None. |
|
| KMs | integer |
None. |
|
| Duration | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"CatetegoryID": 1,
"PackageType": 2,
"isAC": true,
"KMs": 4,
"Duration": "sample string 5"
}
text/html
Sample:
{"CatetegoryID":1,"PackageType":2,"isAC":true,"KMs":4,"Duration":"sample string 5"}
application/xml, text/xml
Sample:
<TariffModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WITTravels.Models"> <CatetegoryID>1</CatetegoryID> <Duration>sample string 5</Duration> <KMs>4</KMs> <PackageType>2</PackageType> <isAC>true</isAC> </TariffModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
EstimatedValue| Name | Description | Type | Additional information |
|---|---|---|---|
| Estimate | decimal number |
None. |
|
| KMs | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Estimate": 1.1,
"KMs": 2
}
text/html
Sample:
{"Estimate":1.1,"KMs":2}
application/xml, text/xml
Sample:
<EstimatedValue xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WITTravels.Models"> <Estimate>1.1</Estimate> <KMs>2</KMs> </EstimatedValue>