POST api/PurchaseOrders/AddPurchaseOrder

Request Information

URI Parameters

None.

Body Parameters

PurchaseOrderHeader
NameDescriptionTypeAdditional information
PurchaseOrderYear

integer

None.

PurchaseOrderBook

string

None.

SupplierID

string

None.

CustomerID

string

None.

Status

string

None.

Document

string

None.

OrderDate

date

None.

CostUnitID

string

None.

CostCenterID

string

None.

ClerkID

string

None.

WorkOrderID

string

None.

AnalyticID

string

None.

AnalyticAN1ID

string

None.

AnalyticAN2ID

string

None.

AnalyticAN3ID

string

None.

ForeseenDeliveryDate

date

None.

SentDocument

string

None.

PickedNote

string

None.

CanceledDate

date

None.

CanceledNote

string

None.

CurrencyID

string

None.

RebatePercentage

decimal number

None.

NoteHeader

string

None.

NoteFooter

string

None.

Note

string

None.

ClerkIDSupplier

string

None.

SearchKeySeqence

string

None.

PriceListID

string

None.

WHType2ID

string

None.

WarehouseID

string

None.

LanguageID

string

None.

EstimatedpayDate

date

None.

DeliveryType

string

None.

ParityCode

string

None.

SignedPRACDate

date

None.

AttachmentOriginal

string

None.

DiscountGroupID

string

None.

IDFolder

string

None.

LocationID

string

None.

ApprovedDate

date

None.

ApprovedNote

string

None.

ApprovedDeliveryDate

date

None.

OrderReferenceDate

date

None.

OrderReferenceID

string

None.

OrderTypeID

string

None.

ExchangeRateDate

date

None.

PurchaseOrderLines

PurchaseOrderLines

None.

Request Formats

application/xml, text/xml

Sample:
<PurchaseOrderHeader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <PurchaseOrderYear>1</PurchaseOrderYear>
  <PurchaseOrderBook>sample string 1</PurchaseOrderBook>
  <SupplierID>sample string 2</SupplierID>
  <CustomerID>sample string 3</CustomerID>
  <Status>sample string 4</Status>
  <Document>sample string 5</Document>
  <OrderDate>2024-11-21T15:34:46.2761671+01:00</OrderDate>
  <CostUnitID>sample string 6</CostUnitID>
  <CostCenterID>sample string 7</CostCenterID>
  <ClerkID>sample string 8</ClerkID>
  <WorkOrderID>sample string 9</WorkOrderID>
  <AnalyticID>sample string 10</AnalyticID>
  <AnalyticAN1ID>sample string 11</AnalyticAN1ID>
  <AnalyticAN2ID>sample string 12</AnalyticAN2ID>
  <AnalyticAN3ID>sample string 13</AnalyticAN3ID>
  <ForeseenDeliveryDate>2024-11-21T15:34:46.2761671+01:00</ForeseenDeliveryDate>
  <SentDocument>sample string 14</SentDocument>
  <PickedNote>sample string 15</PickedNote>
  <CanceledDate>2024-11-21T15:34:46.2761671+01:00</CanceledDate>
  <CanceledNote>sample string 16</CanceledNote>
  <CurrencyID>sample string 17</CurrencyID>
  <RebatePercentage>1</RebatePercentage>
  <NoteHeader>sample string 18</NoteHeader>
  <NoteFooter>sample string 19</NoteFooter>
  <Note>sample string 20</Note>
  <ClerkIDSupplier>sample string 21</ClerkIDSupplier>
  <SearchKeySeqence>sample string 22</SearchKeySeqence>
  <PriceListID>sample string 23</PriceListID>
  <WHType2ID>sample string 24</WHType2ID>
  <WarehouseID>sample string 25</WarehouseID>
  <LanguageID>sample string 26</LanguageID>
  <EstimatedpayDate>2024-11-21T15:34:46.2761671+01:00</EstimatedpayDate>
  <DeliveryType>sample string 27</DeliveryType>
  <ParityCode>sample string 28</ParityCode>
  <SignedPRACDate>2024-11-21T15:34:46.2761671+01:00</SignedPRACDate>
  <AttachmentOriginal>sample string 29</AttachmentOriginal>
  <DiscountGroupID>sample string 30</DiscountGroupID>
  <IDFolder>sample string 31</IDFolder>
  <LocationID>sample string 32</LocationID>
  <ApprovedDate>2024-11-21T15:34:46.2761671+01:00</ApprovedDate>
  <ApprovedNote>sample string 33</ApprovedNote>
  <ApprovedDeliveryDate>2024-11-21T15:34:46.2761671+01:00</ApprovedDeliveryDate>
  <OrderReferenceDate>2024-11-21T15:34:46.2761671+01:00</OrderReferenceDate>
  <OrderReferenceID>sample string 34</OrderReferenceID>
  <OrderTypeID>sample string 35</OrderTypeID>
  <ExchangeRateDate>2024-11-21T15:34:46.2771657+01:00</ExchangeRateDate>
  <PurchaseOrderLines>
    <PurchaseOrderLine>
      <LineSEQNumber>1</LineSEQNumber>
      <ItemID>sample string 2</ItemID>
      <ItemIDType>sample string 3</ItemIDType>
      <OrderedQuantity>1</OrderedQuantity>
      <Price>1</Price>
      <QuantitySupplier>1</QuantitySupplier>
      <UnitOfMeasureSupplier>sample string 4</UnitOfMeasureSupplier>
      <PriceSupplier>1</PriceSupplier>
      <DiscountPercentage>1</DiscountPercentage>
      <ForeseenDeliveryDate>2024-11-21T15:34:46.2771657+01:00</ForeseenDeliveryDate>
      <CostCenterID>sample string 5</CostCenterID>
      <CostUnitID>sample string 6</CostUnitID>
      <ClerkID>sample string 7</ClerkID>
      <WorkOrderID>sample string 8</WorkOrderID>
      <AnalyticID>sample string 9</AnalyticID>
      <Note>sample string 10</Note>
      <Description>sample string 11</Description>
      <ItemTitle1>sample string 12</ItemTitle1>
      <ItemTitle2>sample string 13</ItemTitle2>
      <UnitOfMeasure>sample string 14</UnitOfMeasure>
      <DimensionQuantity>1</DimensionQuantity>
      <DimensionLenght>1</DimensionLenght>
      <DimensionWidth>1</DimensionWidth>
      <DimensionHeight>1</DimensionHeight>
      <DiscountPercentage2>1</DiscountPercentage2>
      <DiscountPercentage3>1</DiscountPercentage3>
      <DiscountPercentage4>1</DiscountPercentage4>
      <DiscountPercentage5>1</DiscountPercentage5>
      <QuantityForTesting>1</QuantityForTesting>
      <TextLine>true</TextLine>
      <NumberOfPackages>1</NumberOfPackages>
      <Series>sample string 15</Series>
      <EstimatedSupplyDate>2024-11-21T15:34:46.2771657+01:00</EstimatedSupplyDate>
    </PurchaseOrderLine>
    <PurchaseOrderLine>
      <LineSEQNumber>1</LineSEQNumber>
      <ItemID>sample string 2</ItemID>
      <ItemIDType>sample string 3</ItemIDType>
      <OrderedQuantity>1</OrderedQuantity>
      <Price>1</Price>
      <QuantitySupplier>1</QuantitySupplier>
      <UnitOfMeasureSupplier>sample string 4</UnitOfMeasureSupplier>
      <PriceSupplier>1</PriceSupplier>
      <DiscountPercentage>1</DiscountPercentage>
      <ForeseenDeliveryDate>2024-11-21T15:34:46.2771657+01:00</ForeseenDeliveryDate>
      <CostCenterID>sample string 5</CostCenterID>
      <CostUnitID>sample string 6</CostUnitID>
      <ClerkID>sample string 7</ClerkID>
      <WorkOrderID>sample string 8</WorkOrderID>
      <AnalyticID>sample string 9</AnalyticID>
      <Note>sample string 10</Note>
      <Description>sample string 11</Description>
      <ItemTitle1>sample string 12</ItemTitle1>
      <ItemTitle2>sample string 13</ItemTitle2>
      <UnitOfMeasure>sample string 14</UnitOfMeasure>
      <DimensionQuantity>1</DimensionQuantity>
      <DimensionLenght>1</DimensionLenght>
      <DimensionWidth>1</DimensionWidth>
      <DimensionHeight>1</DimensionHeight>
      <DiscountPercentage2>1</DiscountPercentage2>
      <DiscountPercentage3>1</DiscountPercentage3>
      <DiscountPercentage4>1</DiscountPercentage4>
      <DiscountPercentage5>1</DiscountPercentage5>
      <QuantityForTesting>1</QuantityForTesting>
      <TextLine>true</TextLine>
      <NumberOfPackages>1</NumberOfPackages>
      <Series>sample string 15</Series>
      <EstimatedSupplyDate>2024-11-21T15:34:46.2771657+01:00</EstimatedSupplyDate>
    </PurchaseOrderLine>
  </PurchaseOrderLines>
</PurchaseOrderHeader>

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>