POST api/v1/timeintransit/gettimeintransit
Request Information
URI Parameters
None.
Body Parameters
ExportPriceCriteriaModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PackageType | integer |
None. |
|
| Value | decimal number |
None. |
|
| FromStreetName | string |
None. |
|
| FromPostcode | string |
None. |
|
| FromCountryCode | string |
None. |
|
| ToStreetName | string |
None. |
|
| ToPostcode | string |
None. |
|
| ToCountryCode | string |
None. |
|
| ToStateProvinceCode | string |
None. |
|
| ToCity | string |
None. |
|
| PickupDate | date |
None. |
|
| WeightCode | string |
None. |
|
| Weight | decimal number |
None. |
|
| WeightDescription | string |
None. |
|
| CurrencyCode | string |
None. |
|
| LeadId | integer |
None. |
|
| ShipmentLeadId | integer |
None. |
|
| CityCode | integer |
None. |
|
| StreetCode | string |
None. |
|
| CustomerNumber | integer |
None. |
|
| ShipperNumber | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"PackageType": 1,
"Value": 2.0,
"FromStreetName": "sample string 3",
"FromPostcode": "sample string 4",
"FromCountryCode": "sample string 5",
"ToStreetName": "sample string 6",
"ToPostcode": "sample string 7",
"ToCountryCode": "sample string 8",
"ToStateProvinceCode": "sample string 9",
"ToCity": "sample string 10",
"PickupDate": "2021-09-09T05:23:03.2729511+03:00",
"WeightCode": "sample string 11",
"Weight": 12.0,
"WeightDescription": "sample string 13",
"CurrencyCode": "sample string 14",
"LeadId": 15,
"ShipmentLeadId": 16,
"CityCode": 17,
"StreetCode": "sample string 18",
"CustomerNumber": 19,
"ShipperNumber": "sample string 20"
}
application/xml, text/xml
Sample:
<ExportPriceCriteriaModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UPS.Ship.API.Models.Pricelist"> <CityCode>17</CityCode> <CurrencyCode>sample string 14</CurrencyCode> <CustomerNumber>19</CustomerNumber> <FromCountryCode>sample string 5</FromCountryCode> <FromPostcode>sample string 4</FromPostcode> <FromStreetName>sample string 3</FromStreetName> <LeadId>15</LeadId> <PackageType>1</PackageType> <PickupDate>2021-09-09T05:23:03.2729511+03:00</PickupDate> <ShipmentLeadId>16</ShipmentLeadId> <ShipperNumber>sample string 20</ShipperNumber> <StreetCode>sample string 18</StreetCode> <ToCity>sample string 10</ToCity> <ToCountryCode>sample string 8</ToCountryCode> <ToPostcode>sample string 7</ToPostcode> <ToStateProvinceCode>sample string 9</ToStateProvinceCode> <ToStreetName>sample string 6</ToStreetName> <Value>2</Value> <Weight>12</Weight> <WeightCode>sample string 11</WeightCode> <WeightDescription>sample string 13</WeightDescription> </ExportPriceCriteriaModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ExportPriceResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Items | Collection of ExportMergePriceRSModel |
None. |
|
| IsSuccess | boolean |
None. |
|
| ErrorCode | integer |
None. |
|
| ErrorDescription | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Items": [
{
"TotalPrice": 1.0,
"ReshumonPrice": 2.0,
"Service": 1,
"Days": "sample string 3",
"EstimatedDate": "sample string 4",
"Items": [
{
"Price": 1.0,
"RowType": 64
},
{
"Price": 1.0,
"RowType": 64
}
]
},
{
"TotalPrice": 1.0,
"ReshumonPrice": 2.0,
"Service": 1,
"Days": "sample string 3",
"EstimatedDate": "sample string 4",
"Items": [
{
"Price": 1.0,
"RowType": 64
},
{
"Price": 1.0,
"RowType": 64
}
]
}
],
"IsSuccess": true,
"ErrorCode": 1,
"ErrorDescription": "sample string 1"
}
application/xml, text/xml
Sample:
<ExportPriceResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UPS.Ship.API.Models.Export4U">
<ErrorCode>1</ErrorCode>
<ErrorDescription>sample string 1</ErrorDescription>
<Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/UPS.Ship.API.Models.Pricelist">
<d2p1:ExportMergePriceRSModel>
<d2p1:Days>sample string 3</d2p1:Days>
<d2p1:EstimatedDate>sample string 4</d2p1:EstimatedDate>
<d2p1:Items>
<d2p1:ExportMergePriceItemModel>
<d2p1:Price>1</d2p1:Price>
<d2p1:RowType>64</d2p1:RowType>
</d2p1:ExportMergePriceItemModel>
<d2p1:ExportMergePriceItemModel>
<d2p1:Price>1</d2p1:Price>
<d2p1:RowType>64</d2p1:RowType>
</d2p1:ExportMergePriceItemModel>
</d2p1:Items>
<d2p1:ReshumonPrice>2</d2p1:ReshumonPrice>
<d2p1:Service>Express</d2p1:Service>
<d2p1:TotalPrice>1</d2p1:TotalPrice>
</d2p1:ExportMergePriceRSModel>
<d2p1:ExportMergePriceRSModel>
<d2p1:Days>sample string 3</d2p1:Days>
<d2p1:EstimatedDate>sample string 4</d2p1:EstimatedDate>
<d2p1:Items>
<d2p1:ExportMergePriceItemModel>
<d2p1:Price>1</d2p1:Price>
<d2p1:RowType>64</d2p1:RowType>
</d2p1:ExportMergePriceItemModel>
<d2p1:ExportMergePriceItemModel>
<d2p1:Price>1</d2p1:Price>
<d2p1:RowType>64</d2p1:RowType>
</d2p1:ExportMergePriceItemModel>
</d2p1:Items>
<d2p1:ReshumonPrice>2</d2p1:ReshumonPrice>
<d2p1:Service>Express</d2p1:Service>
<d2p1:TotalPrice>1</d2p1:TotalPrice>
</d2p1:ExportMergePriceRSModel>
</Items>
</ExportPriceResponseModel>