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

Get Abandoned Carts

Method used to get a list of carts a shopper isn't working against anymore.  If the Cart was defined as profiled, it might be possible to send a marketing email reminding the consumer to finish their purchase.  To understand more about how the DateRange object works, please learn more here.

Method: GET /api/v3/publisher/carts/abandoned
Authentication: oauth
 
Parameters
Required QueryString Value
Explanation
No
PageSize
The number of records to return per page. Default is 100
No
PageNumber The page number of records to return. Default is 1
No LastModifiedDateRange
The date range to filter against the the last time the cart was modified.  Defaults to 30 to 60 days.

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

Sample Request:

GET http://apitest.groupcommerce.com/api/v3/publisher/carts/abandoned?pagenumber=1&pagesize=20&LastModifiedDateRange=t1351742400-t1353992400

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

Sample JSON Response:

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


Sample XML Response:

<getAbandonedShoppingCartsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <errors />
  <lastPublished>2012-11-27T15:30:27.6652761Z</lastPublished>
  <success>true</success>
  <version>3</version>
  <metaData>
        <pageCount>1</pageCount>
        <pageNumber>1</pageNumber>
        <pageSize>20</pageSize>
        <totalItems>2</totalItems>
  </metaData>
  <shoppingCarts>

        <shoppingCart>
            <!--
see shopping cart -->
        </shoppingCart>
        <shoppingCart>
            <!--
see shopping cart -->
        </shoppingCart>

   </shoppingCarts>
</getAbandonedShoppingCartsResponse>
Comments