POST api/Freight/CalcFreight

Request Information

URI Parameters

None.

Body Parameters

FreightModel
NameDescriptionTypeAdditional information
ChannelCode

string

None.

CountryCode

string

None.

OrderPrice

decimal number

None.

Weigth

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "ChannelCode": "sample string 1",
  "CountryCode": "sample string 2",
  "OrderPrice": 1.0,
  "Weigth": 3.0
}

application/xml, text/xml

Sample:
<FreightModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MS.LPS.Api.Model">
  <ChannelCode>sample string 1</ChannelCode>
  <CountryCode>sample string 2</CountryCode>
  <OrderPrice>1</OrderPrice>
  <Weigth>3</Weigth>
</FreightModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseResultOfDecimal
NameDescriptionTypeAdditional information
Status

boolean

None.

ErrorCode

string

None.

ErrorMessage

string

None.

Data

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "ErrorCode": "sample string 2",
  "ErrorMessage": "sample string 3",
  "Data": 4.0
}

application/xml, text/xml

Sample:
<ResponseResultOfdecimal xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Willv.Common">
  <Data>4</Data>
  <ErrorCode>sample string 2</ErrorCode>
  <ErrorMessage>sample string 3</ErrorMessage>
  <Status>true</Status>
</ResponseResultOfdecimal>