Problème lors de la création d'une facture via l'API REST

Bonjour à tous,

Nous rencontrons actuellement un problème avec la création d’une facture client (customerInvoice) via l’API REST d’Axelor (com.axelor.apps.account.db.Invoice).

Voici le JSON que nous envoyons :
{
« data »: {
« invoice »: {
« partner »: {
« id »: 72,
« @class »: « com.axelor.apps.base.db.Partner »
},
« company »: {
« id »: 1,
« @class »: « com.axelor.apps.base.db.Company »
},
« user »: {
« id »: 5,
« @class »: « com.axelor.auth.db.User »
},
« currency »: {
« id »: 148,
« @class »: « com.axelor.apps.base.db.Currency »
},
« invoiceTypeSelect »: « customerInvoice »,
« statusSelect »: « draft »,
« invoiceLineList »: [
{
« product »: {
« id »: 456,
« @class »: « com.axelor.apps.base.db.Product »
},
« qty »: 1,
« inTaxTotal »: 1000
}
]
}
}
}

Malgré ce format, nous obtenons l’erreur suivante :
{
« status »: -1,
« data »: {
« message »: « invalid request »
}
}

Nous avons également testé avec les annotations @class et sans, en ajustant les headers (X-CSRF-Token, JSESSIONID, Content-Type), mais l’erreur persiste.

Est-ce que quelqu’un pourrait confirmer si un champ est manquant, ou s’il y a un autre format attendu pour l’entité Invoice ?

Merci d’avance pour votre aide !

— Eric
(n8n + Axelor automation project)