GET api/GrossMargin/{auth}/{ShipmentGUID}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
auth | string |
Required |
|
ShipmentGUID | string |
Required |
Body Parameters
None.
Response Information
Resource Description
GrossMarginRespName | Description | Type | Additional information |
---|---|---|---|
IsSuccessful | boolean |
None. |
|
ErrorMessage | string |
None. |
|
Amount | decimal number |
None. |
|
TaxAmount | decimal number |
None. |
|
NetAmount | decimal number |
None. |
|
PickupCostAlloc | decimal number |
None. |
|
DeliveryCostAlloc | decimal number |
None. |
|
LineHaulCostAlloc | decimal number |
None. |
|
TotalCost | decimal number |
None. |
|
ProfitAmount | decimal number |
None. |
|
MarginPercent | decimal number |
None. |
|
IntercompanyAmount | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{ "IsSuccessful": true, "ErrorMessage": "sample string 2", "Amount": 3.0, "TaxAmount": 4.0, "NetAmount": 5.0, "PickupCostAlloc": 6.0, "DeliveryCostAlloc": 7.0, "LineHaulCostAlloc": 8.0, "TotalCost": 9.0, "ProfitAmount": 10.0, "MarginPercent": 11.0, "IntercompanyAmount": 12.0 }
application/xml, text/xml
Sample:
<GrossMarginResp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParcelLogic.WebApi.Transportation.Models"> <Amount>3</Amount> <DeliveryCostAlloc>7</DeliveryCostAlloc> <ErrorMessage>sample string 2</ErrorMessage> <IntercompanyAmount>12</IntercompanyAmount> <IsSuccessful>true</IsSuccessful> <LineHaulCostAlloc>8</LineHaulCostAlloc> <MarginPercent>11</MarginPercent> <NetAmount>5</NetAmount> <PickupCostAlloc>6</PickupCostAlloc> <ProfitAmount>10</ProfitAmount> <TaxAmount>4</TaxAmount> <TotalCost>9</TotalCost> </GrossMarginResp>