Welcome‎ > ‎Version 3‎ > ‎Publisher Api‎ > ‎Methods‎ > ‎7 - Cart Api‎ > ‎

Delete Shopping Cart

Will delete a shopper's cart by the shopper key and name.

Method: DELETE /api/v3/publisher/cart/{shopperKey}/{cartName}

Authentication: oauth
 
Parameters
RequiredKey
Explanation
YescartNameThe name of the cart.
Yes
shopperKeyThe shopper key who owns the cart.  Typically the UserKey or anonymous token.


Sample Request:

DELETE https://api.groupcommerce.com/api/v3/publisher/cart/ShopperKey1/Default_Cart1

Authorization: OAuth oauth_signature="mVmdBNoIzn1Pt7V8DlNsCdk7C94%3D", oauth_nonce="3320556", oauth_timestamp="1353960288", oauth_consumer_key="eeb6b959-b854-4ad1-b563-e801c83cf81d", oauth_signature_method="HMAC-SHA1", oauth_version="1.0"


Sample JSON Response:

{
    "errors":[],
    "lastPublished":"/Date(1319762442406)/",
    "success":true,
    "version":"3"
}


Sample XML Response:

<deleteShoppingCartResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <errors/>
    <lastPublished>2011-10-28T00:41:46.6073105Z</lastPublished>
    <success>true</success>
    <version>3</version>
</
deleteShoppingCartResponse>
Comments