PUT api/Shipments/ShipmentCharges/{id}?isQuote={isQuote}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

isQuote

boolean

Default value is False

Body Parameters

TransloadShipmentDetailsChargesBindingViewModel
NameDescriptionTypeAdditional information
Vendors

Collection of ShipmentVendorBindingViewModel

None.

Charges

Collection of TransloadBillingItemViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Vendors": [
    {
      "Id": 1,
      "ItemVendorId": 1,
      "FreightChargeId": 1,
      "ContactId": 1,
      "VendorTypeId": 1,
      "BillToId": 1,
      "Rate": 1.0,
      "Description": "sample string 2",
      "VendorNumber": "sample string 3",
      "VendorInstructions": "sample string 4",
      "DriverName": "sample string 5",
      "DriverPhone": "sample string 6",
      "TruckNumber": "sample string 7",
      "Payables": [
        {
          "ChargeId": 1,
          "Quantity": 2.0,
          "Rate": 3.0,
          "FreeTime": 1.0,
          "MinCharge": 1.0,
          "MaxCharge": 1.0,
          "Code": "sample string 4",
          "InvoiceId": 1,
          "OriAddSup": 5,
          "IsReadOnly": true,
          "Note": "sample string 7",
          "DateStart": "2025-12-05T22:24:32.6776962-08:00",
          "DateEnd": "2025-12-05T22:24:32.6776962-08:00"
        },
        {
          "ChargeId": 1,
          "Quantity": 2.0,
          "Rate": 3.0,
          "FreeTime": 1.0,
          "MinCharge": 1.0,
          "MaxCharge": 1.0,
          "Code": "sample string 4",
          "InvoiceId": 1,
          "OriAddSup": 5,
          "IsReadOnly": true,
          "Note": "sample string 7",
          "DateStart": "2025-12-05T22:24:32.6776962-08:00",
          "DateEnd": "2025-12-05T22:24:32.6776962-08:00"
        }
      ]
    },
    {
      "Id": 1,
      "ItemVendorId": 1,
      "FreightChargeId": 1,
      "ContactId": 1,
      "VendorTypeId": 1,
      "BillToId": 1,
      "Rate": 1.0,
      "Description": "sample string 2",
      "VendorNumber": "sample string 3",
      "VendorInstructions": "sample string 4",
      "DriverName": "sample string 5",
      "DriverPhone": "sample string 6",
      "TruckNumber": "sample string 7",
      "Payables": [
        {
          "ChargeId": 1,
          "Quantity": 2.0,
          "Rate": 3.0,
          "FreeTime": 1.0,
          "MinCharge": 1.0,
          "MaxCharge": 1.0,
          "Code": "sample string 4",
          "InvoiceId": 1,
          "OriAddSup": 5,
          "IsReadOnly": true,
          "Note": "sample string 7",
          "DateStart": "2025-12-05T22:24:32.6776962-08:00",
          "DateEnd": "2025-12-05T22:24:32.6776962-08:00"
        },
        {
          "ChargeId": 1,
          "Quantity": 2.0,
          "Rate": 3.0,
          "FreeTime": 1.0,
          "MinCharge": 1.0,
          "MaxCharge": 1.0,
          "Code": "sample string 4",
          "InvoiceId": 1,
          "OriAddSup": 5,
          "IsReadOnly": true,
          "Note": "sample string 7",
          "DateStart": "2025-12-05T22:24:32.6776962-08:00",
          "DateEnd": "2025-12-05T22:24:32.6776962-08:00"
        }
      ]
    }
  ],
  "Charges": [
    {
      "ChargeId": 1,
      "Rate": 2.0,
      "Quantity": 3.0,
      "OriAddSup": 4,
      "InvoiceId": 1,
      "IsReadOnly": true,
      "Note": "sample string 6",
      "FreightChargeId": 1,
      "DateStart": "2025-12-05T22:24:32.678696-08:00",
      "DateEnd": "2025-12-05T22:24:32.678696-08:00"
    },
    {
      "ChargeId": 1,
      "Rate": 2.0,
      "Quantity": 3.0,
      "OriAddSup": 4,
      "InvoiceId": 1,
      "IsReadOnly": true,
      "Note": "sample string 6",
      "FreightChargeId": 1,
      "DateStart": "2025-12-05T22:24:32.678696-08:00",
      "DateEnd": "2025-12-05T22:24:32.678696-08:00"
    }
  ]
}

application/xml, text/xml

Sample:
<TransloadShipmentDetailsChargesBindingViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMpowerCore.ViewModels.TransloadShipment">
  <Charges xmlns:d2p1="http://schemas.datacontract.org/2004/07/eMpowerCore.ViewModels.TransloadReceipt">
    <d2p1:TransloadBillingItemViewModel>
      <d2p1:ChargeId>1</d2p1:ChargeId>
      <d2p1:DateEnd>2025-12-05T22:24:32.678696-08:00</d2p1:DateEnd>
      <d2p1:DateStart>2025-12-05T22:24:32.678696-08:00</d2p1:DateStart>
      <d2p1:FreightChargeId>1</d2p1:FreightChargeId>
      <d2p1:InvoiceId>1</d2p1:InvoiceId>
      <d2p1:IsReadOnly>true</d2p1:IsReadOnly>
      <d2p1:Note>sample string 6</d2p1:Note>
      <d2p1:OriAddSup>4</d2p1:OriAddSup>
      <d2p1:Quantity>3</d2p1:Quantity>
      <d2p1:Rate>2</d2p1:Rate>
    </d2p1:TransloadBillingItemViewModel>
    <d2p1:TransloadBillingItemViewModel>
      <d2p1:ChargeId>1</d2p1:ChargeId>
      <d2p1:DateEnd>2025-12-05T22:24:32.678696-08:00</d2p1:DateEnd>
      <d2p1:DateStart>2025-12-05T22:24:32.678696-08:00</d2p1:DateStart>
      <d2p1:FreightChargeId>1</d2p1:FreightChargeId>
      <d2p1:InvoiceId>1</d2p1:InvoiceId>
      <d2p1:IsReadOnly>true</d2p1:IsReadOnly>
      <d2p1:Note>sample string 6</d2p1:Note>
      <d2p1:OriAddSup>4</d2p1:OriAddSup>
      <d2p1:Quantity>3</d2p1:Quantity>
      <d2p1:Rate>2</d2p1:Rate>
    </d2p1:TransloadBillingItemViewModel>
  </Charges>
  <Vendors>
    <ShipmentVendorBindingViewModel>
      <BillToId>1</BillToId>
      <ContactId>1</ContactId>
      <Description>sample string 2</Description>
      <DriverName>sample string 5</DriverName>
      <DriverPhone>sample string 6</DriverPhone>
      <FreightChargeId>1</FreightChargeId>
      <Id>1</Id>
      <ItemVendorId>1</ItemVendorId>
      <Payables>
        <TransloadShipmentPayableViewModel>
          <ChargeId>1</ChargeId>
          <Code>sample string 4</Code>
          <DateEnd>2025-12-05T22:24:32.6776962-08:00</DateEnd>
          <DateStart>2025-12-05T22:24:32.6776962-08:00</DateStart>
          <FreeTime>1</FreeTime>
          <InvoiceId>1</InvoiceId>
          <IsReadOnly>true</IsReadOnly>
          <MaxCharge>1</MaxCharge>
          <MinCharge>1</MinCharge>
          <Note>sample string 7</Note>
          <OriAddSup>5</OriAddSup>
          <Quantity>2</Quantity>
          <Rate>3</Rate>
        </TransloadShipmentPayableViewModel>
        <TransloadShipmentPayableViewModel>
          <ChargeId>1</ChargeId>
          <Code>sample string 4</Code>
          <DateEnd>2025-12-05T22:24:32.6776962-08:00</DateEnd>
          <DateStart>2025-12-05T22:24:32.6776962-08:00</DateStart>
          <FreeTime>1</FreeTime>
          <InvoiceId>1</InvoiceId>
          <IsReadOnly>true</IsReadOnly>
          <MaxCharge>1</MaxCharge>
          <MinCharge>1</MinCharge>
          <Note>sample string 7</Note>
          <OriAddSup>5</OriAddSup>
          <Quantity>2</Quantity>
          <Rate>3</Rate>
        </TransloadShipmentPayableViewModel>
      </Payables>
      <Rate>1</Rate>
      <TruckNumber>sample string 7</TruckNumber>
      <VendorInstructions>sample string 4</VendorInstructions>
      <VendorNumber>sample string 3</VendorNumber>
      <VendorTypeId>1</VendorTypeId>
    </ShipmentVendorBindingViewModel>
    <ShipmentVendorBindingViewModel>
      <BillToId>1</BillToId>
      <ContactId>1</ContactId>
      <Description>sample string 2</Description>
      <DriverName>sample string 5</DriverName>
      <DriverPhone>sample string 6</DriverPhone>
      <FreightChargeId>1</FreightChargeId>
      <Id>1</Id>
      <ItemVendorId>1</ItemVendorId>
      <Payables>
        <TransloadShipmentPayableViewModel>
          <ChargeId>1</ChargeId>
          <Code>sample string 4</Code>
          <DateEnd>2025-12-05T22:24:32.6776962-08:00</DateEnd>
          <DateStart>2025-12-05T22:24:32.6776962-08:00</DateStart>
          <FreeTime>1</FreeTime>
          <InvoiceId>1</InvoiceId>
          <IsReadOnly>true</IsReadOnly>
          <MaxCharge>1</MaxCharge>
          <MinCharge>1</MinCharge>
          <Note>sample string 7</Note>
          <OriAddSup>5</OriAddSup>
          <Quantity>2</Quantity>
          <Rate>3</Rate>
        </TransloadShipmentPayableViewModel>
        <TransloadShipmentPayableViewModel>
          <ChargeId>1</ChargeId>
          <Code>sample string 4</Code>
          <DateEnd>2025-12-05T22:24:32.6776962-08:00</DateEnd>
          <DateStart>2025-12-05T22:24:32.6776962-08:00</DateStart>
          <FreeTime>1</FreeTime>
          <InvoiceId>1</InvoiceId>
          <IsReadOnly>true</IsReadOnly>
          <MaxCharge>1</MaxCharge>
          <MinCharge>1</MinCharge>
          <Note>sample string 7</Note>
          <OriAddSup>5</OriAddSup>
          <Quantity>2</Quantity>
          <Rate>3</Rate>
        </TransloadShipmentPayableViewModel>
      </Payables>
      <Rate>1</Rate>
      <TruckNumber>sample string 7</TruckNumber>
      <VendorInstructions>sample string 4</VendorInstructions>
      <VendorNumber>sample string 3</VendorNumber>
      <VendorTypeId>1</VendorTypeId>
    </ShipmentVendorBindingViewModel>
  </Vendors>
</TransloadShipmentDetailsChargesBindingViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.