API v1 Reference

Remove Item from Shopping Cart

Removes an item from a shopping cart.

REST

Request

https://api.neoncrm.com/neonws/services/api/store/removeItemFromShoppingCart?userSessionId=[session id]&shoppingCartId=55582&sequenceId=0

Response

{
    "removeItemFromShoppingCartResponse": {
        "operationResult": "SUCCESS",
        "responseMessage": "Item removed from shopping cart.",
        "responseDateTime": "2013-02-20T05:01:49.425-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:removeitemfromshoppingcartrequest>
            <usersessionid>T1361848390916</usersessionid>
             <shoppingcartid>55603</shoppingcartid>
             <sequenceid>1</sequenceid>
          </neon:removeitemfromshoppingcartrequest>
       </soapenv:body>
    </soapenv:header>
</soapenv:envelope>

Response

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:body>
      <ns2:removeitemfromshoppingcartresponse xmlns:ns2="http://www.z2systems.com/schemas/neonws/">
         <operationresult>SUCCESS</operationresult>
         <responsemessage>Item removed from shopping cart.</responsemessage>
         <responsedatetime>2013-02-25T21:29:01.614-06:00</responsedatetime>
      </ns2:removeitemfromshoppingcartresponse>
   </soap:body>
</soap:envelope>

Request Parameters

Name Required Description
shoppingCartId Yes Shopping cart ID
sequenceId Yes The sequence ID of the item to be removed

Error Codes

Code Text Description
12301 Shopping cart ID is required.
12302 Shopping cart ID is invalid.
12311 Item sequence id is required.
12312 Item sequence id is invalid.