> For the complete documentation index, see [llms.txt](https://doc.simax.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.simax.fr/fonctionnelle/connecteurs-e-commerce/prestashop/configuration-au-demarrage/les-etats-de-commande.md). Agents can also search and read this documentation through its [MCP server](https://doc.simax.fr/~gitbook/mcp).

# Les états de commande

Configuration des états de commande

**Simax** communique les **états de commande** à **PrestaShop** afin de **mettre à jour les commandes** dans Prestashop en fonction de leur **avancement dans Simax**.

Pour cela, il est nécessaire de **mapper les états de commande Simax** avec ceux de **Prestashop** :

1. Accédez à la **liste des états de commande** dans **Simax** :\
   **Vente > Commande > Les états commande**
2. Pour chaque **état de commande**, cliquez sur \[\[ **Modifier** ]] et :
   * Rattachez l’**état Prestashop** correspondant via le **bon ID**
   * Indiquez si cet état correspond à un **paiement validé ou pas**

Cela permet à **Simax** de synchroniser correctement l’**avancement des commandes** avec **Prestashop**.

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2FCRmIXGSOh1GhcSBsqN4D%2FCapture373.PNG?alt=media&amp;token=f7febbe9-c05f-4566-9ac9-16bc54916ba9" alt=""><figcaption></figcaption></figure>

Voici un **mapping proposé** entre les **états de commande par défaut** de **Simax** et ceux **par défaut de Prestashop** :

<table data-header-hidden><thead><tr><th valign="top"></th><th width="280.2000732421875" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top"> <strong>État commande Simax</strong></td><td valign="top"><strong>ID État commande Prestashop</strong></td><td valign="top"><strong>Ok paiement</strong></td></tr><tr><td valign="top"><mark style="color:$primary;">Annulée (code 1)(à créer dans Simax)</mark></td><td valign="top"> 6</td><td valign="top"><mark style="color:$warning;">Non</mark></td></tr><tr><td valign="top">10 – Commande passée</td><td valign="top"> <mark style="color:purple;">18 - Commande passé (à créer dans Prestashop)</mark></td><td valign="top"><mark style="color:$success;">Oui</mark></td></tr><tr><td valign="top">30 – Attente paiement</td><td valign="top">1, 8, 10, 12, 14, 16</td><td valign="top"><mark style="color:$warning;">Non</mark></td></tr><tr><td valign="top">40 – Commande validée</td><td valign="top">2, 9, 11, 13</td><td valign="top"><mark style="color:$success;">Oui</mark></td></tr><tr><td valign="top">45 – AR de commande</td><td valign="top"><mark style="color:purple;">19 - AR de commande (à créer)</mark></td><td valign="top"><mark style="color:$success;">Oui</mark></td></tr><tr><td valign="top">50 – Commande fournisseur à passer</td><td valign="top"><mark style="color:purple;">20 - Commande fournisseur à passer (à créer)</mark></td><td valign="top"><mark style="color:$success;">Oui</mark></td></tr><tr><td valign="top">60 – Commande en cours</td><td valign="top"><mark style="color:purple;">21 - Commande en cours (à créer)</mark></td><td valign="top"><mark style="color:$success;">Oui</mark></td></tr><tr><td valign="top">65 – Reliquat</td><td valign="top"><mark style="color:purple;">22 - Reliquat (à créer)</mark></td><td valign="top"><mark style="color:$success;">Oui</mark></td></tr><tr><td valign="top">70 – Commande à préparer</td><td valign="top">3</td><td valign="top"><mark style="color:$success;">Oui</mark></td></tr><tr><td valign="top">80 – Commande à livrer</td><td valign="top"><mark style="color:purple;">23 - Commande à livrer (à créer)</mark></td><td valign="top"><mark style="color:$success;">Oui</mark></td></tr><tr><td valign="top">90 – Commande livrée</td><td valign="top">5</td><td valign="top"><mark style="color:$success;">Oui</mark></td></tr><tr><td valign="top">99 – Commande facturée</td><td valign="top"><mark style="color:purple;">24 - Commande facturée (à créer)</mark></td><td valign="top"><mark style="color:$success;">Oui</mark></td></tr></tbody></table>

{% hint style="info" %}
Ce **mapping** constitue une **proposition** pour les **états de commande par défaut** entre **Simax** et **PrestaShop**.\
Pour tout autre **état de commande**, un **mapping spécifique** devra être défini.

Les **états de commande** dans **Prestashop** se trouvent dans :\
**Paramètres de la boutique > Commandes > \[États de commandes]**.
{% endhint %}

{% hint style="danger" %}
Le **mapping des états de commande** est **primordial** pour assurer le **bon fonctionnement** du **connecteur**.
{% 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 by asking a question.

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

```
GET https://doc.simax.fr/fonctionnelle/connecteurs-e-commerce/prestashop/configuration-au-demarrage/les-etats-de-commande.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.
