POST api/{database}/PurchaseOrder

No Documentation Found.



Request Information

Parameters

NameDescriptionAdditional information
value No Documentation Found.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "messages": [],
  "approvedById": "sample string 1",
  "canChange": true,
  "cannotChangeReason": "sample string 3",
  "contactPerson": "sample string 4",
  "contactPersonId": "sample string 5",
  "currencyId": "sample string 6",
  "deliveryAddress": "sample string 7",
  "deliveryConditionId": "sample string 8",
  "description": "sample string 9",
  "discountPercentage": 10.0,
  "isApproved": true,
  "isOpen": true,
  "orderAmountExcl": 13.0,
  "orderDate": "sample string 14",
  "paymentConditionId": "sample string 15",
  "processedBy": "sample string 16",
  "processedById": "sample string 17",
  "projectId": "sample string 18",
  "purchaseOrderId": "sample string 19",
  "purchaseOrderLines": null,
  "reference": "sample string 20",
  "supplierId": "sample string 21"
}

application/xml, text/xml

Sample:
<PurchaseOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Purchase.Edit">
  <ApprovedById>sample string 1</ApprovedById>
  <CanChange>true</CanChange>
  <CannotChangeReason>sample string 3</CannotChangeReason>
  <ContactPerson>sample string 4</ContactPerson>
  <ContactPersonId>sample string 5</ContactPersonId>
  <CurrencyId>sample string 6</CurrencyId>
  <DeliveryAddress>sample string 7</DeliveryAddress>
  <DeliveryConditionId>sample string 8</DeliveryConditionId>
  <Description>sample string 9</Description>
  <DiscountPercentage>10</DiscountPercentage>
  <IsApproved>true</IsApproved>
  <IsOpen>true</IsOpen>
  <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
  <OrderAmountExcl>13</OrderAmountExcl>
  <OrderDate>sample string 14</OrderDate>
  <PaymentConditionId>sample string 15</PaymentConditionId>
  <ProcessedBy>sample string 16</ProcessedBy>
  <ProcessedById>sample string 17</ProcessedById>
  <ProjectId>sample string 18</ProjectId>
  <PurchaseOrderId>sample string 19</PurchaseOrderId>
  <PurchaseOrderLines xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Purchase.Lists" i:nil="true" />
  <Reference>sample string 20</Reference>
  <SupplierId>sample string 21</SupplierId>
</PurchaseOrder>

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 'PurchaseOrderProxy'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "messages": [],
  "approvedById": "sample string 1",
  "canChange": true,
  "cannotChangeReason": "sample string 3",
  "contactPerson": "sample string 4",
  "contactPersonId": "sample string 5",
  "currencyId": "sample string 6",
  "deliveryAddress": "sample string 7",
  "deliveryConditionId": "sample string 8",
  "description": "sample string 9",
  "discountPercentage": 10.0,
  "isApproved": true,
  "isOpen": true,
  "orderAmountExcl": 13.0,
  "orderDate": "sample string 14",
  "paymentConditionId": "sample string 15",
  "processedBy": "sample string 16",
  "processedById": "sample string 17",
  "projectId": "sample string 18",
  "purchaseOrderId": "sample string 19",
  "purchaseOrderLines": null,
  "reference": "sample string 20",
  "supplierId": "sample string 21"
}

application/xml, text/xml

Sample:
<PurchaseOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Purchase.Edit">
  <ApprovedById>sample string 1</ApprovedById>
  <CanChange>true</CanChange>
  <CannotChangeReason>sample string 3</CannotChangeReason>
  <ContactPerson>sample string 4</ContactPerson>
  <ContactPersonId>sample string 5</ContactPersonId>
  <CurrencyId>sample string 6</CurrencyId>
  <DeliveryAddress>sample string 7</DeliveryAddress>
  <DeliveryConditionId>sample string 8</DeliveryConditionId>
  <Description>sample string 9</Description>
  <DiscountPercentage>10</DiscountPercentage>
  <IsApproved>true</IsApproved>
  <IsOpen>true</IsOpen>
  <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
  <OrderAmountExcl>13</OrderAmountExcl>
  <OrderDate>sample string 14</OrderDate>
  <PaymentConditionId>sample string 15</PaymentConditionId>
  <ProcessedBy>sample string 16</ProcessedBy>
  <ProcessedById>sample string 17</ProcessedById>
  <ProjectId>sample string 18</ProjectId>
  <PurchaseOrderId>sample string 19</PurchaseOrderId>
  <PurchaseOrderLines xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Purchase.Lists" i:nil="true" />
  <Reference>sample string 20</Reference>
  <SupplierId>sample string 21</SupplierId>
</PurchaseOrder>