POST api/{database}/Product

Creates a new Product with the specified values



Request Information

Parameters

NameDescriptionAdditional information
value The Product with the updated values.

Define this parameter in the request body.

$expand Components ProductDescriptions ProductSuppliers Stocks

Define this parameter in the request URI.

Request body formats

application/json, text/json

Sample:
{
  "accountId": "sample string 1",
  "additionalUnits": 2.0,
  "messages": [],
  "canChange": true,
  "cannotChangeReason": "sample string 4",
  "components": null,
  "constellationNotition": "sample string 5",
  "coverageAccountId": "sample string 6",
  "currentStock": 7.0,
  "dateCreated": "sample string 8",
  "description": "sample string 9",
  "discountAccountId": "sample string 10",
  "eanCode": "sample string 11",
  "intrastatCode": 12,
  "lastUpdate": "sample string 13",
  "margin": 14.0,
  "maxStock": 15.0,
  "minStock": 16.0,
  "preferredProductSupplier": {
    "messages": [],
    "canChange": true,
    "cannotChangeReason": "sample string 2",
    "currencyId": "sample string 3",
    "discountPercentage": 4.0,
    "minOrderQuantity": 5.0,
    "partNumber": "sample string 6",
    "preferred": true,
    "price": 8.0,
    "productSupplierId": "sample string 9",
    "purchaseSurchargePercentage": 10.0
  },
  "pricePer": 17.0,
  "priceVatExcl": 18.0,
  "priceVatIncl": 19.0,
  "printOnInvoice": true,
  "printOnQuote": true,
  "printOnShippingOrder": true,
  "printOnWarehouseOrder": true,
  "productDescriptions": null,
  "productDiscountGroupId": "sample string 24",
  "productGroupId": "sample string 25",
  "productId": "sample string 26",
  "productState": 0,
  "productSuppliers": null,
  "productType": 0,
  "projectEntryType": 0,
  "projectSurchargePerc": 27.0,
  "publishOnWeb": true,
  "purchaseOrderCount": 29,
  "quantityScale": 30,
  "shortName": "sample string 31",
  "stocks": null,
  "stockTransactionCount": 32,
  "stockTransferPrice": 33.0,
  "unit": "sample string 34",
  "vatCodeId": 35,
  "weight": 36.0
}

application/xml, text/xml

Sample:
<Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Edit">
  <AccountId>sample string 1</AccountId>
  <AdditionalUnits>2</AdditionalUnits>
  <CanChange>true</CanChange>
  <CannotChangeReason>sample string 4</CannotChangeReason>
  <Components xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Lists" i:nil="true" />
  <ConstellationNotition>sample string 5</ConstellationNotition>
  <CoverageAccountId>sample string 6</CoverageAccountId>
  <CurrentStock>7</CurrentStock>
  <DateCreated>sample string 8</DateCreated>
  <Description>sample string 9</Description>
  <DiscountAccountId>sample string 10</DiscountAccountId>
  <EANCode>sample string 11</EANCode>
  <IntrastatCode>12</IntrastatCode>
  <LastUpdate>sample string 13</LastUpdate>
  <Margin>14</Margin>
  <MaxStock>15</MaxStock>
  <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
  <MinStock>16</MinStock>
  <PreferredProductSupplier>
    <CanChange>true</CanChange>
    <CannotChangeReason>sample string 2</CannotChangeReason>
    <CurrencyId>sample string 3</CurrencyId>
    <DiscountPercentage>4</DiscountPercentage>
    <Messages xmlns:d3p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
    <MinOrderQuantity>5</MinOrderQuantity>
    <PartNumber>sample string 6</PartNumber>
    <Preferred>true</Preferred>
    <Price>8</Price>
    <ProductSupplierId>sample string 9</ProductSupplierId>
    <PurchaseSurchargePercentage>10</PurchaseSurchargePercentage>
  </PreferredProductSupplier>
  <PricePer>17</PricePer>
  <PriceVatExcl>18</PriceVatExcl>
  <PriceVatIncl>19</PriceVatIncl>
  <PrintOnInvoice>true</PrintOnInvoice>
  <PrintOnQuote>true</PrintOnQuote>
  <PrintOnShippingOrder>true</PrintOnShippingOrder>
  <PrintOnWarehouseOrder>true</PrintOnWarehouseOrder>
  <ProductDescriptions xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Lists" i:nil="true" />
  <ProductDiscountGroupId>sample string 24</ProductDiscountGroupId>
  <ProductGroupId>sample string 25</ProductGroupId>
  <ProductId>sample string 26</ProductId>
  <ProductState>Active</ProductState>
  <ProductSuppliers xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Lists" i:nil="true" />
  <ProductType>NonStockProduct</ProductType>
  <ProjectEntryType>None</ProjectEntryType>
  <ProjectSurchargePerc>27</ProjectSurchargePerc>
  <PublishOnWeb>true</PublishOnWeb>
  <PurchaseOrderCount>29</PurchaseOrderCount>
  <QuantityScale>30</QuantityScale>
  <ShortName>sample string 31</ShortName>
  <StockTransactionCount>32</StockTransactionCount>
  <StockTransferPrice>33</StockTransferPrice>
  <Stocks xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Lists" i:nil="true" />
  <Unit>sample string 34</Unit>
  <VatCodeId>35</VatCodeId>
  <Weight>36</Weight>
</Product>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "accountId": "sample string 1",
  "additionalUnits": 2.0,
  "messages": [],
  "canChange": true,
  "cannotChangeReason": "sample string 4",
  "components": null,
  "constellationNotition": "sample string 5",
  "coverageAccountId": "sample string 6",
  "currentStock": 7.0,
  "dateCreated": "sample string 8",
  "description": "sample string 9",
  "discountAccountId": "sample string 10",
  "eanCode": "sample string 11",
  "intrastatCode": 12,
  "lastUpdate": "sample string 13",
  "margin": 14.0,
  "maxStock": 15.0,
  "minStock": 16.0,
  "preferredProductSupplier": {
    "messages": [],
    "canChange": true,
    "cannotChangeReason": "sample string 2",
    "currencyId": "sample string 3",
    "discountPercentage": 4.0,
    "minOrderQuantity": 5.0,
    "partNumber": "sample string 6",
    "preferred": true,
    "price": 8.0,
    "productSupplierId": "sample string 9",
    "purchaseSurchargePercentage": 10.0
  },
  "pricePer": 17.0,
  "priceVatExcl": 18.0,
  "priceVatIncl": 19.0,
  "printOnInvoice": true,
  "printOnQuote": true,
  "printOnShippingOrder": true,
  "printOnWarehouseOrder": true,
  "productDescriptions": null,
  "productDiscountGroupId": "sample string 24",
  "productGroupId": "sample string 25",
  "productId": "sample string 26",
  "productState": 0,
  "productSuppliers": null,
  "productType": 0,
  "projectEntryType": 0,
  "projectSurchargePerc": 27.0,
  "publishOnWeb": true,
  "purchaseOrderCount": 29,
  "quantityScale": 30,
  "shortName": "sample string 31",
  "stocks": null,
  "stockTransactionCount": 32,
  "stockTransferPrice": 33.0,
  "unit": "sample string 34",
  "vatCodeId": 35,
  "weight": 36.0
}

application/xml, text/xml

Sample:
<Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Edit">
  <AccountId>sample string 1</AccountId>
  <AdditionalUnits>2</AdditionalUnits>
  <CanChange>true</CanChange>
  <CannotChangeReason>sample string 4</CannotChangeReason>
  <Components xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Lists" i:nil="true" />
  <ConstellationNotition>sample string 5</ConstellationNotition>
  <CoverageAccountId>sample string 6</CoverageAccountId>
  <CurrentStock>7</CurrentStock>
  <DateCreated>sample string 8</DateCreated>
  <Description>sample string 9</Description>
  <DiscountAccountId>sample string 10</DiscountAccountId>
  <EANCode>sample string 11</EANCode>
  <IntrastatCode>12</IntrastatCode>
  <LastUpdate>sample string 13</LastUpdate>
  <Margin>14</Margin>
  <MaxStock>15</MaxStock>
  <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
  <MinStock>16</MinStock>
  <PreferredProductSupplier>
    <CanChange>true</CanChange>
    <CannotChangeReason>sample string 2</CannotChangeReason>
    <CurrencyId>sample string 3</CurrencyId>
    <DiscountPercentage>4</DiscountPercentage>
    <Messages xmlns:d3p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
    <MinOrderQuantity>5</MinOrderQuantity>
    <PartNumber>sample string 6</PartNumber>
    <Preferred>true</Preferred>
    <Price>8</Price>
    <ProductSupplierId>sample string 9</ProductSupplierId>
    <PurchaseSurchargePercentage>10</PurchaseSurchargePercentage>
  </PreferredProductSupplier>
  <PricePer>17</PricePer>
  <PriceVatExcl>18</PriceVatExcl>
  <PriceVatIncl>19</PriceVatIncl>
  <PrintOnInvoice>true</PrintOnInvoice>
  <PrintOnQuote>true</PrintOnQuote>
  <PrintOnShippingOrder>true</PrintOnShippingOrder>
  <PrintOnWarehouseOrder>true</PrintOnWarehouseOrder>
  <ProductDescriptions xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Lists" i:nil="true" />
  <ProductDiscountGroupId>sample string 24</ProductDiscountGroupId>
  <ProductGroupId>sample string 25</ProductGroupId>
  <ProductId>sample string 26</ProductId>
  <ProductState>Active</ProductState>
  <ProductSuppliers xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Lists" i:nil="true" />
  <ProductType>NonStockProduct</ProductType>
  <ProjectEntryType>None</ProjectEntryType>
  <ProjectSurchargePerc>27</ProjectSurchargePerc>
  <PublishOnWeb>true</PublishOnWeb>
  <PurchaseOrderCount>29</PurchaseOrderCount>
  <QuantityScale>30</QuantityScale>
  <ShortName>sample string 31</ShortName>
  <StockTransactionCount>32</StockTransactionCount>
  <StockTransferPrice>33</StockTransferPrice>
  <Stocks xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Logistics.Lists" i:nil="true" />
  <Unit>sample string 34</Unit>
  <VatCodeId>35</VatCodeId>
  <Weight>36</Weight>
</Product>