POST api/vendorBilling/PostCharges

Request Information

URI Parameters

None.

Body Parameters

VendorBillChargesBindingViewModel
NameDescriptionTypeAdditional information
IsReceipt

boolean

Required

Id

integer

Required

Charges

Collection of TransloadBillingItemViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "IsReceipt": true,
  "Id": 2,
  "Charges": [
    {
      "ChargeId": 1,
      "Rate": 2.0,
      "Quantity": 3.0,
      "OriAddSup": 4,
      "InvoiceId": 1,
      "IsReadOnly": true,
      "Note": "sample string 6",
      "FreightChargeId": 1,
      "DateStart": "2025-12-05T20:23:37.1202284-08:00",
      "DateEnd": "2025-12-05T20:23:37.1202284-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-05T20:23:37.1202284-08:00",
      "DateEnd": "2025-12-05T20:23:37.1202284-08:00"
    }
  ]
}

application/xml, text/xml

Sample:
<VendorBillChargesBindingViewModel 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-05T20:23:37.1202284-08:00</d2p1:DateEnd>
      <d2p1:DateStart>2025-12-05T20:23:37.1202284-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-05T20:23:37.1202284-08:00</d2p1:DateEnd>
      <d2p1:DateStart>2025-12-05T20:23:37.1202284-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>
  <Id>2</Id>
  <IsReceipt>true</IsReceipt>
</VendorBillChargesBindingViewModel>

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.