POST api/Shipments/PostMultiShipmentPayables

Request Information

URI Parameters

None.

Body Parameters

MultiShipmentPayablesBindingViewModel
NameDescriptionTypeAdditional information
Ids

Collection of integer

Required

VendorId

integer

Required

FreightChargeId

integer

None.

VendorTypeId

integer

None.

ThirdPartyBillToId

integer

None.

Payables

Collection of TransloadShipmentPayableViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Ids": [
    1,
    2
  ],
  "VendorId": 1,
  "FreightChargeId": 2,
  "VendorTypeId": 1,
  "ThirdPartyBillToId": 1,
  "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-05T21:06:42.7659084-08:00",
      "DateEnd": "2025-12-05T21:06:42.7659084-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-05T21:06:42.7659084-08:00",
      "DateEnd": "2025-12-05T21:06:42.7659084-08:00"
    }
  ]
}

application/xml, text/xml

Sample:
<MultiShipmentPayablesBindingViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMpowerCore.ViewModels.TransloadShipment">
  <FreightChargeId>2</FreightChargeId>
  <Ids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Ids>
  <Payables>
    <TransloadShipmentPayableViewModel>
      <ChargeId>1</ChargeId>
      <Code>sample string 4</Code>
      <DateEnd>2025-12-05T21:06:42.7659084-08:00</DateEnd>
      <DateStart>2025-12-05T21:06:42.7659084-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-05T21:06:42.7659084-08:00</DateEnd>
      <DateStart>2025-12-05T21:06:42.7659084-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>1</VendorId>
  <VendorTypeId>1</VendorTypeId>
</MultiShipmentPayablesBindingViewModel>

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.