API v1 Reference

List Product Images

REST

Request

https://api.neoncrm.com/neonws/services/api/store/listProductImages?userSessionId=[session id]&productId=78

Response

{
    "listProductImagesResponse": {
        "operationResult": "SUCCESS",
        "responseMessage": "4 records were found.",
        "responseDateTime": "2013-02-18T20:53:11.151-06:00",
        "productImages": {
            "productImage": [
                {
                    "imageSequenceId": 0,
                    "imageUrl": "(NeonCRM URL)/neon/resource/(orgID)/images/product/78/0.jpg",
                    "imageLabel": "test image"
                },
                {
                    "imageSequenceId": 1,
                    "imageUrl": "(NeonCRM URL)/neon/resource/(orgID)/images/product/78/1.jpg",
                    "imageLabel": "image1"
                },
                {
                    "imageSequenceId": 3,
                    "imageUrl": "(NeonCRM URL)4/neon/resource/(orgID)/images/product/78/3.jpg",
                    "imageLabel": "image1"
                },
                {
                    "imageSequenceId": 4,
                    "imageUrl": "(NeonCRM URL)/neon/resource/(orgID)/images/product/78/4.jpg",
                    "imageLabel": "image1"
                }
            ]
        }
    }
}

SOAP

Request

    <soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:neon="http://www.z2systems.com/schemas/neonws/">
       <soapenv:header>
           <soapenv:body>
              <neon:listproductimagesrequest>
                <usersessionid>T1361786551112</usersessionid>
                <productid>78</productid>
              </neon:listproductimagesrequest>
           </soapenv:body>
        </soapenv:header>
    </soapenv:envelope>

Response

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:body>
      <ns2:listproductimagesresponse xmlns:ns2="http://www.z2systems.com/schemas/neonws/">
         <operationresult>SUCCESS</operationresult>
         <responsemessage>4 records were found.</responsemessage>
         <responsedatetime>2013-02-25T04:09:36.491-06:00</responsedatetime>
         <productimages>
            <productimage>
               <imagesequenceid>0</imagesequenceid>
               <imageurl>(NeonCRM URL)/neon/resource/(orgID)/images/product/78/0.jpg</imageurl>
               <imagelabel>test image</imagelabel>
            </productimage>
            <productimage>
               <imagesequenceid>1</imagesequenceid>
               <imageurl>(NeonCRM URL)/neon/resource/(orgID)/images/product/78/1.jpg</imageurl>
               <imagelabel>image1</imagelabel>
            </productimage>
            <productimage>
               <imagesequenceid>3</imagesequenceid>
               <imageurl>(NeonCRM URL)/neon/resource/(orgID)/images/product/78/3.jpg</imageurl>
               <imagelabel>image1</imagelabel>
            </productimage>
            <productimage>
               <imagesequenceid>4</imagesequenceid>
               <imageurl>(NeonCRM URL)/neon/resource/(orgID)/images/product/78/4.jpg</imageurl>
               <imagelabel>image1</imagelabel>
            </productimage>
         </productimages>
      </ns2:listproductimagesresponse>
   </soap:body>
</soap:envelope>

Request Parameters

Name Required Description
productId Yes

Response Parameters

Name Required Description
productImage.imageSequenceId
productImage.imageURL
productImage.imageLabel

Error Codes

Code Text Description
12201 Product Id is required.
12202 Product Id is invalid.