API Reference

Abandoned carts

Carts with items nobody checked out — the basis for sales recovery flows.

A cart shows up here once it has items and has not been touched for a few hours. Guest carts carry no contact details; signed-in customers' carts carry the account.

List abandoned carts

GET/api/v1/abandoned-cartsAbilityabandoned-carts.read
Returns the carts idle for at least min_hours, most recent first.

Query parameters

min_hoursinteger
Hours without activity to count as abandoned, from 1 to 8760. Default 24.
typestring
guest (guests only) or customer (signed-in customers only).
per_pageinteger
Items per page, from 1 to 100. Default 20. A value outside that range returns 422.
pageinteger
Page number, from 1 to 10000. Default 1. A value outside that range returns 422.
curl "https://sellitex.com/api/v1/abandoned-carts?type=customer&min_hours=6" \
  -H "Authorization: Bearer sk_live_..." \
  -H "Accept: application/json"
Response200
{
  "data": [
    {
      "id": 981,
      "is_guest": false,
      "customer": {
        "id": 42,
        "name": "Fulano de Tal",
        "email": "[email protected]"
      },
      "currency": "BRL",
      "subtotal": 9980,
      "item_count": 1,
      "items": [
        {
          "product_id": 12,
          "product_name": "VIP Diamante",
          "variant_id": 31,
          "variant_name": "30 dias",
          "quantity": 2
        }
      ],
      "created_at": "2026-08-18T09:10:00+00:00",
      "updated_at": "2026-08-18T09:15:00+00:00"
    }
  ],
  "links": {
    "first": "…?page=1",
    "last": "…?page=1",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "per_page": 20,
    "to": 1,
    "total": 1
  }
}

Retrieve a cart

GET/api/v1/abandoned-carts/{cart}Abilityabandoned-carts.read
A record that belongs to another store answers 404, exactly like one that doesn't exist.

Path parameters

cartintegerrequired
The cart id.
curl "https://sellitex.com/api/v1/abandoned-carts/981" \
  -H "Authorization: Bearer sk_live_..." \
  -H "Accept: application/json"
Response200
{
  "data": {
    "id": 981,
    "is_guest": false,
    "customer": {
      "id": 42,
      "name": "Fulano de Tal",
      "email": "[email protected]"
    },
    "currency": "BRL",
    "subtotal": 9980,
    "item_count": 1,
    "items": [
      {
        "product_id": 12,
        "product_name": "VIP Diamante",
        "variant_id": 31,
        "variant_name": "30 dias",
        "quantity": 2
      }
    ],
    "created_at": "2026-08-18T09:10:00+00:00",
    "updated_at": "2026-08-18T09:15:00+00:00"
  }
}

Remind the customer

POST/api/v1/abandoned-carts/{cart}/notifyAbilityabandoned-carts.write
Sends the cart owner the "your items are waiting" e-mail and notification. Only for signed-in customers' carts, at most once every 24 hours per cart.

Path parameters

cartintegerrequired
The cart id.

Possible refusals

guest_cart409
It is a guest's cart: there is no account to notify.
empty_cart409
The cart has no items anymore.
recently_notified429
The customer was already reminded in the last 24 hours. retry_after says how many seconds to wait.
curl -X POST "https://sellitex.com/api/v1/abandoned-carts/981/notify" \
  -H "Authorization: Bearer sk_live_..." \
  -H "Accept: application/json"
Response202
{
  "notified": true
}

Delete a cart

DELETE/api/v1/abandoned-carts/{cart}Abilityabandoned-carts.write
Deletes the cart and its items.

Path parameters

cartintegerrequired
The cart id.
curl -X DELETE "https://sellitex.com/api/v1/abandoned-carts/981" \
  -H "Authorization: Bearer sk_live_..." \
  -H "Accept: application/json"
Response204
(no body)

The object

The fields this resource's endpoints return. Money is an integer in cents and dates are ISO 8601, in UTC.

idinteger
The cart identifier.
is_guestboolean
true for a guest's cart.
customerobject|null
id, name and email of the account that owns the cart, or null.
currencystring
The store's currency.
subtotalinteger
Sum of the items at current prices, in cents.
item_countinteger
How many lines the cart has.
itemsarray
Product, variant and quantity of each line.
created_atstring
When the cart was created.
updated_atstring
The last activity on the cart.