Read Product
Method URI: https://www.mcssl.com/API/{MerchantId}/Products/{id}[/READ]
Example Request https://www.mcssl.com/API/118303/Products/2730514
POST DATA <Request> <Key>9679623159ec4a51a9...</Key> </Request>
Element Name | Description | Required | Default |
---|---|---|---|
Key | Your Merchant Key | Y |
Example Response
<Response success="true" xmlns:xlink="http://www.w3.org/1999/xlink">
<ProductInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Id>2730514</Id>
<VisibleId>e682bbae8b4d9997d336ab13cb2da39a</VisibleId>
<MerchantId>32012</MerchantId>
<ProductName>physical product 2</ProductName>
<ProductPrice>9.99</ProductPrice>
<ProductSku>2</ProductSku>
<ShortDescription />
<LongDescription />
<ImageUrl>/content/32012/productimage/2730514.jpg</ImageUrl>
<ProductAutoresponders>
<AutoresponderId>1</AutoresponderId>
<AutoresponderId>2</AutoresponderId>
</ProductAutoresponders>
<ProductBasedShippingCost>2.0</ProductBasedShippingCost>
<HasShippingCalculation>true</HasShippingCalculation>
<ProductWeight>5.0</ProductWeight>
<IsCommissionable>false</IsCommissionable>
<IsTaxable>true</IsTaxable>
<TopHtml><FONT style="BACKGROUND-COLOR: green"> Physical Product 2 TOP HTML</FONT></TopHtml>
<ThankYouUrl />
<DestinationUrl />
<MinPurchasing>0</MinPurchasing>
<MaxPurchasing>0</MaxPurchasing>
<VendorId>0</VendorId>
<IsFeaturedProduct>true</IsFeaturedProduct>
<ProductType>General</ProductType>
<ClearCartUrl>BACK</ClearCartUrl>
<ProductOptions />
<IsDiscountEnabled>false</IsDiscountEnabled>
<IsValid>true</IsValid>
</ProductInfo>
</Response>
The <Response> root element has a success attribute. This will be true or false. In the case of a false value you will get an Error element in the Response
Error Response
<Response success="false">
<Error code="2040">No data found</Error>
</Response>