POST api/Shipments/PostShipmentPayables

Request Information

URI Parameters

None.

Body Parameters

ShipmentPayablesBindingViewModel
NameDescriptionTypeAdditional information
Id

integer

Required

VendorId

integer

Required

VendorTypeId

integer

None.

ThirdPartyBillToId

integer

None.

FreightChargeId

integer

None.

Payables

Collection of TransloadShipmentPayableViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "VendorId": 2,
  "VendorTypeId": 1,
  "ThirdPartyBillToId": 1,
  "FreightChargeId": 3,
  "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-05T23:15:30.1085681-08:00",
      "DateEnd": "2025-12-05T23:15:30.1085681-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-05T23:15:30.1085681-08:00",
      "DateEnd": "2025-12-05T23:15:30.1085681-08:00"
    }
  ]
}

application/xml, text/xml

Sample:
<ShipmentPayablesBindingViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMpowerCore.ViewModels.TransloadShipment">
  <FreightChargeId>3</FreightChargeId>
  <Id>1</Id>
  <Payables>
    <TransloadShipmentPayableViewModel>
      <ChargeId>1</ChargeId>
      <Code>sample string 4</Code>
      <DateEnd>2025-12-05T23:15:30.1085681-08:00</DateEnd>
      <DateStart>2025-12-05T23:15:30.1085681-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-05T23:15:30.1085681-08:00</DateEnd>
      <DateStart>2025-12-05T23:15:30.1085681-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>
  <ThirdPartyBillToId>1</ThirdPartyBillToId>
  <VendorId>2</VendorId>
  <VendorTypeId>1</VendorTypeId>
</ShipmentPayablesBindingViewModel>

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.