POST api/Charge/Update
Request Information
URI Parameters
None.
Body Parameters
UpdateShipmentChargeParm| Name | Description | Type | Additional information |
|---|---|---|---|
| auth | string |
None. |
|
| ChargeID | integer |
None. |
|
| ChargeTypeID | integer |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| Amount | decimal number |
None. |
|
| TaxAmount | decimal number |
None. |
|
| NetAmount | decimal number |
None. |
|
| LockFlag | boolean |
None. |
|
| CustomerID | integer |
None. |
|
| GlAcctNumber | string |
None. |
|
| CurrencyID | string |
None. |
|
| SortOrder | integer |
None. |
|
| ApplyFuelSurcharge | boolean |
None. |
|
| ApplyCurrencySurcharge | boolean |
None. |
|
| ApplySecuritySurcharge | boolean |
None. |
|
| Taxable | boolean |
None. |
|
| Discountable | boolean |
None. |
|
| TaxCode | string |
None. |
|
| Status | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"auth": "sample string 1",
"ChargeID": 2,
"ChargeTypeID": 3,
"Name": "sample string 4",
"Description": "sample string 5",
"Amount": 6.0,
"TaxAmount": 7.0,
"NetAmount": 8.0,
"LockFlag": true,
"CustomerID": 10,
"GlAcctNumber": "sample string 11",
"CurrencyID": "sample string 12",
"SortOrder": 13,
"ApplyFuelSurcharge": true,
"ApplyCurrencySurcharge": true,
"ApplySecuritySurcharge": true,
"Taxable": true,
"Discountable": true,
"TaxCode": "sample string 19",
"Status": "sample string 20"
}
application/xml, text/xml
Sample:
<UpdateShipmentChargeParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParcelLogic.WebApi.Transportation.Models"> <Amount>6</Amount> <ApplyCurrencySurcharge>true</ApplyCurrencySurcharge> <ApplyFuelSurcharge>true</ApplyFuelSurcharge> <ApplySecuritySurcharge>true</ApplySecuritySurcharge> <ChargeID>2</ChargeID> <ChargeTypeID>3</ChargeTypeID> <CurrencyID>sample string 12</CurrencyID> <CustomerID>10</CustomerID> <Description>sample string 5</Description> <Discountable>true</Discountable> <GlAcctNumber>sample string 11</GlAcctNumber> <LockFlag>true</LockFlag> <Name>sample string 4</Name> <NetAmount>8</NetAmount> <SortOrder>13</SortOrder> <Status>sample string 20</Status> <TaxAmount>7</TaxAmount> <TaxCode>sample string 19</TaxCode> <Taxable>true</Taxable> <auth>sample string 1</auth> </UpdateShipmentChargeParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseBase| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSuccessful | boolean |
None. |
|
| ErrorMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsSuccessful": true,
"ErrorMessage": "sample string 2"
}
application/xml, text/xml
Sample:
<ResponseBase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParcelLogic.WebApi.Transportation.Models"> <ErrorMessage>sample string 2</ErrorMessage> <IsSuccessful>true</IsSuccessful> </ResponseBase>