> For the complete documentation index, see [llms.txt](https://docs.limio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.limio.com/api/abandoned-baskets-api.md).

# Abandoned Baskets API

Back-office API for listing abandoned checkout baskets — baskets that were started but where the order was never completed. Returns abandoned baskets of any checkout type. Use it for remarketing, abandoned-cart recovery campaigns, and customer behaviour analysis.

## List abandoned baskets

> This API allows you to get a list of abandoned baskets in Limio and filter the results by the date the basket was created.\
> An abandoned basket is one where a basket was started on the Limio checkout but the order was never completed.\
> You can use the Abandoned Baskets API for actions such as:\
> \
> &#x20; \- Obtaining marketing information on customers who have abandoned their checkout.\
> &#x20; \- Gathering information that can be used to remarket to abandoned checkout customers.\
> &#x20; \- Understanding customer behaviour.\
> &#x20; \- Tracking abandoned checkouts over time.\
> &#x20; \- Viewing abandoned checkout items.

```json
{"openapi":"3.1.0","info":{"title":"Limio Commerce API","version":"1.0.0"},"tags":[{"name":"Abandoned Baskets API","description":"Back-office API for listing abandoned checkout baskets — baskets that were started but where the order was never completed. Returns abandoned baskets of any checkout type. Use it for remarketing, abandoned-cart recovery campaigns, and customer behaviour analysis."}],"servers":[{"url":"https://{tenant}/api","description":"Limio environment API","variables":{"tenant":{"default":"your-environment.prod.limio.com","description":"Your Limio environment hostname, e.g. `acme.prod.limio.com` or `acme-sandbox.prod.limio.com`."}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.\n\nObtain a token via the OAuth flow described in [OAuth Bearer Token](https://docs.limio.com/developers/api-documentation/authentication-overview/oauth-bearer-token).\n\nPass the token in the `Authorization` header: `Bearer <token>`"}},"parameters":{"limit":{"in":"query","name":"limit","description":"Maximum number of objects to return. Defaults to 50 if not specified.","schema":{"type":"integer","default":50}},"createdAfter":{"in":"query","name":"createdAfter","description":"Filter items created after the provided ISO date-time string","schema":{"type":"string","format":"date-time"}},"queryMore":{"in":"query","name":"queryMore","description":"Retrieves the next page of results. Use the queryMore returned in the previous response.","schema":{"type":"string"}}},"schemas":{"GetAbandonedCheckoutsResponse":{"type":"object","properties":{"items":{"type":"array","description":"The list of baskets retrieved","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the basket"},"created":{"type":"string","format":"date-time","description":"The date and time the basket was created"},"customerDetails":{"type":"object","description":"Details about the customer or potential customer that abandoned the checkout","properties":{"email":{"type":"string","description":"The value from the checkout form email field, or the user's email if they authenticated"},"firstName":{"type":"string","description":"Customer's first name"},"lastName":{"type":"string","description":"Customer's last name"},"companyName":{"type":"string","description":"Customer's company name"}}},"orderItems":{"type":"array","description":"The list of order items in the basket","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the order item"},"path":{"type":"string","description":"The path of the order item"},"products":{"type":"array","description":"The list of products associated with the order item","items":{"type":"object","properties":{"path":{"type":"string","description":"The path of the product"},"productCode":{"type":"string","description":"The product code"}}}}}}},"customFields":{"type":"object","description":"Custom fields from the order","additionalProperties":true},"tracking":{"type":"object","description":"Tracking data for the basket, including the originating page and tag. The `tag` field can be used to filter baskets by sales channel (e.g. direct, referral, reseller)","properties":{"offers":{"type":"array","description":"List of offer paths being tracked","items":{"type":"string"}},"campaign":{"type":"string","description":"The Limio page path where the checkout was initiated"},"tag":{"type":"string","description":"The tag associated with the checkout entry point, typically reflecting the sales channel"}}},"identities":{"type":"array","description":"The list of identities associated with the basket","items":{"type":"object","properties":{"sub":{"type":"string","description":"The subject identifier"},"iss":{"type":"string","description":"The issuer"},"service":{"type":"string","description":"The service associated with the identity"},"type":{"type":"string","description":"The type of identity"}}}},"entry":{"type":"string","description":"The entry point URL for the basket, including any UTM parameters from the original visit. Useful for preserving campaign attribution in recovery emails"},"completed":{"type":"boolean","description":"Indicates if the basket has been completed"},"recoveryLink":{"type":"string","description":"Recovery link to provide to user to allow them to recover abandoned checkout session"}}}},"queryMore":{"type":"string","description":"Cursor for the next page of results"}}}},"responses":{"401ApplicationResponse":{"description":"Unauthorized: the request lacks valid authentication credentials. Verify your Bearer token or API key is correct and has not expired.","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","description":"The unique identifier of the request"},"code":{"type":"string"},"message":{"type":"string"}}}}}},"502Response":{"description":"Bad Gateway — an upstream service returned an unexpected response. This typically indicates an issue with the request payload (e.g. invalid field values, missing required fields) or a transient infrastructure error. Retry the request, and if the issue persists, verify the request body matches the expected schema.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable error description."}}}}}}}},"paths":{"/checkout/abandoned":{"get":{"description":"This API allows you to get a list of abandoned baskets in Limio and filter the results by the date the basket was created.\nAn abandoned basket is one where a basket was started on the Limio checkout but the order was never completed.\nYou can use the Abandoned Baskets API for actions such as:\n\n  - Obtaining marketing information on customers who have abandoned their checkout.\n  - Gathering information that can be used to remarket to abandoned checkout customers.\n  - Understanding customer behaviour.\n  - Tracking abandoned checkouts over time.\n  - Viewing abandoned checkout items.","operationId":"getAbandonedCheckouts","summary":"List abandoned baskets","tags":["Abandoned Baskets API"],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/createdAfter"},{"$ref":"#/components/parameters/queryMore"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAbandonedCheckoutsResponse"}}}},"401":{"$ref":"#/components/responses/401ApplicationResponse"},"502":{"$ref":"#/components/responses/502Response"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.limio.com/api/abandoned-baskets-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
