POST delivery/calculateprice

Request Information

URI Parameters

None.

Body Parameters

CalculatePriceRequest
NameDescriptionTypeAdditional information
CompanyId

integer

None.

From

string

None.

To

string

None.

Distance

decimal number

None.

RecalculateDistance

boolean

None.

Urgency

integer

None.

Envelope

integer

None.

WorkingTimeWeb

HoursMinutes

None.

WaitingTimeWeb

HoursMinutes

None.

Request Formats

application/json, text/json

Sample:
{
  "companyId": 1,
  "from": "sample string 2",
  "to": "sample string 3",
  "distance": 1.0,
  "recalculateDistance": true,
  "urgency": 5,
  "envelope": 6,
  "workingTimeWeb": {
    "hours": 1,
    "minutes": 2,
    "timespan": "01:02:00"
  },
  "waitingTimeWeb": {
    "hours": 1,
    "minutes": 2,
    "timespan": "01:02:00"
  }
}

application/xml, text/xml

Sample:
<CalculatePriceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Clickoapp2.Domain.Models">
  <_x003C_CompanyId_x003E_k__BackingField>1</_x003C_CompanyId_x003E_k__BackingField>
  <_x003C_Distance_x003E_k__BackingField>1</_x003C_Distance_x003E_k__BackingField>
  <_x003C_Envelope_x003E_k__BackingField>6</_x003C_Envelope_x003E_k__BackingField>
  <_x003C_From_x003E_k__BackingField>sample string 2</_x003C_From_x003E_k__BackingField>
  <_x003C_RecalculateDistance_x003E_k__BackingField>true</_x003C_RecalculateDistance_x003E_k__BackingField>
  <_x003C_To_x003E_k__BackingField>sample string 3</_x003C_To_x003E_k__BackingField>
  <_x003C_Urgency_x003E_k__BackingField>5</_x003C_Urgency_x003E_k__BackingField>
  <_x003C_WaitingTimeWeb_x003E_k__BackingField xmlns:d2p1="http://schemas.datacontract.org/2004/07/Clickoapp2.Shared.ViewModels">
    <d2p1:Hours>1</d2p1:Hours>
    <d2p1:Minutes>2</d2p1:Minutes>
  </_x003C_WaitingTimeWeb_x003E_k__BackingField>
  <_x003C_WorkingTimeWeb_x003E_k__BackingField xmlns:d2p1="http://schemas.datacontract.org/2004/07/Clickoapp2.Shared.ViewModels">
    <d2p1:Hours>1</d2p1:Hours>
    <d2p1:Minutes>2</d2p1:Minutes>
  </_x003C_WorkingTimeWeb_x003E_k__BackingField>
</CalculatePriceRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.