Update Product

REST

Request

https://api.neoncrm.com/neonws/services/api/store/updateProduct?userSessionId=[session id]&product.name=Merlin&product.code=Mer&product.unitPrice=300&product.category.id=1&product.description=in the time of magic&product.shippingRequired=true&product.defaultShippingCost=15&product.ounces=9&product.pounds=18&product.productId=89

Response

{
    "UpdateProductResponse": {
        "operationResult": "SUCCESS",
        "responseDateTime": "2013-02-18T01:35:22.502-06:00",
        "productId": 89
    }
}

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:updateproductrequest>
            <usersessionid>T1361844704954</usersessionid>
            <product>
                <productid>92</productid>
               <category>
                   <id>1</id>
                 </category>
               <code>Mer</code>
                <name>Merlin</name>
               <description>a book</description>
               <unitprice>100</unitprice>
               <shippingrequired>true</shippingrequired>
                <daystoship>2</daystoship>
               <defaultshippingcost>10</defaultshippingcost>
                <pounds>33</pounds>
                <ounces>33</ounces>
              </product>
          </neon:updateproductrequest>
       </soapenv:body>
    </soapenv:header>
</soapenv:envelope>

Response

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:body>
      <ns2:updateproductresponse xmlns:ns2="http://www.z2systems.com/schemas/neonws/">
         <operationresult>SUCCESS</operationresult>
         <responsedatetime>2013-02-25T20:34:26.710-06:00</responsedatetime>
         <productid>92</productid>
      </ns2:updateproductresponse>
   </soap:body>
</soap:envelope>

Request Parameters

Name Required Description
product.id Yes
product.name Yes
product.unitPrice Yes
product.code
product.description
product.category.idNamePair.id Possible values can be retrieved from the List Categories method.
product.category.idNamePair.name Possible values can be retrieved from the List Categories method.
product.shippingRequired Possible values: true, false
product.daysToShip
product.defaultShippingCost
product.pounds
product.ounces
product.hasOptions Possible values: true, false
product.status Possible values: Active, Inactive, Deleted

Response Parameters

Name Required Description
productId Yes Product ID

Error Codes

Code Text Description
12201 Product id is required.
12202 Product id is invalid.
12207 Product name is required.
12208 Product unit price is required.
12105 Category id or name is invalid.
12203 Days to ship is invalid.
12204 Default shipping cost is required.
12205 Pounds is required
12206 Ounces is required.