POST Webshop/AddWebshopUserProductToWebshopUserProductList

Voeg een WebshopUserProduct toe aan een WebshopUserProductlijst.

Request Information

URI Parameters

None.

Body Parameters

WebshopUserProduct
NameDescriptionTypeAdditional information
Id

Id

integer

None.

DateTimeAdded

Toegevoegd op datum

date

None.

ProductId

ProductId

integer

None.

QtyDec

Aantal

decimal number

None.

Commission

Opmerking

string

None.

ComposedProductParentId

ProductId samengesteld artikel

integer

None.

TypeId

Type product (winkelmandje,verlanglijstje etc) zie eindpunt /Webshop/GetWebshopUserProductListTypes

integer

None.

WebshopUserId

Webshopgebruikersnummer

integer

None.

DebtorId

Debiteurnummer

integer

None.

ProductInformation

Informatie over het product

Product

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "DateTimeAdded": "2020-07-02T23:13:06.6132517+02:00",
  "ProductId": 3,
  "QtyDec": 1.0,
  "Commission": "sample string 4",
  "ComposedProductParentId": 1,
  "TypeId": 5,
  "WebshopUserId": 1,
  "DebtorId": 1,
  "ProductInformation": {
    "ProductId": 1,
    "SubUnit_ParentId": 1,
    "ProductCode": "sample string 2",
    "ProductName1": "sample string 3",
    "ProductName2": "sample string 4",
    "ProductInfo": "sample string 5",
    "StatusId": 6,
    "Statusname": "sample string 7",
    "BrandId": 8,
    "Brandname": "sample string 9",
    "Imagename1": "sample string 10",
    "ImageUrl1": "sample string 11",
    "Imagename2": "sample string 12",
    "ImageUrl2": "sample string 13",
    "Imagename3": "sample string 14",
    "ImageUrl3": "sample string 15",
    "Unit": "sample string 16",
    "UnitId": 17,
    "MinSaleAmount": 18,
    "MinSaleAmountWebshop": 1,
    "MinSaleBuyAmountDropShipment": 1,
    "SaleCountIncrement": 1,
    "SaleCountIncrementWebshop": 1,
    "SaleCountIncrementDropShipment": 1,
    "VatPercent": 19.0,
    "VatCodeId": 1,
    "SellPriceGross": 20.0,
    "Weight": 21.0,
    "Volume": 22.0,
    "Offer": {
      "StartDate": "2020-07-02T23:13:06.6132517+02:00",
      "EndDate": "2020-07-02T23:13:06.6132517+02:00",
      "FromPrice": 1.0,
      "ToPrice": 1.0,
      "OfferGroupId": 1,
      "ProductId": 1
    },
    "SellPriceAdvice": 1.0,
    "BuyPrice": 23.0,
    "ProductGroupId1": 24,
    "BuyCountIncrement": 1,
    "SellPriceLowestForWebshop": 1.0,
    "ExcludePriceFromPricelistCalculations": true,
    "AdditionalBuyPriceAmount": 1.0,
    "AdditionalBuyPricePercentage": 1.0,
    "IsComposedProduct": true,
    "IsAssemblyProduct": true,
    "ComposedProductSetChildSellPricesToZero": true,
    "ComposedProductSetSellPriceToZero": true,
    "FreeStock": 28.0,
    "ExternalStockActiveSupplier": 1,
    "CreditorDiscountGroupId": 1,
    "DateTimeLastChanged": "2020-07-02T23:13:06.6132517+02:00",
    "DateTimeAdded": "2020-07-02T23:13:06.6132517+02:00",
    "BarCode1": "sample string 31",
    "FreeValues": [
      {
        "Key": "sample string 1",
        "Value": "sample string 2"
      },
      {
        "Key": "sample string 1",
        "Value": "sample string 2"
      }
    ],
    "Sorting": 1,
    "NextDelivery": "2020-07-02T23:13:06.6132517+02:00",
    "Descriptions": [
      {
        "GlobalisationCode": "sample string 1",
        "Value": "sample string 2"
      },
      {
        "GlobalisationCode": "sample string 1",
        "Value": "sample string 2"
      }
    ],
    "ShiftPrices": [
      {
        "Qty": 1,
        "BuyPrice": 2.0,
        "Margin": 3.0,
        "SellPriceExcl": 4.0,
        "SellPriceGrossExcl": 5.0,
        "Description": "sample string 6",
        "DiscountType": "sample string 7"
      },
      {
        "Qty": 1,
        "BuyPrice": 2.0,
        "Margin": 3.0,
        "SellPriceExcl": 4.0,
        "SellPriceGrossExcl": 5.0,
        "Description": "sample string 6",
        "DiscountType": "sample string 7"
      }
    ],
    "ProductGroups": [
      {
        "Id": 1,
        "Name": "sample string 2",
        "ParentProductGroupId": 1,
        "Shortname": "sample string 3",
        "PictureUrl": "sample string 4",
        "SortValue": 5,
        "PictureName": "sample string 6",
        "ProductGroupTypeId": 7,
        "IsVisibleOnWebshop": true,
        "DepthLevel": 9
      },
      {
        "Id": 1,
        "Name": "sample string 2",
        "ParentProductGroupId": 1,
        "Shortname": "sample string 3",
        "PictureUrl": "sample string 4",
        "SortValue": 5,
        "PictureName": "sample string 6",
        "ProductGroupTypeId": 7,
        "IsVisibleOnWebshop": true,
        "DepthLevel": 9
      }
    ],
    "Barcode2": "sample string 37",
    "BarcodeExtraList": [
      {
        "Barcode": "sample string 1",
        "Qty": 2
      },
      {
        "Barcode": "sample string 1",
        "Qty": 2
      }
    ],
    "SystemBarcode": "sample string 38",
    "ProductGroup1ProductGroupTypeId": 39,
    "WareHouses": [
      {
        "WarehouseId": 1,
        "WarehouseName": "sample string 2",
        "MinimalStock": 3.0,
        "MaxStock": 1.0,
        "DefaultStockLocationId": 1
      },
      {
        "WarehouseId": 1,
        "WarehouseName": "sample string 2",
        "MinimalStock": 3.0,
        "MaxStock": 1.0,
        "DefaultStockLocationId": 1
      }
    ],
    "MinimalStock": 1,
    "PCSinInsidePackage": 40,
    "PCSinOutsidePackage": 41,
    "ProductType1": {
      "Id": 1,
      "Value": "sample string 2"
    },
    "ProductType2": {
      "Id": 1,
      "Value": "sample string 2"
    },
    "ProductType3": {
      "Id": 1,
      "Value": "sample string 2"
    },
    "ProductType4": {
      "Id": 1,
      "Value": "sample string 2"
    },
    "ProductType5": {
      "Id": 1,
      "Value": "sample string 2"
    }
  }
}

application/xml, text/xml

Sample:
<WebshopUserProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
  <Commission>sample string 4</Commission>
  <ComposedProductParentId>1</ComposedProductParentId>
  <DateTimeAdded>2020-07-02T23:13:06.6132517+02:00</DateTimeAdded>
  <DebtorId>1</DebtorId>
  <Id>1</Id>
  <ProductId>3</ProductId>
  <ProductInformation>
    <AdditionalBuyPriceAmount>1</AdditionalBuyPriceAmount>
    <AdditionalBuyPricePercentage>1</AdditionalBuyPricePercentage>
    <BarCode1>sample string 31</BarCode1>
    <Barcode2>sample string 37</Barcode2>
    <BarcodeExtraList>
      <ProductExtraBarcode>
        <Barcode>sample string 1</Barcode>
        <Qty>2</Qty>
      </ProductExtraBarcode>
      <ProductExtraBarcode>
        <Barcode>sample string 1</Barcode>
        <Qty>2</Qty>
      </ProductExtraBarcode>
    </BarcodeExtraList>
    <BrandId>8</BrandId>
    <Brandname>sample string 9</Brandname>
    <BuyCountIncrement>1</BuyCountIncrement>
    <BuyPrice>23</BuyPrice>
    <ComposedProductSetChildSellPricesToZero>true</ComposedProductSetChildSellPricesToZero>
    <ComposedProductSetSellPriceToZero>true</ComposedProductSetSellPriceToZero>
    <CreditorDiscountGroupId>1</CreditorDiscountGroupId>
    <DateTimeAdded>2020-07-02T23:13:06.6132517+02:00</DateTimeAdded>
    <DateTimeLastChanged>2020-07-02T23:13:06.6132517+02:00</DateTimeLastChanged>
    <Descriptions>
      <Translation>
        <GlobalisationCode>sample string 1</GlobalisationCode>
        <Value>sample string 2</Value>
      </Translation>
      <Translation>
        <GlobalisationCode>sample string 1</GlobalisationCode>
        <Value>sample string 2</Value>
      </Translation>
    </Descriptions>
    <ExcludePriceFromPricelistCalculations>true</ExcludePriceFromPricelistCalculations>
    <ExternalStockActiveSupplier>1</ExternalStockActiveSupplier>
    <FreeStock>28</FreeStock>
    <FreeValues>
      <FreeValue>
        <Key>sample string 1</Key>
        <Value>sample string 2</Value>
      </FreeValue>
      <FreeValue>
        <Key>sample string 1</Key>
        <Value>sample string 2</Value>
      </FreeValue>
    </FreeValues>
    <ImageUrl1>sample string 11</ImageUrl1>
    <ImageUrl2>sample string 13</ImageUrl2>
    <ImageUrl3>sample string 15</ImageUrl3>
    <Imagename1>sample string 10</Imagename1>
    <Imagename2>sample string 12</Imagename2>
    <Imagename3>sample string 14</Imagename3>
    <IsAssemblyProduct>true</IsAssemblyProduct>
    <IsComposedProduct>true</IsComposedProduct>
    <MinSaleAmount>18</MinSaleAmount>
    <MinSaleAmountWebshop>1</MinSaleAmountWebshop>
    <MinSaleBuyAmountDropShipment>1</MinSaleBuyAmountDropShipment>
    <MinimalStock>1</MinimalStock>
    <NextDelivery>2020-07-02T23:13:06.6132517+02:00</NextDelivery>
    <Offer>
      <EndDate>2020-07-02T23:13:06.6132517+02:00</EndDate>
      <FromPrice>1</FromPrice>
      <OfferGroupId>1</OfferGroupId>
      <ProductId>1</ProductId>
      <StartDate>2020-07-02T23:13:06.6132517+02:00</StartDate>
      <ToPrice>1</ToPrice>
    </Offer>
    <PCSinInsidePackage>40</PCSinInsidePackage>
    <PCSinOutsidePackage>41</PCSinOutsidePackage>
    <ProductCode>sample string 2</ProductCode>
    <ProductGroup1ProductGroupTypeId>39</ProductGroup1ProductGroupTypeId>
    <ProductGroupId1>24</ProductGroupId1>
    <ProductGroups>
      <ProductGroup>
        <DepthLevel>9</DepthLevel>
        <Id>1</Id>
        <IsVisibleOnWebshop>true</IsVisibleOnWebshop>
        <Name>sample string 2</Name>
        <ParentProductGroupId>1</ParentProductGroupId>
        <PictureName>sample string 6</PictureName>
        <PictureUrl>sample string 4</PictureUrl>
        <ProductGroupTypeId>7</ProductGroupTypeId>
        <Shortname>sample string 3</Shortname>
        <SortValue>5</SortValue>
      </ProductGroup>
      <ProductGroup>
        <DepthLevel>9</DepthLevel>
        <Id>1</Id>
        <IsVisibleOnWebshop>true</IsVisibleOnWebshop>
        <Name>sample string 2</Name>
        <ParentProductGroupId>1</ParentProductGroupId>
        <PictureName>sample string 6</PictureName>
        <PictureUrl>sample string 4</PictureUrl>
        <ProductGroupTypeId>7</ProductGroupTypeId>
        <Shortname>sample string 3</Shortname>
        <SortValue>5</SortValue>
      </ProductGroup>
    </ProductGroups>
    <ProductId>1</ProductId>
    <ProductInfo>sample string 5</ProductInfo>
    <ProductName1>sample string 3</ProductName1>
    <ProductName2>sample string 4</ProductName2>
    <ProductType1>
      <Id>1</Id>
      <Value>sample string 2</Value>
    </ProductType1>
    <ProductType2>
      <Id>1</Id>
      <Value>sample string 2</Value>
    </ProductType2>
    <ProductType3>
      <Id>1</Id>
      <Value>sample string 2</Value>
    </ProductType3>
    <ProductType4>
      <Id>1</Id>
      <Value>sample string 2</Value>
    </ProductType4>
    <ProductType5>
      <Id>1</Id>
      <Value>sample string 2</Value>
    </ProductType5>
    <SaleCountIncrement>1</SaleCountIncrement>
    <SaleCountIncrementDropShipment>1</SaleCountIncrementDropShipment>
    <SaleCountIncrementWebshop>1</SaleCountIncrementWebshop>
    <SellPriceAdvice>1</SellPriceAdvice>
    <SellPriceGross>20</SellPriceGross>
    <SellPriceLowestForWebshop>1</SellPriceLowestForWebshop>
    <ShiftPrices>
      <ProductShiftPrice>
        <BuyPrice>2</BuyPrice>
        <Description>sample string 6</Description>
        <DiscountType>sample string 7</DiscountType>
        <Margin>3</Margin>
        <Qty>1</Qty>
        <SellPriceExcl>4</SellPriceExcl>
        <SellPriceGrossExcl>5</SellPriceGrossExcl>
      </ProductShiftPrice>
      <ProductShiftPrice>
        <BuyPrice>2</BuyPrice>
        <Description>sample string 6</Description>
        <DiscountType>sample string 7</DiscountType>
        <Margin>3</Margin>
        <Qty>1</Qty>
        <SellPriceExcl>4</SellPriceExcl>
        <SellPriceGrossExcl>5</SellPriceGrossExcl>
      </ProductShiftPrice>
    </ShiftPrices>
    <Sorting>1</Sorting>
    <StatusId>6</StatusId>
    <Statusname>sample string 7</Statusname>
    <SubUnit_ParentId>1</SubUnit_ParentId>
    <Unit>sample string 16</Unit>
    <UnitId>17</UnitId>
    <VatCodeId>1</VatCodeId>
    <VatPercent>19</VatPercent>
    <Volume>22</Volume>
    <WareHouses>
      <ProductStockWarehouse>
        <DefaultStockLocationId>1</DefaultStockLocationId>
        <MaxStock>1</MaxStock>
        <MinimalStock>3</MinimalStock>
        <WarehouseId>1</WarehouseId>
        <WarehouseName>sample string 2</WarehouseName>
      </ProductStockWarehouse>
      <ProductStockWarehouse>
        <DefaultStockLocationId>1</DefaultStockLocationId>
        <MaxStock>1</MaxStock>
        <MinimalStock>3</MinimalStock>
        <WarehouseId>1</WarehouseId>
        <WarehouseName>sample string 2</WarehouseName>
      </ProductStockWarehouse>
    </WareHouses>
    <Weight>21</Weight>
  </ProductInformation>
  <QtyDec>1</QtyDec>
  <TypeId>5</TypeId>
  <WebshopUserId>1</WebshopUserId>
</WebshopUserProduct>

Response Information

Resource Description

Logic4ResponseOfBoolean
NameDescriptionTypeAdditional information
Value

boolean

None.

ValidationMessages

Eventuele foutmeldingen

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Value": true,
  "ValidationMessages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Logic4ResponseOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.ResponseModels">
  <ValidationMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ValidationMessages>
  <Value>true</Value>
</Logic4ResponseOfboolean>