Megaventory API v2017a

<back to all web services

ProductBundleGetAll

The following routes are available for this service:
GET POST/Product/ProductBundleGetAllGets all product bundles

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

HTTP + XML

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

POST /xml/reply/ProductBundleGetAll HTTP/1.1 
Host: api.megaventory.com 
Content-Type: application/xml
Content-Length: length

<ProductBundleGetAll xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Megaventory.APIEndpoints.Operations">
  <APIKEY>String</APIKEY>
  <ProductBundleIDList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </ProductBundleIDList>
  <ProductBundleSKUList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </ProductBundleSKUList>
  <IncludedProductIDList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </IncludedProductIDList>
  <IncludedProductSKUList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </IncludedProductSKUList>
  <showDeleted>showOnlyUndeleted</showDeleted>
</ProductBundleGetAll>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ProductBundleGetAllResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Megaventory.APIEndpoints.Operations">
  <mvProductBundles xmlns:d2p1="http://schemas.datacontract.org/2004/07/Megaventory.Models.DTOs">
    <d2p1:MvProductBundleDTOs.ProductBundleDetails>
      <d2p1:BundleProductBarcode>String</d2p1:BundleProductBarcode>
      <d2p1:BundleProductBreadth>0</d2p1:BundleProductBreadth>
      <d2p1:BundleProductCategory xmlns:d4p1="https://api.megaventory.com/types">
        <d4p1:ProductCategoryID>0</d4p1:ProductCategoryID>
        <d4p1:ProductCategoryName>String</d4p1:ProductCategoryName>
        <d4p1:ProductCategoryDescription>String</d4p1:ProductCategoryDescription>
      </d2p1:BundleProductCategory>
      <d2p1:BundleProductCategoryID>0</d2p1:BundleProductCategoryID>
      <d2p1:BundleProductComments>String</d2p1:BundleProductComments>
      <d2p1:BundleProductCustomField1>String</d2p1:BundleProductCustomField1>
      <d2p1:BundleProductCustomField10>String</d2p1:BundleProductCustomField10>
      <d2p1:BundleProductCustomField11>String</d2p1:BundleProductCustomField11>
      <d2p1:BundleProductCustomField12>String</d2p1:BundleProductCustomField12>
      <d2p1:BundleProductCustomField13>String</d2p1:BundleProductCustomField13>
      <d2p1:BundleProductCustomField14>String</d2p1:BundleProductCustomField14>
      <d2p1:BundleProductCustomField15>String</d2p1:BundleProductCustomField15>
      <d2p1:BundleProductCustomField16>String</d2p1:BundleProductCustomField16>
      <d2p1:BundleProductCustomField17>String</d2p1:BundleProductCustomField17>
      <d2p1:BundleProductCustomField18>String</d2p1:BundleProductCustomField18>
      <d2p1:BundleProductCustomField19>String</d2p1:BundleProductCustomField19>
      <d2p1:BundleProductCustomField2>String</d2p1:BundleProductCustomField2>
      <d2p1:BundleProductCustomField20>String</d2p1:BundleProductCustomField20>
      <d2p1:BundleProductCustomField3>String</d2p1:BundleProductCustomField3>
      <d2p1:BundleProductCustomField4>String</d2p1:BundleProductCustomField4>
      <d2p1:BundleProductCustomField5>String</d2p1:BundleProductCustomField5>
      <d2p1:BundleProductCustomField6>String</d2p1:BundleProductCustomField6>
      <d2p1:BundleProductCustomField7>String</d2p1:BundleProductCustomField7>
      <d2p1:BundleProductCustomField8>String</d2p1:BundleProductCustomField8>
      <d2p1:BundleProductCustomField9>String</d2p1:BundleProductCustomField9>
      <d2p1:BundleProductDescription>String</d2p1:BundleProductDescription>
      <d2p1:BundleProductHeight>0</d2p1:BundleProductHeight>
      <d2p1:BundleProductID>0</d2p1:BundleProductID>
      <d2p1:BundleProductImageURL>String</d2p1:BundleProductImageURL>
      <d2p1:BundleProductLength>0</d2p1:BundleProductLength>
      <d2p1:BundleProductLongDescription>String</d2p1:BundleProductLongDescription>
      <d2p1:BundleProductOption1>false</d2p1:BundleProductOption1>
      <d2p1:BundleProductOption10>false</d2p1:BundleProductOption10>
      <d2p1:BundleProductOption2>false</d2p1:BundleProductOption2>
      <d2p1:BundleProductOption3>false</d2p1:BundleProductOption3>
      <d2p1:BundleProductOption4>false</d2p1:BundleProductOption4>
      <d2p1:BundleProductOption5>false</d2p1:BundleProductOption5>
      <d2p1:BundleProductOption6>false</d2p1:BundleProductOption6>
      <d2p1:BundleProductOption7>false</d2p1:BundleProductOption7>
      <d2p1:BundleProductOption8>false</d2p1:BundleProductOption8>
      <d2p1:BundleProductOption9>false</d2p1:BundleProductOption9>
      <d2p1:BundleProductSKU>String</d2p1:BundleProductSKU>
      <d2p1:BundleProductUnitOfMeasurement>String</d2p1:BundleProductUnitOfMeasurement>
      <d2p1:BundleProductWeight>0</d2p1:BundleProductWeight>
      <d2p1:BundleTotalPrice>0</d2p1:BundleTotalPrice>
      <d2p1:IncludedProducts xmlns:d4p1="https://api.megaventory.com/types">
        <d4p1:BundledProductInfo>
          <d4p1:PriceInBundle>0</d4p1:PriceInBundle>
          <d4p1:ProductID>0</d4p1:ProductID>
          <d4p1:ProductSKU>String</d4p1:ProductSKU>
          <d4p1:QuantityInBundle>0</d4p1:QuantityInBundle>
          <d4p1:RelatedBundleID>0</d4p1:RelatedBundleID>
          <d4p1:RelatedBundleSKU>String</d4p1:RelatedBundleSKU>
        </d4p1:BundledProductInfo>
      </d2p1:IncludedProducts>
    </d2p1:MvProductBundleDTOs.ProductBundleDetails>
  </mvProductBundles>
  <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>
  <InternalErrorCode>String</InternalErrorCode>
</ProductBundleGetAllResponse>