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

Get Shopping Carts

Will retrieve a list of shopping carts for a shopperKey

Method: GET /api/v3/publisher/carts/{shopperKey}
Authentication: oauth
 
Parameters
Required Key
Explanation
Yes
shopperKeyThe key given to the consumer.  Either UserKey or an anonymous token.

Returns
base response fields
shoppingCarts - Will return a list of shopping cart.

Sample Request:
GET https://api.groupcommerce.com/api/v3/publisher/carts/ShopperKey1

OAuth oauth_signature="EtK1a9OJUB78EiZfg%2Fuxo%2Bwmgug%3D", oauth_nonce="2485912", oauth_timestamp="1353950736", oauth_consumer_key="eeb6b959-b854-4ad1-b563-e801c83cf81d", oauth_signature_method="HMAC-SHA1", oauth_version="1.0"

Sample JSON Response:

{
    "errors": [],
    "lastPublished": "/Date(1353950869648)/",
    "success": true,
    "version": "3",
    "metaData": {
        "pageCount": 1,
        "pageNumber": 1,
        "pageSize": 2,
        "totalItems": 2
    },
    "shoppingCarts": [
        { /* see shopping cart */ },
        { /* see shopping cart */ },
    ]
}


Sample XML Response:

<getShoppingCartsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <errors />
    <lastPublished>2012-11-26T17:33:38.7977965Z</lastPublished>
    <success>true</success>
    <version>3</version>
    <metaData>
        <pageCount>1</pageCount>
        <pageNumber>1</pageNumber>
        <pageSize>2</pageSize>
        <totalItems>2</totalItems>
    </metaData>
    <shoppingCarts>
        <shoppingCart>
            <!--
see shopping cart -->
        </shoppingCart>
        <shoppingCart>
            <!--
see shopping cart -->
        </shoppingCart>
    </shoppingCarts>
</getShoppingCartsResponse>
Comments