POST api/Bag/CalcDimWeight
Request Information
URI Parameters
None.
Body Parameters
BagDimWeightParm| Name | Description | Type | Additional information |
|---|---|---|---|
| auth | string |
None. |
|
| CarrierID | integer |
None. |
|
| ExportCountryID | string |
None. |
|
| ImportCountryID | string |
None. |
|
| Length | integer |
None. |
|
| Width | integer |
None. |
|
| Height | integer |
None. |
|
| SizeUOM | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"auth": "sample string 1",
"CarrierID": 2,
"ExportCountryID": "sample string 3",
"ImportCountryID": "sample string 4",
"Length": 1,
"Width": 1,
"Height": 1,
"SizeUOM": "sample string 5"
}
application/xml, text/xml
Sample:
<BagDimWeightParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParcelLogic.WebApi.Transportation.Models"> <CarrierID>2</CarrierID> <ExportCountryID>sample string 3</ExportCountryID> <Height>1</Height> <ImportCountryID>sample string 4</ImportCountryID> <Length>1</Length> <SizeUOM>sample string 5</SizeUOM> <Width>1</Width> <auth>sample string 1</auth> </BagDimWeightParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BagDimWeightResp| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSuccessful | boolean |
None. |
|
| ErrorMessage | string |
None. |
|
| DimWeight | decimal number |
None. |
|
| WeightUOM | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsSuccessful": true,
"ErrorMessage": "sample string 2",
"DimWeight": 3.0,
"WeightUOM": "sample string 4"
}
application/xml, text/xml
Sample:
<BagDimWeightResp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParcelLogic.WebApi.Transportation.Models"> <DimWeight>3</DimWeight> <ErrorMessage>sample string 2</ErrorMessage> <IsSuccessful>true</IsSuccessful> <WeightUOM>sample string 4</WeightUOM> </BagDimWeightResp>