API v1 Reference

Create Product

REST

Request

https://api.neoncrm.com/neonws/services/api/store/createProduct?userSessionId=T1361171900015&product.name=Sack%20of%20Hammers&product.code=Mer&product.unitPrice=300&product.category.id=1&product.description=A%20large%20bag%20of%20hammers&product.shippingRequired=true&product.defaultShippingCost=15&product.ounces=9&product.pounds=18

Response

{
    "CreateProductResponse": {
        "operationResult": "SUCCESS",
        "responseDateTime": "2013-02-18T01:29:49.139-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:createproductrequest>
             <usersessionid>T1361784723792</usersessionid>
            <product>
                <category>
                  <id>1</id>
               </category>
                <code>Mer</code>
               <name>Merlin</name>
               <description>in the time of magic</description>
               <unitprice>300</unitprice>
               <shippingrequired>true</shippingrequired>
               <daystoship>3</daystoship>
               <defaultshippingcost>14</defaultshippingcost>
               <pounds>9</pounds>
               <ounces>23</ounces>
            </product>
          </neon:createproductrequest>
       </soapenv:body>
    </soapenv:header>
</soapenv:envelope>

Response

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:body>
      <ns2:createproductresponse xmlns:ns2="http://www.z2systems.com/schemas/neonws/">
         <operationresult>SUCCESS</operationresult>
         <responsedatetime>2013-02-25T03:41:23.115-06:00</responsedatetime>
         <productid>91</productid>
      </ns2:createproductresponse>
   </soap:body>
</soap:envelope>

Request Parameters

Name Required Description
product.name Yes
product.unitPrice Yes
product.code
product.description
product.category.id Possible values can be retrieved from the List Categories method.
product.category.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
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.