POST api/WorkOrder/AddWorkOrder

Request Information

URI Parameters

None.

Body Parameters

WorkOrderHeaderDetail
NameDescriptionTypeAdditional information
WorkOrderYear

integer

None.

WorkOrderBook

string

None.

WorkOrderNumber

integer

None.

WorkOrderStatus

string

None.

WorkOrderDate

date

None.

WorkOrderStartDate

date

None.

WorkOrderStartDateCoop

date

None.

WorkOrderEndDateCoop

date

None.

WorkOrderEndDate

date

None.

WorkOrderClosedDate

date

None.

WorkOrderProductID

string

None.

WorkOrderTechProcessID

string

None.

WorkOrderSerialNoFrom

integer

None.

WorkOrderSerialNoTo

integer

None.

WorkOrderLotID

string

None.

WorkOrderQty

decimal number

None.

WorkOrderFabrQty

decimal number

None.

WorkOrderScrapReasonIDr

string

None.

WorkOrderScrapFabrQty

decimal number

None.

WorkOrderRestFabrQty

decimal number

None.

WorkOrderCustOrderNo

string

None.

WorkOrderCustomerID

string

None.

WorkOrderCustContactID

string

None.

WorkOrderCustContactIDNo

integer

None.

WorkOrderCoopCustID

string

None.

WorkOrderCoopCustContactID

string

None.

WorkOrderCoopCustContactIDNo

integer

None.

WorkOrderCostCenterID

string

None.

WorkOrderCostUnitID

string

None.

WorkOrderClerkID

string

None.

WorkOrderPriority

integer

None.

WorkOrderDevClerkID

string

None.

WorkOrderCompWarehouse1ID

string

None.

WorkOrderCompWarehouse2ID

string

None.

WorkOrderCompWarehouse3ID

string

None.

WorkOrderCompWarehouse4ID

string

None.

WorkOrderCompWarehouse5ID

string

None.

WorkOrderProdWarehouseID

string

None.

WorkOrderAlert

boolean

None.

WorkOrderBlockReceiving

boolean

None.

WorkOrderEnableWTR

boolean

None.

WorkOrderEnableMES

boolean

None.

WorkOrderMESWorkStationID

string

None.

WorkOrderCustAttachmentER1

string

None.

WorkOrderCustAttachmentER2

string

None.

WorkOrderCustAttachmentER3

string

None.

WorkOrderCoopCustAttachmentER1

string

None.

WorkOrderCoopCustAttachmentER2

string

None.

WorkOrderCoopCustAttachmentER3

string

None.

WorkOrderItemAttachmentER1

string

None.

WorkOrderItemAttachmentER2

string

None.

WorkOrderItemAttachmentER3

string

None.

WorkOrderProjectERID

string

None.

WorkOrderStartText

string

None.

WorkOrderEndText

string

None.

WorkOrderNotes

string

None.

WorkOrderSampleOK

string

None.

WorkOrderPostQty

decimal number

None.

WorkOrderScrapPostQty

decimal number

None.

WorkOrderRestPostQty

decimal number

None.

WorkOrderLatestEndDate

date

None.

WorkOrderLines

WorkOrderLine_

None.

AdvancedProperties

AdvancedProperty_

None.

WorkOrderProductLines

WorkOrderProductLine_

None.

Request Formats

application/xml, text/xml

Sample:
<WorkOrderHeader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <WorkOrderYear>1</WorkOrderYear>
  <WorkOrderBook>sample string 1</WorkOrderBook>
  <WorkOrderNumber>1</WorkOrderNumber>
  <WorkOrderStatus>sample string 2</WorkOrderStatus>
  <WorkOrderDate>2024-11-21T15:18:30.8322684+01:00</WorkOrderDate>
  <WorkOrderStartDate>2024-11-21T15:18:30.8322684+01:00</WorkOrderStartDate>
  <WorkOrderStartDateCoop>2024-11-21T15:18:30.8322684+01:00</WorkOrderStartDateCoop>
  <WorkOrderEndDateCoop>2024-11-21T15:18:30.8322684+01:00</WorkOrderEndDateCoop>
  <WorkOrderEndDate>2024-11-21T15:18:30.8322684+01:00</WorkOrderEndDate>
  <WorkOrderClosedDate>2024-11-21T15:18:30.8322684+01:00</WorkOrderClosedDate>
  <WorkOrderProductID>sample string 3</WorkOrderProductID>
  <WorkOrderTechProcessID>sample string 4</WorkOrderTechProcessID>
  <WorkOrderSerialNoFrom>1</WorkOrderSerialNoFrom>
  <WorkOrderSerialNoTo>1</WorkOrderSerialNoTo>
  <WorkOrderLotID>sample string 5</WorkOrderLotID>
  <WorkOrderQty>1</WorkOrderQty>
  <WorkOrderFabrQty>1</WorkOrderFabrQty>
  <WorkOrderScrapReasonIDr>sample string 6</WorkOrderScrapReasonIDr>
  <WorkOrderScrapFabrQty>1</WorkOrderScrapFabrQty>
  <WorkOrderRestFabrQty>1</WorkOrderRestFabrQty>
  <WorkOrderCustOrderNo>sample string 7</WorkOrderCustOrderNo>
  <WorkOrderCustomerID>sample string 8</WorkOrderCustomerID>
  <WorkOrderCustContactID>sample string 9</WorkOrderCustContactID>
  <WorkOrderCustContactIDNo>1</WorkOrderCustContactIDNo>
  <WorkOrderCoopCustID>sample string 10</WorkOrderCoopCustID>
  <WorkOrderCoopCustContactID>sample string 11</WorkOrderCoopCustContactID>
  <WorkOrderCoopCustContactIDNo>1</WorkOrderCoopCustContactIDNo>
  <WorkOrderCostCenterID>sample string 12</WorkOrderCostCenterID>
  <WorkOrderCostUnitID>sample string 13</WorkOrderCostUnitID>
  <WorkOrderClerkID>sample string 14</WorkOrderClerkID>
  <WorkOrderPriority>1</WorkOrderPriority>
  <WorkOrderDevClerkID>sample string 15</WorkOrderDevClerkID>
  <WorkOrderCompWarehouse1ID>sample string 16</WorkOrderCompWarehouse1ID>
  <WorkOrderCompWarehouse2ID>sample string 17</WorkOrderCompWarehouse2ID>
  <WorkOrderCompWarehouse3ID>sample string 18</WorkOrderCompWarehouse3ID>
  <WorkOrderCompWarehouse4ID>sample string 19</WorkOrderCompWarehouse4ID>
  <WorkOrderCompWarehouse5ID>sample string 20</WorkOrderCompWarehouse5ID>
  <WorkOrderProdWarehouseID>sample string 21</WorkOrderProdWarehouseID>
  <WorkOrderAlert>true</WorkOrderAlert>
  <WorkOrderBlockReceiving>true</WorkOrderBlockReceiving>
  <WorkOrderEnableWTR>true</WorkOrderEnableWTR>
  <WorkOrderEnableMES>true</WorkOrderEnableMES>
  <WorkOrderMESWorkStationID>sample string 22</WorkOrderMESWorkStationID>
  <WorkOrderCustAttachmentER1>sample string 23</WorkOrderCustAttachmentER1>
  <WorkOrderCustAttachmentER2>sample string 24</WorkOrderCustAttachmentER2>
  <WorkOrderCustAttachmentER3>sample string 25</WorkOrderCustAttachmentER3>
  <WorkOrderCoopCustAttachmentER1>sample string 26</WorkOrderCoopCustAttachmentER1>
  <WorkOrderCoopCustAttachmentER2>sample string 27</WorkOrderCoopCustAttachmentER2>
  <WorkOrderCoopCustAttachmentER3>sample string 28</WorkOrderCoopCustAttachmentER3>
  <WorkOrderItemAttachmentER1>sample string 29</WorkOrderItemAttachmentER1>
  <WorkOrderItemAttachmentER2>sample string 30</WorkOrderItemAttachmentER2>
  <WorkOrderItemAttachmentER3>sample string 31</WorkOrderItemAttachmentER3>
  <WorkOrderProjectERID>sample string 32</WorkOrderProjectERID>
  <WorkOrderStartText>sample string 33</WorkOrderStartText>
  <WorkOrderEndText>sample string 34</WorkOrderEndText>
  <WorkOrderNotes>sample string 35</WorkOrderNotes>
  <WorkOrderSampleOK>sample string 36</WorkOrderSampleOK>
  <WorkOrderPostQty>1</WorkOrderPostQty>
  <WorkOrderScrapPostQty>1</WorkOrderScrapPostQty>
  <WorkOrderRestPostQty>1</WorkOrderRestPostQty>
  <WorkOrderLatestEndDate>2024-11-21T15:18:30.8332686+01:00</WorkOrderLatestEndDate>
  <WorkOrderLines>
    <WorkOrderLine>
      <WorkOrderSeriesID>sample string 1</WorkOrderSeriesID>
      <WorkOrderSeriesQty>1</WorkOrderSeriesQty>
      <WorkOrderSeriesFabrQty>1</WorkOrderSeriesFabrQty>
    </WorkOrderLine>
    <WorkOrderLine>
      <WorkOrderSeriesID>sample string 1</WorkOrderSeriesID>
      <WorkOrderSeriesQty>1</WorkOrderSeriesQty>
      <WorkOrderSeriesFabrQty>1</WorkOrderSeriesFabrQty>
    </WorkOrderLine>
  </WorkOrderLines>
  <AdvancedProperties>
    <AdvancedProperty>
      <AdvancedPropertyID>sample string 1</AdvancedPropertyID>
      <AdvancedPropertyValue>sample string 2</AdvancedPropertyValue>
    </AdvancedProperty>
    <AdvancedProperty>
      <AdvancedPropertyID>sample string 1</AdvancedPropertyID>
      <AdvancedPropertyValue>sample string 2</AdvancedPropertyValue>
    </AdvancedProperty>
  </AdvancedProperties>
  <WorkOrderProductLines>
    <WorkOrderProductLine>
      <WorkOrderProductID>sample string 1</WorkOrderProductID>
      <WorkOrderProductSeriesID>sample string 2</WorkOrderProductSeriesID>
      <WorkOrderProductQty>1</WorkOrderProductQty>
      <WorkOrderProductFabrQty>1</WorkOrderProductFabrQty>
      <WorkOrderProductPostQty>1</WorkOrderProductPostQty>
    </WorkOrderProductLine>
    <WorkOrderProductLine>
      <WorkOrderProductID>sample string 1</WorkOrderProductID>
      <WorkOrderProductSeriesID>sample string 2</WorkOrderProductSeriesID>
      <WorkOrderProductQty>1</WorkOrderProductQty>
      <WorkOrderProductFabrQty>1</WorkOrderProductFabrQty>
      <WorkOrderProductPostQty>1</WorkOrderProductPostQty>
    </WorkOrderProductLine>
  </WorkOrderProductLines>
</WorkOrderHeader>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreateResult
NameDescriptionTypeAdditional information
Keys

Collection of EntityKeyField

None.

ResultCode

ExternalResultCode

None.

Errors

Collection of Error

None.

Response Formats

application/xml, text/xml

Sample:
<CreateResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Keys>
    <Key>
      <Name>sample string 1</Name>
      <Value>sample string 2</Value>
    </Key>
    <Key>
      <Name>sample string 1</Name>
      <Value>sample string 2</Value>
    </Key>
  </Keys>
  <ResultCode>None</ResultCode>
  <Errors>
    <Error>
      <Level>Warning</Level>
      <Message>sample string 1</Message>
    </Error>
    <Error>
      <Level>Warning</Level>
      <Message>sample string 1</Message>
    </Error>
  </Errors>
</CreateResult>