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

Get Shopping Cart

Will get a specific cart for a shopper.

Method: GET /api/v3/publisher/cart/{shopperKey}/{cartName}
Authentication: oauth
 
Parameters
Required Key
Explanation
Yes
shopperKeyThe key for the shopper.  Either the userKey of an anonymous token.
Yes
cartName The name of the cart.

Returns
base response fields
shoppingCart - Will return a shopping cart.

Sample Request:

GET https://api.groupcommerce.com/api/v3/publisher/cart/ShopperKey1/Default_Cart?format=xml

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

Sample JSON Response:

{
    "errors": [],
    "lastPublished": "/Date(1353951664985)/",
    "success": true,
    "version": "3",
    "shoppingCart": {
        /*
see shopping cart */
    }
}


Sample XML Response:

<getShoppingCartResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <errors />
  <lastPublished>2012-11-26T17:40:31.8040046Z</lastPublished>
  <success>true</success>
  <version>3</version>
  <shoppingCart>
    <!-- see shopping cart -->
  </shoppingCart>
</getShoppingCartResponse>
Comments