POST api/WebshopCarts/PostWebshopCart

Request Information

URI Parameters

None.

Body Parameters

WebshopCart
NameDescriptionTypeAdditional information
WebshopCartId

integer

None.

ProductId

integer

None.

Product

Product

None.

ProductCode

string

None.

Price

decimal number

None.

ProductDiscountPrice

decimal number

None.

TvaAmount

decimal number

None.

Amount

decimal number

None.

AccountDiscount

decimal number

None.

ProductDescriptionShortLanguage01

string

None.

ProductImage

string

None.

TotalPriceEx

decimal number

None.

TotalPriceIncl

decimal number

None.

UserId

string

None.

ObjectState

ObjectState

None.

Request Formats

application/json, text/json

Sample:
{
  "webshopCartId": 1,
  "productId": 2,
  "product": {
    "productId": 1,
    "productDescriptionShortLanguage01": "sample string 2",
    "productDescriptionLongLanguage01": "sample string 3",
    "productDescriptionShortLanguage02": "sample string 4",
    "productDescriptionLongLanguage02": "sample string 5",
    "productDescriptionShortLanguage03": "sample string 6",
    "productDescriptionLongLanguage03": "sample string 7",
    "productDescriptionShortLanguage04": "sample string 8",
    "productDescriptionLongLanguage04": "sample string 9",
    "productDescriptionShortLanguage05": "sample string 10",
    "productDescriptionLongLanguage05": "sample string 11",
    "productDescriptionShortLanguage06": "sample string 12",
    "productDescriptionLongLanguage06": "sample string 13",
    "productAlias": "sample string 14",
    "productCode": "sample string 15",
    "productOriginalCode": "sample string 16",
    "productCodeSupplier": "sample string 17",
    "productSupplierDeliveryPeriod": 18,
    "productSupplierId": 1,
    "supplier": {
      "supplierId": 1,
      "supplierName": "sample string 2",
      "supplierStreet": "sample string 3",
      "supplierDepartment": 0,
      "supplierPCode": "sample string 4",
      "supplierCity": "sample string 5",
      "supplierCountryId": 6,
      "country": {
        "countryId": 1,
        "countryName": "sample string 2",
        "countryIsocode": "sample string 3",
        "defaultLanguageId": 4,
        "telephoneCountryPrefix": "sample string 5",
        "objectState": 0
      },
      "supplierTelephone1": "sample string 7",
      "supplierTelephone2": "sample string 8",
      "supplierMobile1": "sample string 9",
      "supplierTelefax": "sample string 10",
      "supplierEmailGeneral": "sample string 11",
      "supplierEmailSales": "sample string 12",
      "supplierEmailPurchasing": "sample string 13",
      "supplierEmailDelivery": "sample string 14",
      "supplierCompanyNumber": "sample string 15",
      "supplierVATregime": 16,
      "supplierValutaId": 17,
      "valuta": {
        "valutaId": 1,
        "valutaIsocode": "sample string 2",
        "valutaName": "sample string 3",
        "isInUse": true,
        "objectState": 0
      },
      "supplierLanguageId": 18,
      "language": {
        "languageId": 1,
        "languageName": "sample string 2",
        "languageIsocode": "sample string 3",
        "languageNumberWebsite": 4,
        "isInUse": true,
        "languageImageName": "sample string 6",
        "objectState": 0
      },
      "supplierDateLastMeeting": "2025-12-11T17:54:34.4876695+01:00",
      "supplierIsInUse": true,
      "supplierDateCreated": "2025-12-11T17:54:34.4876695+01:00",
      "supplierUserIdCreated": "sample string 20",
      "supplierDateChanged": "2025-12-11T17:54:34.4876695+01:00",
      "supplierUserIdChanged": "sample string 21",
      "supplierBrands": [
        {
          "brandId": 1,
          "brandName": "sample string 2",
          "brandIsInUse": true,
          "companyId": 4,
          "objectState": 0
        },
        {
          "brandId": 1,
          "brandName": "sample string 2",
          "brandIsInUse": true,
          "companyId": 4,
          "objectState": 0
        }
      ],
      "companyId": 22,
      "supplierGeneralNotes": "sample string 23",
      "objectState": 0
    },
    "productBarcode": "sample string 19",
    "productSalesPrice": 20.0,
    "productPurchasePrice": 21.0,
    "supplierPurchaseDiscount": "sample string 22",
    "productPurchaseNetPrice": 23.0,
    "productProfitMargin": 24.0,
    "productWeight": 25.0,
    "iCcode": 0,
    "valutaId": 26,
    "valuta": {
      "valutaId": 1,
      "valutaIsocode": "sample string 2",
      "valutaName": "sample string 3",
      "isInUse": true,
      "objectState": 0
    },
    "productVATPercNormalId": 27,
    "productVATPercNormal": {
      "vatId": 1,
      "vaTcode": "sample string 2",
      "vaTpercentage": 3.0,
      "isInUse": true,
      "vatPrintTextLanguage01": "sample string 5",
      "vatPrintTextLanguage02": "sample string 6",
      "vatPrintTextLanguage03": "sample string 7",
      "vatPrintTextLanguage04": "sample string 8",
      "vatPrintTextLanguage05": "sample string 9",
      "vatPrintTextLanguage06": "sample string 10",
      "objectState": 0
    },
    "productCommodityCode": "sample string 28",
    "salesUnitId": 29,
    "salesUnit": {
      "salesUnitId": 1,
      "salesUnitDescriptionLanguage01": "sample string 2",
      "salesUnitDescriptionLanguage02": "sample string 3",
      "salesUnitDescriptionLanguage03": "sample string 4",
      "salesUnitDescriptionLanguage04": "sample string 5",
      "salesUnitDescriptionLanguage05": "sample string 6",
      "salesUnitDescriptionLanguage06": "sample string 7",
      "isInUse": true,
      "companyId": 9,
      "objectState": 0
    },
    "productMaxStock": 30.0,
    "productMinStock": 31.0,
    "productBrandId": 32,
    "brand": {
      "brandId": 1,
      "brandName": "sample string 2",
      "brandIsInUse": true,
      "companyId": 4,
      "objectState": 0
    },
    "productCategoryId1": 33,
    "productCategoryId2": 34,
    "productCategoryId3": 35,
    "productIsDiscountEligable": true,
    "productIsFinancialDiscountEligable": true,
    "productIsInUse": true,
    "productIsStock": true,
    "productShowInSearchList": true,
    "productShowOnWebsite": true,
    "productShowOnWebshop": true,
    "productShowOnHomePage": true,
    "productInformation": "sample string 44",
    "productDateCreated": "2025-12-11T17:54:34.4876695+01:00",
    "productUserIdCreated": "sample string 46",
    "productDateChanged": "2025-12-11T17:54:34.4876695+01:00",
    "productUserIdChanged": "sample string 48",
    "productAlternativeProductId": 1,
    "productAlternativeCode": "sample string 49",
    "productShowOnAllWebsites": true,
    "companyId": 51,
    "productCopyEtaProductId": 1,
    "productHasCopyInStefca": true,
    "objectState": 0
  },
  "productCode": "sample string 3",
  "price": 4.0,
  "productDiscountPrice": 5.0,
  "tvaAmount": 6.0,
  "amount": 7.0,
  "accountDiscount": 8.0,
  "productDescriptionShortLanguage01": "sample string 9",
  "productImage": "sample string 10",
  "totalPriceEx": 11.0,
  "totalPriceIncl": 12.0,
  "userId": "sample string 13",
  "objectState": 0
}

application/xml, text/xml

Sample:
<WebshopCart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Models">
  <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
  <AccountDiscount>8</AccountDiscount>
  <Amount>7</Amount>
  <Price>4</Price>
  <Product>
    <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
    <Brand>
      <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
      <BrandId>1</BrandId>
      <BrandIsInUse>true</BrandIsInUse>
      <BrandName>sample string 2</BrandName>
      <CompanyId>4</CompanyId>
    </Brand>
    <CompanyId>51</CompanyId>
    <ICcode>IC_goederen</ICcode>
    <ProductAlias>sample string 14</ProductAlias>
    <ProductAlternativeCode>sample string 49</ProductAlternativeCode>
    <ProductAlternativeProductId>1</ProductAlternativeProductId>
    <ProductBarcode>sample string 19</ProductBarcode>
    <ProductBrandId>32</ProductBrandId>
    <ProductCategoryId1>33</ProductCategoryId1>
    <ProductCategoryId2>34</ProductCategoryId2>
    <ProductCategoryId3>35</ProductCategoryId3>
    <ProductCode>sample string 15</ProductCode>
    <ProductCodeSupplier>sample string 17</ProductCodeSupplier>
    <ProductCommodityCode>sample string 28</ProductCommodityCode>
    <ProductCopyEtaProductId>1</ProductCopyEtaProductId>
    <ProductDateChanged>2025-12-11T17:54:34.4876695+01:00</ProductDateChanged>
    <ProductDateCreated>2025-12-11T17:54:34.4876695+01:00</ProductDateCreated>
    <ProductDescriptionLongLanguage01>sample string 3</ProductDescriptionLongLanguage01>
    <ProductDescriptionLongLanguage02>sample string 5</ProductDescriptionLongLanguage02>
    <ProductDescriptionLongLanguage03>sample string 7</ProductDescriptionLongLanguage03>
    <ProductDescriptionLongLanguage04>sample string 9</ProductDescriptionLongLanguage04>
    <ProductDescriptionLongLanguage05>sample string 11</ProductDescriptionLongLanguage05>
    <ProductDescriptionLongLanguage06>sample string 13</ProductDescriptionLongLanguage06>
    <ProductDescriptionShortLanguage01>sample string 2</ProductDescriptionShortLanguage01>
    <ProductDescriptionShortLanguage02>sample string 4</ProductDescriptionShortLanguage02>
    <ProductDescriptionShortLanguage03>sample string 6</ProductDescriptionShortLanguage03>
    <ProductDescriptionShortLanguage04>sample string 8</ProductDescriptionShortLanguage04>
    <ProductDescriptionShortLanguage05>sample string 10</ProductDescriptionShortLanguage05>
    <ProductDescriptionShortLanguage06>sample string 12</ProductDescriptionShortLanguage06>
    <ProductHasCopyInStefca>true</ProductHasCopyInStefca>
    <ProductId>1</ProductId>
    <ProductInformation>sample string 44</ProductInformation>
    <ProductIsDiscountEligable>true</ProductIsDiscountEligable>
    <ProductIsFinancialDiscountEligable>true</ProductIsFinancialDiscountEligable>
    <ProductIsInUse>true</ProductIsInUse>
    <ProductIsStock>true</ProductIsStock>
    <ProductMaxStock>30</ProductMaxStock>
    <ProductMinStock>31</ProductMinStock>
    <ProductOriginalCode>sample string 16</ProductOriginalCode>
    <ProductProfitMargin>24</ProductProfitMargin>
    <ProductPurchaseNetPrice>23</ProductPurchaseNetPrice>
    <ProductPurchasePrice>21</ProductPurchasePrice>
    <ProductSalesPrice>20</ProductSalesPrice>
    <ProductShowInSearchList>true</ProductShowInSearchList>
    <ProductShowOnAllWebsites>true</ProductShowOnAllWebsites>
    <ProductShowOnHomePage>true</ProductShowOnHomePage>
    <ProductShowOnWebshop>true</ProductShowOnWebshop>
    <ProductShowOnWebsite>true</ProductShowOnWebsite>
    <ProductSupplierDeliveryPeriod>18</ProductSupplierDeliveryPeriod>
    <ProductSupplierId>1</ProductSupplierId>
    <ProductUserIdChanged>sample string 48</ProductUserIdChanged>
    <ProductUserIdCreated>sample string 46</ProductUserIdCreated>
    <ProductVATPercNormal>
      <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
      <IsInUse>true</IsInUse>
      <VATId>1</VATId>
      <VATcode>sample string 2</VATcode>
      <VATpercentage>3</VATpercentage>
      <VatPrintTextLanguage01>sample string 5</VatPrintTextLanguage01>
      <VatPrintTextLanguage02>sample string 6</VatPrintTextLanguage02>
      <VatPrintTextLanguage03>sample string 7</VatPrintTextLanguage03>
      <VatPrintTextLanguage04>sample string 8</VatPrintTextLanguage04>
      <VatPrintTextLanguage05>sample string 9</VatPrintTextLanguage05>
      <VatPrintTextLanguage06>sample string 10</VatPrintTextLanguage06>
    </ProductVATPercNormal>
    <ProductVATPercNormalId>27</ProductVATPercNormalId>
    <ProductWeight>25</ProductWeight>
    <SalesUnit>
      <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
      <CompanyId>9</CompanyId>
      <IsInUse>true</IsInUse>
      <SalesUnitDescriptionLanguage01>sample string 2</SalesUnitDescriptionLanguage01>
      <SalesUnitDescriptionLanguage02>sample string 3</SalesUnitDescriptionLanguage02>
      <SalesUnitDescriptionLanguage03>sample string 4</SalesUnitDescriptionLanguage03>
      <SalesUnitDescriptionLanguage04>sample string 5</SalesUnitDescriptionLanguage04>
      <SalesUnitDescriptionLanguage05>sample string 6</SalesUnitDescriptionLanguage05>
      <SalesUnitDescriptionLanguage06>sample string 7</SalesUnitDescriptionLanguage06>
      <SalesUnitId>1</SalesUnitId>
    </SalesUnit>
    <SalesUnitId>29</SalesUnitId>
    <Supplier>
      <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
      <CompanyId>22</CompanyId>
      <Country>
        <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
        <CountryId>1</CountryId>
        <CountryIsocode>sample string 3</CountryIsocode>
        <CountryName>sample string 2</CountryName>
        <DefaultLanguageId>4</DefaultLanguageId>
        <TelephoneCountryPrefix>sample string 5</TelephoneCountryPrefix>
      </Country>
      <Language>
        <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
        <IsInUse>true</IsInUse>
        <LanguageId>1</LanguageId>
        <LanguageImageName>sample string 6</LanguageImageName>
        <LanguageIsocode>sample string 3</LanguageIsocode>
        <LanguageName>sample string 2</LanguageName>
        <LanguageNumberWebsite>4</LanguageNumberWebsite>
      </Language>
      <SupplierBrands>
        <Brand>
          <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
          <BrandId>1</BrandId>
          <BrandIsInUse>true</BrandIsInUse>
          <BrandName>sample string 2</BrandName>
          <CompanyId>4</CompanyId>
        </Brand>
        <Brand>
          <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
          <BrandId>1</BrandId>
          <BrandIsInUse>true</BrandIsInUse>
          <BrandName>sample string 2</BrandName>
          <CompanyId>4</CompanyId>
        </Brand>
      </SupplierBrands>
      <SupplierCity>sample string 5</SupplierCity>
      <SupplierCompanyNumber>sample string 15</SupplierCompanyNumber>
      <SupplierCountryId>6</SupplierCountryId>
      <SupplierDateChanged>2025-12-11T17:54:34.4876695+01:00</SupplierDateChanged>
      <SupplierDateCreated>2025-12-11T17:54:34.4876695+01:00</SupplierDateCreated>
      <SupplierDateLastMeeting>2025-12-11T17:54:34.4876695+01:00</SupplierDateLastMeeting>
      <SupplierDepartment>Empty</SupplierDepartment>
      <SupplierEmailDelivery>sample string 14</SupplierEmailDelivery>
      <SupplierEmailGeneral>sample string 11</SupplierEmailGeneral>
      <SupplierEmailPurchasing>sample string 13</SupplierEmailPurchasing>
      <SupplierEmailSales>sample string 12</SupplierEmailSales>
      <SupplierGeneralNotes>sample string 23</SupplierGeneralNotes>
      <SupplierId>1</SupplierId>
      <SupplierIsInUse>true</SupplierIsInUse>
      <SupplierLanguageId>18</SupplierLanguageId>
      <SupplierMobile1>sample string 9</SupplierMobile1>
      <SupplierName>sample string 2</SupplierName>
      <SupplierPCode>sample string 4</SupplierPCode>
      <SupplierStreet>sample string 3</SupplierStreet>
      <SupplierTelefax>sample string 10</SupplierTelefax>
      <SupplierTelephone1>sample string 7</SupplierTelephone1>
      <SupplierTelephone2>sample string 8</SupplierTelephone2>
      <SupplierUserIdChanged>sample string 21</SupplierUserIdChanged>
      <SupplierUserIdCreated>sample string 20</SupplierUserIdCreated>
      <SupplierVATregime>16</SupplierVATregime>
      <SupplierValutaId>17</SupplierValutaId>
      <Valuta>
        <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
        <IsInUse>true</IsInUse>
        <ValutaId>1</ValutaId>
        <ValutaIsocode>sample string 2</ValutaIsocode>
        <ValutaName>sample string 3</ValutaName>
      </Valuta>
    </Supplier>
    <SupplierPurchaseDiscount>sample string 22</SupplierPurchaseDiscount>
    <Valuta>
      <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
      <IsInUse>true</IsInUse>
      <ValutaId>1</ValutaId>
      <ValutaIsocode>sample string 2</ValutaIsocode>
      <ValutaName>sample string 3</ValutaName>
    </Valuta>
    <ValutaId>26</ValutaId>
  </Product>
  <ProductCode>sample string 3</ProductCode>
  <ProductDescriptionShortLanguage01>sample string 9</ProductDescriptionShortLanguage01>
  <ProductDiscountPrice>5</ProductDiscountPrice>
  <ProductId>2</ProductId>
  <ProductImage>sample string 10</ProductImage>
  <TotalPriceEx>11</TotalPriceEx>
  <TotalPriceIncl>12</TotalPriceIncl>
  <TvaAmount>6</TvaAmount>
  <UserId>sample string 13</UserId>
  <WebshopCartId>1</WebshopCartId>
</WebshopCart>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>