POST api/TransportationCost/getTransportationCost
Request Information
URI Parameters
None.
Body Parameters
TransportationCostReceivedDataModels| Name | Description | Type | Additional information |
|---|---|---|---|
| location | string |
None. |
|
| handphone | string |
None. |
|
| mobile_token | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"location": "sample string 1",
"handphone": "sample string 2",
"mobile_token": "sample string 3"
}
application/xml, text/xml
Sample:
<TransportationCostReceivedDataModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.TransportationCostIntegrator.ReceivedDataModels"> <handphone>sample string 2</handphone> <location>sample string 1</location> <mobile_token>sample string 3</mobile_token> </TransportationCostReceivedDataModels>
multipart/form-data
Sample:
<TransportationCostReceivedDataModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.TransportationCostIntegrator.ReceivedDataModels"><handphone>sample string 2</handphone><location>sample string 1</location><mobile_token>sample string 3</mobile_token></TransportationCostReceivedDataModels>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TransportationCostBaseTreeModels| Name | Description | Type | Additional information |
|---|---|---|---|
| message | string |
None. |
|
| success | boolean |
None. |
|
| data | Collection of TransportationCostSentDataModels |
None. |
Response Formats
application/json, text/json
Sample:
{
"message": "sample string 1",
"success": true,
"data": [
{
"location": "sample string 1",
"transportation_cost": "sample string 2",
"handphone": "sample string 3",
"mobile_token": "sample string 4"
},
{
"location": "sample string 1",
"transportation_cost": "sample string 2",
"handphone": "sample string 3",
"mobile_token": "sample string 4"
}
]
}
application/xml, text/xml
Sample:
<TransportationCostBaseTreeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.TransportationCostIntegrator.BaseTreeModels">
<data xmlns:d2p1="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.TransportationCostIntegrator.SentDataModels">
<d2p1:TransportationCostSentDataModels>
<d2p1:handphone>sample string 3</d2p1:handphone>
<d2p1:location>sample string 1</d2p1:location>
<d2p1:mobile_token>sample string 4</d2p1:mobile_token>
<d2p1:transportation_cost>sample string 2</d2p1:transportation_cost>
</d2p1:TransportationCostSentDataModels>
<d2p1:TransportationCostSentDataModels>
<d2p1:handphone>sample string 3</d2p1:handphone>
<d2p1:location>sample string 1</d2p1:location>
<d2p1:mobile_token>sample string 4</d2p1:mobile_token>
<d2p1:transportation_cost>sample string 2</d2p1:transportation_cost>
</d2p1:TransportationCostSentDataModels>
</data>
<message>sample string 1</message>
<success>true</success>
</TransportationCostBaseTreeModels>
multipart/form-data
Sample:
<TransportationCostBaseTreeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.TransportationCostIntegrator.BaseTreeModels"><data xmlns:d2p1="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.TransportationCostIntegrator.SentDataModels"><d2p1:TransportationCostSentDataModels><d2p1:handphone>sample string 3</d2p1:handphone><d2p1:location>sample string 1</d2p1:location><d2p1:mobile_token>sample string 4</d2p1:mobile_token><d2p1:transportation_cost>sample string 2</d2p1:transportation_cost></d2p1:TransportationCostSentDataModels><d2p1:TransportationCostSentDataModels><d2p1:handphone>sample string 3</d2p1:handphone><d2p1:location>sample string 1</d2p1:location><d2p1:mobile_token>sample string 4</d2p1:mobile_token><d2p1:transportation_cost>sample string 2</d2p1:transportation_cost></d2p1:TransportationCostSentDataModels></data><message>sample string 1</message><success>true</success></TransportationCostBaseTreeModels>