API v1 Reference

Add or Update Shipping Method to Shopping Cart

REST

Request

https://api.neoncrm.com/neonws/services/api/store/addOrUpdateShippingMethodToShoppingCart?userSessionId=[session id]&shoppingCartId=55584&shippingMethodId=Other||DHL

Response

{
    "addOrUpdateShippingMethodToShoppingCartResponse": {
        "operationResult": "SUCCESS",
        "responseMessage": "Shipping method added into Shopping cart.",
        "responseDateTime": "2013-02-20T21:22:32.172-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:addorupdateshippingmethodtoshoppingcartrequest>
            <usersessionid>T1361848390916</usersessionid>
             <shoppingcartid>55603</shoppingcartid>
             <shippingmethodid>Other||FedEx 2-Day Air</shippingmethodid>
          </neon:addorupdateshippingmethodtoshoppingcartrequest>
       </soapenv:body>
    </soapenv:header>
</soapenv:envelope>

Response

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:body>
      <ns2:addorupdateshippingmethodtoshoppingcartresponse xmlns:ns2="http://www.z2systems.com/schemas/neonws/">
         <operationresult>SUCCESS</operationresult>
         <responsemessage>Shipping method added into Shopping cart.</responsemessage>
         <responsedatetime>2013-02-25T21:47:01.177-06:00</responsedatetime>
      </ns2:addorupdateshippingmethodtoshoppingcartresponse>
   </soap:body>
</soap:envelope>

Request Parameters

Name Required Description
shippingMethodId Yes Possible values can be retrieved from List Shipping Methods request.

Error Codes

Code Text Description
12317 Shipping method id is required.
12318 Shipping method id is invalid.
12319 There is no shipping methods available. please list shipping methods first.