POST api/Logistics/postCreateDeliveryPlan/{planType}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
planType

boolean

Required

Body Parameters

mCreateDeliveryPlan
NameDescriptionTypeAdditional information
total_sack

integer

None.

total_ctn

integer

None.

total_pairs

integer

None.

remark

string

None.

road

string

None.

deliveryDate

date

None.

toDate

date

None.

orders

Collection of mOrder

None.

trucks

Collection of mTruck

None.

Request Formats

application/json, text/json

Sample:
{
  "total_sack": 1,
  "total_ctn": 1,
  "total_pairs": 1,
  "remark": "sample string 1",
  "road": "sample string 2",
  "deliveryDate": "2026-04-07T18:02:31.9306092+07:00",
  "toDate": "2026-04-07T18:02:31.9306092+07:00",
  "orders": [
    {
      "cmi_id": 1,
      "ord_id": 1,
      "amount_sack": 1,
      "amount_ctn": 1,
      "amount_pairs": 1,
      "truckId": "sample string 1",
      "driverId": 1,
      "roadName": "sample string 2",
      "assistants": [
        {
          "assistantId": 1
        },
        {
          "assistantId": 1
        }
      ]
    },
    {
      "cmi_id": 1,
      "ord_id": 1,
      "amount_sack": 1,
      "amount_ctn": 1,
      "amount_pairs": 1,
      "truckId": "sample string 1",
      "driverId": 1,
      "roadName": "sample string 2",
      "assistants": [
        {
          "assistantId": 1
        },
        {
          "assistantId": 1
        }
      ]
    }
  ],
  "trucks": [
    {
      "truckTypeId": 1,
      "amount": 2
    },
    {
      "truckTypeId": 1,
      "amount": 2
    }
  ]
}

application/xml, text/xml

Sample:
<mCreateDeliveryPlan xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.Logistics">
  <deliveryDate>2026-04-07T18:02:31.9306092+07:00</deliveryDate>
  <orders>
    <mOrder>
      <amount_ctn>1</amount_ctn>
      <amount_pairs>1</amount_pairs>
      <amount_sack>1</amount_sack>
      <assistants>
        <mAssistant>
          <assistantId>1</assistantId>
        </mAssistant>
        <mAssistant>
          <assistantId>1</assistantId>
        </mAssistant>
      </assistants>
      <cmi_id>1</cmi_id>
      <driverId>1</driverId>
      <ord_id>1</ord_id>
      <roadName>sample string 2</roadName>
      <truckId>sample string 1</truckId>
    </mOrder>
    <mOrder>
      <amount_ctn>1</amount_ctn>
      <amount_pairs>1</amount_pairs>
      <amount_sack>1</amount_sack>
      <assistants>
        <mAssistant>
          <assistantId>1</assistantId>
        </mAssistant>
        <mAssistant>
          <assistantId>1</assistantId>
        </mAssistant>
      </assistants>
      <cmi_id>1</cmi_id>
      <driverId>1</driverId>
      <ord_id>1</ord_id>
      <roadName>sample string 2</roadName>
      <truckId>sample string 1</truckId>
    </mOrder>
  </orders>
  <remark>sample string 1</remark>
  <road>sample string 2</road>
  <toDate>2026-04-07T18:02:31.9306092+07:00</toDate>
  <total_ctn>1</total_ctn>
  <total_pairs>1</total_pairs>
  <total_sack>1</total_sack>
  <trucks>
    <mTruck>
      <amount>2</amount>
      <truckTypeId>1</truckTypeId>
    </mTruck>
    <mTruck>
      <amount>2</amount>
      <truckTypeId>1</truckTypeId>
    </mTruck>
  </trucks>
</mCreateDeliveryPlan>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'mCreateDeliveryPlan'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.