API v1 Reference

Update Category

REST

Request

https://api.neoncrm.com/neonws/services/api/store/updateCategory?userSessionId=[session id]&category.code=BK1&category.description=novel&category.displaySequence=13&category.name=Book&category.categoryId=14

Response

{
    "UpdateCategoryResponse": {
        "operationResult": "SUCCESS",
        "responseMessage": "Category updated.",
        "responseDateTime": "2013-02-17T20:34:38.246-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:updatecategoryrequest>
             <usersessionid>T1361844704954</usersessionid>
             <category>
                <categoryid>15</categoryid>
                <code>BK1</code>
                <name>Book</name>
                <description>some books</description>
               <displaysequence>4</displaysequence>
             </category>
          </neon:updatecategoryrequest>
       </soapenv:body>
    </soapenv:header>
</soapenv:envelope>

Response

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:body>
      <ns2:updatecategoryresponse xmlns:ns2="http://www.z2systems.com/schemas/neonws/">
         <operationresult>SUCCESS</operationresult>
         <responsemessage>Category updated.</responsemessage>
         <responsedatetime>2013-02-25T20:20:08.008-06:00</responsedatetime>
      </ns2:updatecategoryresponse>
   </soap:body>
</soap:envelope>

Request Parameters

Name Required Description
category.categoryId Yes
category.code Yes
category.name Yes
category.description
category.displaySequence

Error Codes

Code Text Description
12101 Category name is required.
12102 Category id is invalid.
12103 Category id is required.
12104 Category code is required.