CMSWebService


Click here for a complete list of operations.

AddProductToCart

Add Product for shopping cart for given cart, customer and product of given product for given company.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /CMSWebService.asmx HTTP/1.1
Host: proservice4d2.imarketvend.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://microsoft.com/webservices/AddProductToCart"

<?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:Header>
    <AuthSoapHd xmlns="http://microsoft.com/webservices/">
      <strUserName>string</strUserName>
      <strPassword>string</strPassword>
    </AuthSoapHd>
  </soap:Header>
  <soap:Body>
    <AddProductToCart xmlns="http://microsoft.com/webservices/">
      <companyId>string</companyId>
      <tokenId>string</tokenId>
      <userTokenId>string</userTokenId>
      <cartProduct>
        <ProductListing>
          <ProductId>string</ProductId>
          <Name>string</Name>
          <CategoryId>string</CategoryId>
          <Sku>string</Sku>
          <OriginalPrice>string</OriginalPrice>
          <SalePrice>string</SalePrice>
          <Weight>string</Weight>
          <Track_Stock>string</Track_Stock>
          <Quantity>string</Quantity>
          <Shippable>string</Shippable>
          <Fixed_Quantity>string</Fixed_Quantity>
          <Taxable>string</Taxable>
          <BrandId>string</BrandId>
          <Image>string</Image>
          <ProductRating>string</ProductRating>
          <ProductReviewCount>string</ProductReviewCount>
          <COGS>string</COGS>
          <Relevance>string</Relevance>
          <MapUrlRewrite>string</MapUrlRewrite>
          <IsAttributeFlag>string</IsAttributeFlag>
          <SellerOffer>string</SellerOffer>
          <SellerId>string</SellerId>
          <SellerName>string</SellerName>
          <CategoryName>string</CategoryName>
          <SubCategoryId>string</SubCategoryId>
          <SubCategoryName>string</SubCategoryName>
          <productAddedOn>string</productAddedOn>
          <productHighlight1>string</productHighlight1>
          <productHighlight2>string</productHighlight2>
          <productHighlight3>string</productHighlight3>
          <productHighlight4>string</productHighlight4>
          <productHighlight5>string</productHighlight5>
          <productIsCalculated>string</productIsCalculated>
          <productISCustomUrlOverriden>string</productISCustomUrlOverriden>
          <productISManuallyOverriden>string</productISManuallyOverriden>
          <productMfgPartNo>string</productMfgPartNo>
          <productRefCompanyId>string</productRefCompanyId>
          <productrefManufacturerId>string</productrefManufacturerId>
          <productShortName>string</productShortName>
          <productSize>string</productSize>
          <productShortDescription>string</productShortDescription>
          <productSortPriority>string</productSortPriority>
          <productSpecialOffer>string</productSpecialOffer>
          <productStockAvailable>string</productStockAvailable>
          <productUPC>string</productUPC>
          <productUPC14>string</productUPC14>
          <productWeightUnit>string</productWeightUnit>
          <ProductBrandId>string</ProductBrandId>
          <ProductImage>string</ProductImage>
          <ProductMapUrlRewrite>string</ProductMapUrlRewrite>
          <ProductName>string</ProductName>
          <ProductOriginalPrice>string</ProductOriginalPrice>
          <ProductSKU>string</ProductSKU>
          <ProductWeight>string</ProductWeight>
          <ProductSalePrice>string</ProductSalePrice>
          <ProductTaxable>string</ProductTaxable>
          <ProductRelevance>string</ProductRelevance>
          <SupplierId>string</SupplierId>
          <IsVariantMaster>string</IsVariantMaster>
          <IsVariantChild>string</IsVariantChild>
          <refMasterProductId>string</refMasterProductId>
          <Tax1>string</Tax1>
          <Tax2>string</Tax2>
          <IsBundleMaster>string</IsBundleMaster>
          <IsBundleChild>string</IsBundleChild>
          <PurchasedQuantity>string</PurchasedQuantity>
          <MinimiumSalePrice>string</MinimiumSalePrice>
          <IsCOGSClassProduct>string</IsCOGSClassProduct>
          <COGSClassName>string</COGSClassName>
          <IsService>string</IsService>
          <HavingActiveCOGSProduct>string</HavingActiveCOGSProduct>
          <IsAdvance>string</IsAdvance>
          <GroupName>string</GroupName>
          <AverageSalePrice>string</AverageSalePrice>
          <IsActive>string</IsActive>
          <ExtraCost>string</ExtraCost>
          <IsSides>string</IsSides>
        </ProductListing>
        <CartId>string</CartId>
        <CartProductId>string</CartProductId>
        <SelCartId>string</SelCartId>
        <ProductId>string</ProductId>
        <Quantity>string</Quantity>
        <AvailableQuantity>string</AvailableQuantity>
        <CustomerId>string</CustomerId>
        <ProductName>string</ProductName>
        <Image>string</Image>
        <SalePrice>string</SalePrice>
        <CategoryId>string</CategoryId>
        <Tax1>string</Tax1>
        <Tax2>string</Tax2>
        <ProductImage>base64Binary</ProductImage>
        <SubTotal>string</SubTotal>
        <MinimiumSalePrice>string</MinimiumSalePrice>
        <ProductAttributes>
          <CartProductAttributes>
            <ProductAttributeId>string</ProductAttributeId>
            <ProductAttributeSelectedValueId>string</ProductAttributeSelectedValueId>
            <ProductAttributeName>string</ProductAttributeName>
            <ProductAttributeSelectedValue>string</ProductAttributeSelectedValue>
          </CartProductAttributes>
          <CartProductAttributes>
            <ProductAttributeId>string</ProductAttributeId>
            <ProductAttributeSelectedValueId>string</ProductAttributeSelectedValueId>
            <ProductAttributeName>string</ProductAttributeName>
            <ProductAttributeSelectedValue>string</ProductAttributeSelectedValue>
          </CartProductAttributes>
        </ProductAttributes>
        <ColorCodeIds>
          <ColorCode>
            <ColorCodeId>string</ColorCodeId>
          </ColorCode>
          <ColorCode>
            <ColorCodeId>string</ColorCodeId>
          </ColorCode>
        </ColorCodeIds>
        <OriginalProductId>string</OriginalProductId>
        <IsService>string</IsService>
        <IsAdvance>string</IsAdvance>
        <DiscountAmt>string</DiscountAmt>
        <addOnValues_Tbs>
          <AddOnValues_tb>
            <ID>int</ID>
            <refPropertyID>int</refPropertyID>
            <PropertyValue>string</PropertyValue>
            <IsDisplayOnInvoice>boolean</IsDisplayOnInvoice>
            <IsActive>boolean</IsActive>
            <CreateDate>dateTime</CreateDate>
            <EditDate>dateTime</EditDate>
            <AddedBy>int</AddedBy>
          </AddOnValues_tb>
          <AddOnValues_tb>
            <ID>int</ID>
            <refPropertyID>int</refPropertyID>
            <PropertyValue>string</PropertyValue>
            <IsDisplayOnInvoice>boolean</IsDisplayOnInvoice>
            <IsActive>boolean</IsActive>
            <CreateDate>dateTime</CreateDate>
            <EditDate>dateTime</EditDate>
            <AddedBy>int</AddedBy>
          </AddOnValues_tb>
        </addOnValues_Tbs>
        <capillaryCodes>
          <string>string</string>
          <string>string</string>
        </capillaryCodes>
      </cartProduct>
    </AddProductToCart>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
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>
    <AddProductToCartResponse xmlns="http://microsoft.com/webservices/">
      <AddProductToCartResult>
        <CartId>string</CartId>
        <CartProductId>string</CartProductId>
        <SelCartId>string</SelCartId>
      </AddProductToCartResult>
    </AddProductToCartResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /CMSWebService.asmx HTTP/1.1
Host: proservice4d2.imarketvend.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Header>
    <AuthSoapHd xmlns="http://microsoft.com/webservices/">
      <strUserName>string</strUserName>
      <strPassword>string</strPassword>
    </AuthSoapHd>
  </soap12:Header>
  <soap12:Body>
    <AddProductToCart xmlns="http://microsoft.com/webservices/">
      <companyId>string</companyId>
      <tokenId>string</tokenId>
      <userTokenId>string</userTokenId>
      <cartProduct>
        <ProductListing>
          <ProductId>string</ProductId>
          <Name>string</Name>
          <CategoryId>string</CategoryId>
          <Sku>string</Sku>
          <OriginalPrice>string</OriginalPrice>
          <SalePrice>string</SalePrice>
          <Weight>string</Weight>
          <Track_Stock>string</Track_Stock>
          <Quantity>string</Quantity>
          <Shippable>string</Shippable>
          <Fixed_Quantity>string</Fixed_Quantity>
          <Taxable>string</Taxable>
          <BrandId>string</BrandId>
          <Image>string</Image>
          <ProductRating>string</ProductRating>
          <ProductReviewCount>string</ProductReviewCount>
          <COGS>string</COGS>
          <Relevance>string</Relevance>
          <MapUrlRewrite>string</MapUrlRewrite>
          <IsAttributeFlag>string</IsAttributeFlag>
          <SellerOffer>string</SellerOffer>
          <SellerId>string</SellerId>
          <SellerName>string</SellerName>
          <CategoryName>string</CategoryName>
          <SubCategoryId>string</SubCategoryId>
          <SubCategoryName>string</SubCategoryName>
          <productAddedOn>string</productAddedOn>
          <productHighlight1>string</productHighlight1>
          <productHighlight2>string</productHighlight2>
          <productHighlight3>string</productHighlight3>
          <productHighlight4>string</productHighlight4>
          <productHighlight5>string</productHighlight5>
          <productIsCalculated>string</productIsCalculated>
          <productISCustomUrlOverriden>string</productISCustomUrlOverriden>
          <productISManuallyOverriden>string</productISManuallyOverriden>
          <productMfgPartNo>string</productMfgPartNo>
          <productRefCompanyId>string</productRefCompanyId>
          <productrefManufacturerId>string</productrefManufacturerId>
          <productShortName>string</productShortName>
          <productSize>string</productSize>
          <productShortDescription>string</productShortDescription>
          <productSortPriority>string</productSortPriority>
          <productSpecialOffer>string</productSpecialOffer>
          <productStockAvailable>string</productStockAvailable>
          <productUPC>string</productUPC>
          <productUPC14>string</productUPC14>
          <productWeightUnit>string</productWeightUnit>
          <ProductBrandId>string</ProductBrandId>
          <ProductImage>string</ProductImage>
          <ProductMapUrlRewrite>string</ProductMapUrlRewrite>
          <ProductName>string</ProductName>
          <ProductOriginalPrice>string</ProductOriginalPrice>
          <ProductSKU>string</ProductSKU>
          <ProductWeight>string</ProductWeight>
          <ProductSalePrice>string</ProductSalePrice>
          <ProductTaxable>string</ProductTaxable>
          <ProductRelevance>string</ProductRelevance>
          <SupplierId>string</SupplierId>
          <IsVariantMaster>string</IsVariantMaster>
          <IsVariantChild>string</IsVariantChild>
          <refMasterProductId>string</refMasterProductId>
          <Tax1>string</Tax1>
          <Tax2>string</Tax2>
          <IsBundleMaster>string</IsBundleMaster>
          <IsBundleChild>string</IsBundleChild>
          <PurchasedQuantity>string</PurchasedQuantity>
          <MinimiumSalePrice>string</MinimiumSalePrice>
          <IsCOGSClassProduct>string</IsCOGSClassProduct>
          <COGSClassName>string</COGSClassName>
          <IsService>string</IsService>
          <HavingActiveCOGSProduct>string</HavingActiveCOGSProduct>
          <IsAdvance>string</IsAdvance>
          <GroupName>string</GroupName>
          <AverageSalePrice>string</AverageSalePrice>
          <IsActive>string</IsActive>
          <ExtraCost>string</ExtraCost>
          <IsSides>string</IsSides>
        </ProductListing>
        <CartId>string</CartId>
        <CartProductId>string</CartProductId>
        <SelCartId>string</SelCartId>
        <ProductId>string</ProductId>
        <Quantity>string</Quantity>
        <AvailableQuantity>string</AvailableQuantity>
        <CustomerId>string</CustomerId>
        <ProductName>string</ProductName>
        <Image>string</Image>
        <SalePrice>string</SalePrice>
        <CategoryId>string</CategoryId>
        <Tax1>string</Tax1>
        <Tax2>string</Tax2>
        <ProductImage>base64Binary</ProductImage>
        <SubTotal>string</SubTotal>
        <MinimiumSalePrice>string</MinimiumSalePrice>
        <ProductAttributes>
          <CartProductAttributes>
            <ProductAttributeId>string</ProductAttributeId>
            <ProductAttributeSelectedValueId>string</ProductAttributeSelectedValueId>
            <ProductAttributeName>string</ProductAttributeName>
            <ProductAttributeSelectedValue>string</ProductAttributeSelectedValue>
          </CartProductAttributes>
          <CartProductAttributes>
            <ProductAttributeId>string</ProductAttributeId>
            <ProductAttributeSelectedValueId>string</ProductAttributeSelectedValueId>
            <ProductAttributeName>string</ProductAttributeName>
            <ProductAttributeSelectedValue>string</ProductAttributeSelectedValue>
          </CartProductAttributes>
        </ProductAttributes>
        <ColorCodeIds>
          <ColorCode>
            <ColorCodeId>string</ColorCodeId>
          </ColorCode>
          <ColorCode>
            <ColorCodeId>string</ColorCodeId>
          </ColorCode>
        </ColorCodeIds>
        <OriginalProductId>string</OriginalProductId>
        <IsService>string</IsService>
        <IsAdvance>string</IsAdvance>
        <DiscountAmt>string</DiscountAmt>
        <addOnValues_Tbs>
          <AddOnValues_tb>
            <ID>int</ID>
            <refPropertyID>int</refPropertyID>
            <PropertyValue>string</PropertyValue>
            <IsDisplayOnInvoice>boolean</IsDisplayOnInvoice>
            <IsActive>boolean</IsActive>
            <CreateDate>dateTime</CreateDate>
            <EditDate>dateTime</EditDate>
            <AddedBy>int</AddedBy>
          </AddOnValues_tb>
          <AddOnValues_tb>
            <ID>int</ID>
            <refPropertyID>int</refPropertyID>
            <PropertyValue>string</PropertyValue>
            <IsDisplayOnInvoice>boolean</IsDisplayOnInvoice>
            <IsActive>boolean</IsActive>
            <CreateDate>dateTime</CreateDate>
            <EditDate>dateTime</EditDate>
            <AddedBy>int</AddedBy>
          </AddOnValues_tb>
        </addOnValues_Tbs>
        <capillaryCodes>
          <string>string</string>
          <string>string</string>
        </capillaryCodes>
      </cartProduct>
    </AddProductToCart>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <AddProductToCartResponse xmlns="http://microsoft.com/webservices/">
      <AddProductToCartResult>
        <CartId>string</CartId>
        <CartProductId>string</CartProductId>
        <SelCartId>string</SelCartId>
      </AddProductToCartResult>
    </AddProductToCartResponse>
  </soap12:Body>
</soap12:Envelope>