POST
/cpro/factures/v1/soumettreCreate and submit invoice
Create and submit an invoice without PDF attachment (SAISIE_API mode). All invoice data is provided in the request body.
Multiple Authentication Required
ALL REQUIREDThis endpoint requires all of the following authentication methods:
Bearer Token
OAuth2 Bearer token
Custom Header
Chorus Pro account credentials
Required Header
cpro-account: base64(login:password)How to authenticate
Include your Bearer token in the Authorization header:
Authorization: Bearer YOUR_API_TOKENYou can obtain your API token from your account dashboard.
How to authenticate
Include the custom header in your request:
cpro-account: base64(login:password)Body Parameters
| Parameter | Required | Description |
|---|---|---|
cadreDeFacturation.codeCadreFacturation Type: string | Required | Invoicing framework code. |
destinataire.codeDestinataire Type: string | Required | Recipient SIRET. |
fournisseur.idFournisseur Type: number | Required | Supplier ID. |
fournisseur.codeCoordonneesBancairesFournisseur Type: number | Required | Bank details code. |
idUtilisateurCourant Type: number | Required | Current user ID. |
lignePoste Type: array | Required | Invoice line items. |
ligneTva Type: array | Required | VAT lines. |
modeDepot Type: string | Required | Deposit mode (must be SAISIE_API). |
montantTotal Type: object | Required | Total amounts. |
references Type: object | Required | Invoice references. |
Example Request Body
{
"cadreDeFacturation": {
"codeCadreFacturation": "A1_FACTURE_FOURNISSEUR"
},
"destinataire": {
"codeDestinataire": "19672337516762"
},
"fournisseur": {
"codeCoordonneesBancairesFournisseur": 144050,
"idFournisseur": 26262962
},
"idUtilisateurCourant": 65336344681929,
"lignePoste": [
{
"lignePosteDenomination": "Licence",
"lignePosteMontantRemiseHT": 0,
"lignePosteMontantUnitaireHT": 16.6667,
"lignePosteNumero": 1,
"lignePosteQuantite": 1,
"lignePosteReference": "votil_licence",
"lignePosteTauxTvaManuel": 20,
"lignePosteUnite": "licence"
},
{
"lignePosteDenomination": "Classes",
"lignePosteMontantRemiseHT": 0,
"lignePosteMontantUnitaireHT": 5.0000,
"lignePosteNumero": 2,
"lignePosteQuantite": 4,
"lignePosteReference": "votil_classe",
"lignePosteTauxTvaManuel": 20,
"lignePosteUnite": "classes"
}
],
"ligneTva": [
{
"ligneTvaMontantBaseHtParTaux": 36.6667,
"ligneTvaMontantTvaParTaux": 7.3333,
"ligneTvaTauxManuel": 20
}
],
"modeDepot": "SAISIE_API",
"montantTotal": {
"montantAPayer": 44,
"montantHtTotal": 36.6667,
"montantRemiseGlobaleTTC": 0,
"montantTVA": 7.3333,
"montantTtcTotal": 44
},
"references": {
"deviseFacture": "EUR",
"modePaiement": "VIREMENT",
"typeFacture": "FACTURE",
"typeTva": "TVA_SUR_ENCAISSEMENT"
}
}Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Required | Content type Default: application/json;charset=utf-8 |
Accept | Required | Expected response type Default: application/json;charset=utf-8 |
Responses
Loading...
Loading code panel...
Loading...