create_invoice
Crée une facture en BROUILLON (non envoyée). Fournir le client (nom + SIREN si nouveau), les lignes (désignation, quantité, prix unitaire HT, TVA %). Ne PAS envoyer sans confirmation explicite de l’utilisateur.
- Permission requise :
invoice:create - Type : écriture
Paramètres
| Nom | Type | Requis | Contrainte | Description |
|---|---|---|---|---|
client | string | oui | min 1 car. | — |
siren | string | non | — | — |
email | string | non | — | |
lines | array | oui | — | — |
dueDays | integer | non | min 0, max 365 | — |
Exemple d'appel
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "create_invoice",
"arguments": {
"client": "<string>",
"siren": "<string>",
"email": "<string>",
"lines": "<array>",
"dueDays": "<integer>"
}
}
} Exemple de réponse
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "{ ...résultat JSON... }"
}
]
}
}