GET TransportOrderLeg/EstimatedTollCosts/Load?SessionId={SessionId}&CompanyId={CompanyId}&orderLegId={orderLegId}&orderId={orderId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
SessionId

string

None.

CompanyId

integer

None.

orderLegId

integer

Required

orderId

integer

Default value is -1

Body Parameters

None.

Response Information

Resource Description

KendoGridResponseOfTransportOrderLegEstimatedTollCosts
NameDescriptionTypeAdditional information
total

integer

None.

data

Collection of TransportOrderLegEstimatedTollCosts

None.

errorCode

integer

None.

error

string

None.

top

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "total": 1,
  "data": [
    {
      "id": 1,
      "toId": 2,
      "tolId": 3,
      "country": "sample string 4",
      "costsInEUR": 5.1,
      "distanceInM": 6,
      "travelTimeInSec": 7,
      "tollStations": [
        {
          "name": "sample string 1",
          "lon": 2.1,
          "lat": 3.1
        },
        {
          "name": "sample string 1",
          "lon": 2.1,
          "lat": 3.1
        }
      ]
    },
    {
      "id": 1,
      "toId": 2,
      "tolId": 3,
      "country": "sample string 4",
      "costsInEUR": 5.1,
      "distanceInM": 6,
      "travelTimeInSec": 7,
      "tollStations": [
        {
          "name": "sample string 1",
          "lon": 2.1,
          "lat": 3.1
        },
        {
          "name": "sample string 1",
          "lon": 2.1,
          "lat": 3.1
        }
      ]
    }
  ],
  "errorCode": 2,
  "error": "sample string 3",
  "top": 4
}

text/javascript

Sample:
{"total":1,"data":[{"id":1,"toId":2,"tolId":3,"country":"sample string 4","costsInEUR":5.1,"distanceInM":6,"travelTimeInSec":7,"tollStations":[{"name":"sample string 1","lon":2.1,"lat":3.1},{"name":"sample string 1","lon":2.1,"lat":3.1}]},{"id":1,"toId":2,"tolId":3,"country":"sample string 4","costsInEUR":5.1,"distanceInM":6,"travelTimeInSec":7,"tollStations":[{"name":"sample string 1","lon":2.1,"lat":3.1},{"name":"sample string 1","lon":2.1,"lat":3.1}]}],"errorCode":2,"error":"sample string 3","top":4}

application/xml, text/xml

Sample:
<KendoGridResponseOfTransportOrderLegEstimatedTollCostsTPMxpBRP xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/T8UtilityLib">
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/T8LSPModel.Model">
    <d2p1:TransportOrderLegEstimatedTollCosts>
      <d2p1:costsInEUR>5.1</d2p1:costsInEUR>
      <d2p1:country>sample string 4</d2p1:country>
      <d2p1:distanceInM>6</d2p1:distanceInM>
      <d2p1:id>1</d2p1:id>
      <d2p1:toId>2</d2p1:toId>
      <d2p1:tolId>3</d2p1:tolId>
      <d2p1:tollStations>
        <d2p1:TollStation>
          <d2p1:lat>3.1</d2p1:lat>
          <d2p1:lon>2.1</d2p1:lon>
          <d2p1:name>sample string 1</d2p1:name>
        </d2p1:TollStation>
        <d2p1:TollStation>
          <d2p1:lat>3.1</d2p1:lat>
          <d2p1:lon>2.1</d2p1:lon>
          <d2p1:name>sample string 1</d2p1:name>
        </d2p1:TollStation>
      </d2p1:tollStations>
      <d2p1:travelTimeInSec>7</d2p1:travelTimeInSec>
    </d2p1:TransportOrderLegEstimatedTollCosts>
    <d2p1:TransportOrderLegEstimatedTollCosts>
      <d2p1:costsInEUR>5.1</d2p1:costsInEUR>
      <d2p1:country>sample string 4</d2p1:country>
      <d2p1:distanceInM>6</d2p1:distanceInM>
      <d2p1:id>1</d2p1:id>
      <d2p1:toId>2</d2p1:toId>
      <d2p1:tolId>3</d2p1:tolId>
      <d2p1:tollStations>
        <d2p1:TollStation>
          <d2p1:lat>3.1</d2p1:lat>
          <d2p1:lon>2.1</d2p1:lon>
          <d2p1:name>sample string 1</d2p1:name>
        </d2p1:TollStation>
        <d2p1:TollStation>
          <d2p1:lat>3.1</d2p1:lat>
          <d2p1:lon>2.1</d2p1:lon>
          <d2p1:name>sample string 1</d2p1:name>
        </d2p1:TollStation>
      </d2p1:tollStations>
      <d2p1:travelTimeInSec>7</d2p1:travelTimeInSec>
    </d2p1:TransportOrderLegEstimatedTollCosts>
  </data>
  <error>sample string 3</error>
  <errorCode>2</errorCode>
  <top>4</top>
  <total>1</total>
</KendoGridResponseOfTransportOrderLegEstimatedTollCostsTPMxpBRP>

application/x-protobuf

Sample:

An exception has occurred while using the formatter 'ProtoBufFormatter' to generate sample for media type 'application/x-protobuf'. Exception message: Type is not expected, and no contract can be inferred: T8UtilityLib.KendoGridResponse`1[[T8LSPModel.Model.TransportOrderLegEstimatedTollCosts, T8LSPModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]