TS Commerce Developers

Abandoned Cart API

Current version: v1.1

List abandoned cart

Returns a list of your store abandoned cart.

GET
/abandoned-cart/list.json
PARAMETERS LIST
days (int) Value of days to get cart from ( max: 30 days ).
default: 1
List abandoned cart Request

$storeden = new Storeden\Storeden($config);
$list = $storeden->get('/abandoned-cart/list.json?days=7');
					
List abandoned cart Response

[
	...
	{
        "cartUUID": "17093rafo322d5548a5873rvsvsdvw5015279",
        "userUID": 121,
        "total": 24.95,
        "items": {
            "17585420#|#6": {
                "count": 1,
                "price": 24.95,
                "options": "6",
                "title": "Product Title",
                "sku": "IO22424BWRWR",
                "listing_discount": 50,
                "listing_price": 49.9
            }
        },
        "api_items": [],
        "saleCode": "",
        "saleAmount": 0,
        "shippingAmount": 0,
        "shippingProfile": "",
        "paymentAmount": 0,
        "paymentProfile": "",
        "billingID": "",
        "deliveryID": "",
        "cart_rules": [],
        "metadata": [],
        "notification": "sent",
        "cartDate": "2019-08-15T17:10:10+02:00",
        "notified": true,
        "recovered": false,
        "user": {
            "fullname": "use fullname",
            "email": "user@email.tld"
        }
    },
	...
]
						

Get single cart info

Returns a list of your webook endpoints.

GET
/abandoned-cart/cart.json
PARAMETERS LIST
cart_id (StoredenID) Unique cart id for you shop
getUser 1/0 Add users information
Get cart Request

$storeden = new Storeden\Storeden($config);
$list = $storeden->get('/abandoned-cart/cart.json?cart_id=17093rafo322d5548a5873rvsvsdvw5015279');
					
Get cart Response

{
    "cartUUID": "10840418365e9a165daccff758198098",
    "userUID": 121,
    "total": 24.95,
    "items": {
        "17585420#|#6": {
            "count": 1,
            "price": 24.95,
            "options": "6",
            "title": "Product Title",
            "sku": "IO22424BWRWR",
            "listing_discount": 50,
            "listing_price": 49.9
        }
    },
    "api_items": [],
    "saleCode": "",
    "saleAmount": 0,
    "shippingAmount": 0,
    "shippingProfile": "",
    "paymentAmount": 0,
    "paymentProfile": "",
    "billingID": "",
    "deliveryID": "",
    "cart_rules": [],
    "metadata": [],
    "notification": "sent",
    "cartDate": "2019-08-15T17:10:10+02:00",
    "notified": true,
    "recovered": false,
    "user": {
        "fullname": "use fullname",
        "email": "user@email.tld"
    },
	"recovery_url": "https://www.shop-domain.com/cart/?_=_&forceCart=10840418365e9a165daccff758198098&instance=f4a601c9b71a654183734200f9170c028d2cd8fd",
    "expire_at": "2020-05-17T22:50:53+02:00"
}