API v1 Reference

Add Product to Catalog

REST

Request

https://api.neoncrm.com/neonws/services/api/store/addProductToCatalog?userSessionId=[session id]&catalogId=28&productId=10&displayOnMainPage=false&displaySequence=1

Response

{
    "AddProductToCatalogResponse": {
        "operationResult": "SUCCESS",
        "responseDateTime": "2013-02-17T18:27:52.623-06:00"
    }
}

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:addproducttocatalogrequest>
             <usersessionid>T1361782721383</usersessionid>
             <catalogid>28</catalogid>
             <productid>10</productid>
             <displayonmainpage>false</displayonmainpage>
             <displaysequence>1</displaysequence>
          </neon:addproducttocatalogrequest>
       </soapenv:body>
    </soapenv:header>
</soapenv:envelope>

Response

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:body>
      <ns2:addproducttocatalogresponse xmlns:ns2="http://www.z2systems.com/schemas/neonws/">
         <operationresult>SUCCESS</operationresult>
         <responsedatetime>2013-02-25T02:59:35.211-06:00</responsedatetime>
      </ns2:addproducttocatalogresponse>
   </soap:body>
</soap:envelope>

Request Parameters

Name Required Description
catalogId Yes Catalog ID
productId Yes Product ID
displayOnMainPage Determines whether this product should be listed on the main page of the catalog. Possible values: true, false
displaySequenceId The display sequence ID within this catalog

Error Codes

Code Text Description
12002 Catalog id is required.
12003 Catalog id is invalid.
12201 Product id is required.
12202 Product id is invalid.