Print Friendly, PDF & Email

Submit invoice

DESCRIPTION

The soumettreFacture API allows to submit an invoice to the solution-CPP 2017 by filling-in the data necessary for the constitution of an E1 flow.

ENVIRONMENTS

Production url https://chorus-pro.gouv.fr:5443/service/factures/soumettre
Qualification url https://chorus-pro.gouv.fr:5443/service-qualif/factures/soumettre

SETTINGS

Header parameters

Technical account Varchar Required
Password Varchar Required
Certificate Varchar Required
Content-Type Varchar Required

Full description of API inpout and output parameters

Consult the API appendices API

{
      "modeDepot" : "SAISIE_API",
      "numeroFactureSaisi" : null,

      "destinataire" : { 
            "codeDestinataire" : "22460001500511",
            "codeServiceExecutant" : "DIRINFRA"
      },
      "fournisseur" : { 
            "idFournisseur" : 160,
            "idServiceFournisseur" : 436,
            "codeCoordonneesBancairesFournisseur" : 132
      },
      "cadreDeFacturation" : { 
            "codeCadreFacturation" : "A1_FACTURE_FOURNISSEUR",
            "codeStructureValideur" : null
      },
      "references" : { 
            "deviseFacture" : "EUR",
            "typeFacture" : "FACTURE",
            "typeTva" : "TVA_SUR_DEBIT",
            "motifExonerationTva" : null,
            "numeroMarche" : "VABFM001",
            "numeroBonCommande" : null,
            "numeroFactureOrigine" : null,
            "modePaiement" : "ESPECE"
      },
      "lignePoste" : [ 
                               { 
                                    "lignePosteNumero" : 1,
                                     "lignePosteReference" : "R1",
                                     "lignePosteDenomination" : "D1",
                                     "lignePosteQuantite" : 10,
                                     "lignePosteUnite" : "lot",
                                     "lignePosteMontantUnitaireHT" : 50.000000,
                                     "lignePosteMontantRemiseHT" : null,
                                     "lignePosteTauxTva" : "TVA5",
                                     "lignePosteTauxTvaManuel" : null
                               }
                               ,{
                                     "lignePosteNumero" : 2,
                                     "lignePosteReference" : "R2",
                                    "lignePosteDenomination" : "D2",
                                     "lignePosteQuantite" : 12,
                                     "lignePosteUnite" : "Kg",
                                     "lignePosteMontantUnitaireHT" : 36.000000,
                                     "lignePosteMontantRemiseHT" : null,
                                     "lignePosteTauxTva" : null,
                                     "lignePosteTauxTvaManuel" : 2.1
                               }
                               ,{
                                     "lignePosteNumero" : 3,
                                     "lignePosteReference" : "R3",
                                     "lignePosteDenomination" : "D3",
                                     "lignePosteQuantite" : 16,
                                     "lignePosteUnite" : "lot",
                                     "lignePosteMontantUnitaireHT" : 24.000000,
                                     "lignePosteMontantRemiseHT" : null,
                                     "lignePosteTauxTva" : null,
                                     "lignePosteTauxTvaManuel" : 5
                               }
                               ,{
                                     "lignePosteNumero" : 4,
                                     "lignePosteReference" : "XX",
                                     "lignePosteDenomination" : "XX",
                                     "lignePosteQuantite" : 1,
                                     "lignePosteUnite" : "lot",
                                     "lignePosteMontantUnitaireHT" : 10.000000,
                                     "lignePosteMontantRemiseHT" : null,
                                     "lignePosteTauxTva" : "TVA5",
                                     "lignePosteTauxTvaManuel" : null
                               }
      ],
      "ligneTva" : [ 
                               { 
                                    "ligneTvaTauxManuel" : null,
                                     "ligneTvaTaux" : "TVA5",
                                     "ligneTvaMontantBaseHtParTaux" : 510.000000,
                                     "ligneTvaMontantTvaParTaux" : 102.000000
                               }
                               ,{
                                     "ligneTvaTauxManuel" : 2.1,
                                     "ligneTvaTaux" : null,
                                     "ligneTvaMontantBaseHtParTaux" : 432.000000,
                                     "ligneTvaMontantTvaParTaux" : 9.072000
                               }
                               ,{
                                     "ligneTvaTauxManuel" : 5,
                                     "ligneTvaTaux" : null,
                                     "ligneTvaMontantBaseHtParTaux" : 384.000000,
                                     "ligneTvaMontantTvaParTaux" : 19.200000
                               }
      ],
      "montantTotal" : { 
            "montantHtTotal" : 1326.000000,
            "montantTVA" : 130.272000,
            "montantTtcTotal" : 1406.272000,
            "montantRemiseGlobaleTTC" : 50.000000,
            "motifRemiseGlobaleTTC" : "Geste commercial",
            "montantAPayer" : 1400.000000
      },
      "commentaire" : "Création_VABF_SoumettreFacture"
}
{
   "codeRetour": 0,
   "libelle": "CODE PAR DEFAUT",
   "dateDepot": "2016-05-24",
   "identifiantFactureCPP": 504114,
   "identifiantStructure": "42668006200012",
   "numeroFacture": "20160000000000000222",
   "statutFacture": "DEPOSEE"
}
Back To Top