s1 API Host

<back to all web services

CreateCartItem

Allows to add a new item to the cart.User has to be authenticated.
Parameters:
NameParameterData TypeRequiredDescription
CreateCartItembodyCreateCartItemYesProvide the requested properties to place the item in the cart.

To override the Content-type in your clients HTTP Accept Header, append the .soap11 suffix or ?format=soap11

HTTP + SOAP11

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /soap11 HTTP/1.1 
Host: api-beta.ghs-automotive.nl 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: CreateCartItem

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<CreateCartItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/S1.Api.Domain.Models.Cart">
  <CarId>String</CarId>
  <Characteristic>String</Characteristic>
  <ProductId>String</ProductId>
  <Quantity>0</Quantity>
</CreateCartItem>

    </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<AddOrUpdateCartItemResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/S1.Api.Domain.Models.Cart">
  <CartItem>
    <AlfaCode>String</AlfaCode>
    <ArticleNo>String</ArticleNo>
    <BoschProductGroupId>String</BoschProductGroupId>
    <BrutoPrice>0</BrutoPrice>
    <CarId>String</CarId>
    <Characteristic>String</Characteristic>
    <CountryCode>String</CountryCode>
    <HasBackorders>false</HasBackorders>
    <HasCharacteristic>false</HasCharacteristic>
    <HasDeferredDeliveries>false</HasDeferredDeliveries>
    <Id>String</Id>
    <IsFGas>false</IsFGas>
    <IsGaik>false</IsGaik>
    <ItemType>String</ItemType>
    <LicensePlate>String</LicensePlate>
    <NettoPrice>0</NettoPrice>
    <OrderLineId>String</OrderLineId>
    <Product xmlns:d3p1="http://schemas.datacontract.org/2004/07/S1.Api.Domain.Models.Products">
      <d3p1:Aldoc>
        <d3p1:BrandId>String</d3p1:BrandId>
        <d3p1:BrandName>String</d3p1:BrandName>
        <d3p1:ProductId>String</d3p1:ProductId>
      </d3p1:Aldoc>
      <d3p1:AlfaCode>String</d3p1:AlfaCode>
      <d3p1:ArticleDataId>String</d3p1:ArticleDataId>
      <d3p1:ArticleNo>String</d3p1:ArticleNo>
      <d3p1:AutoElectra>
        <d3p1:BrandIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d3p1:ProductId>String</d3p1:ProductId>
      </d3p1:AutoElectra>
      <d3p1:AvailableLinkedWarehouse>0001-01-01T00:00:00</d3p1:AvailableLinkedWarehouse>
      <d3p1:AvailableNextRoute>0001-01-01T00:00:00</d3p1:AvailableNextRoute>
      <d3p1:BoschProductGroupId>String</d3p1:BoschProductGroupId>
      <d3p1:BrandId>String</d3p1:BrandId>
      <d3p1:BrandLabel>Onbekend</d3p1:BrandLabel>
      <d3p1:BrandName>String</d3p1:BrandName>
      <d3p1:BrutoPrice>0</d3p1:BrutoPrice>
      <d3p1:CanBackorder>false</d3p1:CanBackorder>
      <d3p1:CommercialName>String</d3p1:CommercialName>
      <d3p1:CountryCode>String</d3p1:CountryCode>
      <d3p1:DepositFee>0</d3p1:DepositFee>
      <d3p1:Description>String</d3p1:Description>
      <d3p1:DisposalFee>0</d3p1:DisposalFee>
      <d3p1:Documents i:nil="true" />
      <d3p1:EanCodes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <d3p1:EnvironmentalTax>0</d3p1:EnvironmentalTax>
      <d3p1:GroupDiscounts xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <d3p1:HasCharacteristic>false</d3p1:HasCharacteristic>
      <d3p1:HasCompatibleCars>false</d3p1:HasCompatibleCars>
      <d3p1:HasSetParts>false</d3p1:HasSetParts>
      <d3p1:Hbase>
        <d3p1:Descriptions xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d3p1:Name>String</d3p1:Name>
        <d3p1:ProductGroupId>String</d3p1:ProductGroupId>
        <d3p1:ProductId>String</d3p1:ProductId>
      </d3p1:Hbase>
      <d3p1:Heijl>
        <d3p1:Descriptions xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d3p1:Name>String</d3p1:Name>
        <d3p1:ProductGroupId>String</d3p1:ProductGroupId>
        <d3p1:ProductId>String</d3p1:ProductId>
      </d3p1:Heijl>
      <d3p1:Id>String</d3p1:Id>
      <d3p1:Images xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <d3p1:IsDisposalFee>false</d3p1:IsDisposalFee>
      <d3p1:IsFGas>false</d3p1:IsFGas>
      <d3p1:IsGaik>false</d3p1:IsGaik>
      <d3p1:IsInPromotion>false</d3p1:IsInPromotion>
      <d3p1:IsKnownProduct>false</d3p1:IsKnownProduct>
      <d3p1:IsLeadSurcharge>false</d3p1:IsLeadSurcharge>
      <d3p1:IsLeisureProduct>false</d3p1:IsLeisureProduct>
      <d3p1:IsNettoPriceProvided>false</d3p1:IsNettoPriceProvided>
      <d3p1:IsNextRoute>false</d3p1:IsNextRoute>
      <d3p1:IsNotRetourable>false</d3p1:IsNotRetourable>
      <d3p1:IsRentalProduct>false</d3p1:IsRentalProduct>
      <d3p1:IsRouteInfoProvided>false</d3p1:IsRouteInfoProvided>
      <d3p1:IsVheckRoute>false</d3p1:IsVheckRoute>
      <d3p1:LeadSurcharge>0</d3p1:LeadSurcharge>
      <d3p1:LongDescription>String</d3p1:LongDescription>
      <d3p1:Name>String</d3p1:Name>
      <d3p1:NettoPrice>0</d3p1:NettoPrice>
      <d3p1:OeNumbers i:nil="true" />
      <d3p1:Origins>None</d3p1:Origins>
      <d3p1:PriceLabel>String</d3p1:PriceLabel>
      <d3p1:ProductAttributes i:nil="true" />
      <d3p1:ProductGroup>String</d3p1:ProductGroup>
      <d3p1:ProductGroupId>String</d3p1:ProductGroupId>
      <d3p1:QuantityAllWarehouses>0</d3p1:QuantityAllWarehouses>
      <d3p1:QuantityLinkedWarehouse>0</d3p1:QuantityLinkedWarehouse>
      <d3p1:Relevance>0</d3p1:Relevance>
      <d3p1:RelevantProducts i:nil="true" />
      <d3p1:RemovalFee>0</d3p1:RemovalFee>
      <d3p1:RentalProductIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <d3p1:RequiresLegitimation>false</d3p1:RequiresLegitimation>
      <d3p1:RouteExpiryDate>0001-01-01T00:00:00</d3p1:RouteExpiryDate>
      <d3p1:SetParts>
        <d3p1:KnownSetPartProductIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d3p1:UnknownSetParts i:nil="true" />
      </d3p1:SetParts>
      <d3p1:ShortDescription>String</d3p1:ShortDescription>
      <d3p1:SortOrder>0</d3p1:SortOrder>
      <d3p1:TecDoc>
        <d3p1:Descriptions xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d3p1:Name>String</d3p1:Name>
        <d3p1:ProductGroupId>String</d3p1:ProductGroupId>
        <d3p1:ProductId>String</d3p1:ProductId>
      </d3p1:TecDoc>
      <d3p1:ToolSpecial>
        <d3p1:Descriptions xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d3p1:Name>String</d3p1:Name>
        <d3p1:ProductGroupId>String</d3p1:ProductGroupId>
        <d3p1:ProductId>String</d3p1:ProductId>
      </d3p1:ToolSpecial>
      <d3p1:UnitsPerSale>0</d3p1:UnitsPerSale>
      <d3p1:UniversalParts>
        <d3p1:Descriptions xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d3p1:Name>String</d3p1:Name>
        <d3p1:ProductGroupId>String</d3p1:ProductGroupId>
        <d3p1:ProductId>String</d3p1:ProductId>
      </d3p1:UniversalParts>
    </Product>
    <ProductDescription>String</ProductDescription>
    <ProductGroup>String</ProductGroup>
    <ProductGroupId>String</ProductGroupId>
    <ProductId>String</ProductId>
    <ProductName>String</ProductName>
    <Quantity>0</Quantity>
    <Shipments i:nil="true" />
    <UnitsPerSale>0</UnitsPerSale>
  </CartItem>
  <Items i:nil="true" />
  <NewTotalAmount>0</NewTotalAmount>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
      </d2p1:ResponseError>
    </d2p1:Errors>
  </ResponseStatus>
  <UrgentMessages xmlns:d2p1="http://schemas.datacontract.org/2004/07/S1.Api.Domain.Models.UrgentMessages" i:nil="true" />
</AddOrUpdateCartItemResponse>

    </soap:Body>
</soap:Envelope>