# Carts Guru API

## How to integrate Carts Guru

This document explains the different methods to integrate your website with Carts Guru. The idea is to “push” your shopping carts and orders to our retargeting system.. This documentation suggests the best models to establish a secured connection..

### [Carts Tracking](broken://pages/-L8tMxQM8ZNYLXK-khks#carts)

Use our API to send **carts** from checkout&#x20;

### [Orders Tracking](broken://pages/-L8tTSekQamVi8KmIdeg)

Use our API to send **orders** on confirmation page

### HOW TO SEND DATA

Each request should be authenticated using authentication key. It should be sent using the **HTTP header: x-auth-key.**\
The data structure is JSON based, for both resulting data and data included in the body.

All fields are required unless specified otherwise.

We perform automatically some data validation. In case of validation error,  the response will have his status code equal to 500 and you can find the details of the error in the body.

Though our API is fast to answer, we advise you to set a timeout on the calls to prevent issues.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cartsguru.gitbook.io/custom-integration/carts-guru-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
