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

# Quick Start

{% hint style="info" %}
**Fique por dentro:** A nossa API de integração irá permitir ter acesso aos dados de suas vendas, seus produtos entre outros.\
Essas informações poderão ser utilizadas para a integração a outros serviços.
{% endhint %}

## Segurança

Suas solicitações de API são autenticadas usando chaves de API. Qualquer solicitação que não inclua uma chave de API retornará um erro.

Você pode visualizar sua chave de API no seu painel a qualquer momento.

<figure><img src="/files/pna9jjkYUJvUjNjAO2Ob" alt=""><figcaption><p>Configuração de api de integração</p></figcaption></figure>

## Faça seu primeiro requisição

Para fazer sua primeira solicitação, envie uma requisição autenticada ao endpoint desejado. \
Lembre-se de incluir sua chave de acesso a API ao cabeçalho da requisição 'X-api-key'

## Recuperar Vendas.

<mark style="color:blue;">`GET`</mark> `https://api.celetus.com/api/sales`

{% tabs %}
{% tab title="200 Request successfully" %}

```javascript
{
  "id": "string",
  "totalCheckout": 0,
  "status": "string",
  "totalProducts": 0,
  "totalFrete": 0,
  "discount": 0,
  "createdAt": "2024-06-25T17:25:43.413Z",
  "updatedAt": "2024-06-25T17:25:43.413Z",
  "customer": {
    "id": "string",
    "name": "string",
    "document": "string",
    "email": "string",
    "phone": "string",
    "address": "string",
    "number": "string",
    "zipCode": "string",
    "complement": "string",
    "neighborhood": "string",
    "city": "string",
    "state": "string",
    "country": "string"
  },
  "products": [
    {
      "quantity": 0,
      "unitaryValue": 0,
      "name": "string",
      "id": "string",
      "productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    }
  ]
}
```

{% endtab %}

{% tab title="404 Not Found" %}

```json
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "additionalProp1": "string",
  "additionalProp2": "string",
  "additionalProp3": "string"
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
**Fique por dentro:** Use  a documentação do [swagger](https://api.celetus.com/api/swagger/index.html) para testar sua api
{% endhint %}


---

# 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 dynamically by asking a question.

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

```
GET https://docs.celetus.com/quick-start.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
