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

# Déclarations URSSAF

Les outils de déclaration permettent d'estimer et de déclarer votre chiffre d'affaires à l'URSSAF, et de payer les cotisations sociales directement depuis un assistant IA.

{% hint style="warning" %}
Ces outils effectuent de **vraies actions** auprès de l'URSSAF. L'utilisateur doit avoir un mandat URSSAF actif autorisant Abby à déclarer et payer en son nom.
{% endhint %}

## `get-turnover-estimations`

Récupère les estimations de chiffre d'affaires et de cotisations pour la période de déclaration en cours, basées sur les factures enregistrées dans Abby.

**Paramètres**

| Paramètre | Type   | Requis | Description                                        |
| --------- | ------ | ------ | -------------------------------------------------- |
| `period`  | string | Non    | Période de déclaration (ex : `2025-Q1`, `2025-01`) |

**Réponse**

```json
{
  "success": true,
  "estimations": {
    "period": "2025-Q1",
    "turnover": 450000,
    "contributions": 99000,
    "details": {
      "servicesBIC": 0,
      "servicesBNC": 450000,
      "sales": 0
    }
  }
}
```

{% hint style="info" %}
Les montants sont en **centimes**. Le champ `contributions` est une estimation des cotisations basée sur les taux en vigueur.
{% endhint %}

***

## `complete-urssaf-declaration`

Complète la déclaration URSSAF pour la période en cours. Fonctionne en deux étapes :

1. **Aperçu** (`execute: false`) — affiche un résumé de la déclaration sans la soumettre
2. **Exécution** (`execute: true`) — soumet réellement la déclaration à l'URSSAF

**Paramètres**

| Paramètre  | Type    | Requis | Description                                                               |
| ---------- | ------- | ------ | ------------------------------------------------------------------------- |
| `turnover` | number  | Oui    | Chiffre d'affaires à déclarer en **centimes**                             |
| `execute`  | boolean | Oui    | `false` pour un aperçu, `true` pour soumettre                             |
| `pay`      | boolean | Non    | `true` pour payer les cotisations après la déclaration (défaut : `false`) |

### Étape 1 : Aperçu

```json
// Appel
{ "turnover": 450000, "execute": false }

// Réponse
{
  "success": true,
  "preview": true,
  "declaration": {
    "period": "2025-Q1",
    "turnover": 450000,
    "contributions": 99000,
    "breakdown": {
      "maladie": 4500,
      "retraite": 40500,
      "invalidite": 5850,
      "csg": 48150
    }
  }
}
```

### Étape 2 : Exécution

```json
// Appel
{ "turnover": 450000, "execute": true, "pay": true }

// Réponse
{
  "success": true,
  "preview": false,
  "declaration": {
    "period": "2025-Q1",
    "turnover": 450000,
    "contributions": 99000,
    "status": "submitted",
    "paymentStatus": "paid"
  }
}
```

{% hint style="danger" %}
Avec `execute: true`, la déclaration est **réellement soumise** à l'URSSAF. Cette action est irréversible.
{% endhint %}

***

## Scopes requis

| Outil                         | Scope               |
| ----------------------------- | ------------------- |
| `get-turnover-estimations`    | `declaration:read`  |
| `complete-urssaf-declaration` | `declaration:write` |


---

# 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.abby.fr/mcp/declarations-urssaf.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.
