1. 3.4 - Customer Invoice (Facture client)
ERPConnector
ERPConnector - Public doc
  • ERPConnector - Public doc
  • 1 - Informations générales
    • 1.1 - Survol
    • 1.2 - CodeLicence, Company, CléSecrete
    • 1.3 - Authentification
    • 1.4 - Versions de l'API
      • GetBasicApiInfo
    • 1.5 - Header + Query Param
      • Header - COMPANY_CODE
      • Header - RETURN_FULL_PAYLOAD
      • PUT vs POST
      • Query - $select
      • Pagination dans l'API
  • 2 - Accounting (GL)
    • 2.1 - GL Account
      • GL Account
    • 2.2 - GL Project
      • GLProject
      • GLProjectBalance
      • Create GLProjet
    • 2.3 - GL Journal Entry
      • GL Journal Entry
      • GL Journal Entry (Sage50)
  • 3 - Account Receivable (Customers)
    • 3.1 - Customer (client)
      • Customer
      • Create customer
      • Modify Customer
    • 3.2 - Customer Group
      • CustomerGroup
    • 3.3 - Customer Order (Commandes cliente)
      • CustomerOrder
      • CustomerOrder
      • CustomerOrder
    • 3.4 - Customer Invoice (Facture client)
      • CustomerInvoices
        GET
      • Create CustomerInvoice
        POST
      • Create CustomerInvoice (AR Invoice)
        POST
    • 3.5 - SalesRep (Vendeurs)
      • SalesRep
    • 3.6 - Territory (Territoires)
      • Territory
    • 3.7 - PaymentMode (Mode de paiement)
      • CustomerPaymentMode
    • 3.8 - Customer Project
      • Project
    • 3.9 - Customer Bid (Soumission cliente)
      • Get CustomerBid
      • Create CustomerBid
    • 3.10 - Customer Invoice Payment (Règlement facture cliente)
      • Get CustomerInvoicePayment
      • Create CustomerInvoicePayment (Acomba)
    • 3.11 - Customer Service Contract (Contrat de service)
      • Get CustomerInvoicePayment Copy
    • 3.12 - CustomerARInvoices (Transaction GL Cliente)
      • Extract InvoiceAR
      • Create CustomerInvoice (AR Invoice) Copy
  • 4 - Account Payable (Compte Payable/fournisseur)
    • 4.1 - Supplier (Fournisseur)
      • Supplier
      • Create Supplier
      • Modify Supplier
    • 4.2 - Supplier Invoice (Facture Fournisseur)
      • SupplierInvoice
      • Supplier Invoice
    • 4.3 - Supplier Order (Achat fournisseur)
      • SupplierOrder
      • Create SupplierOrder
    • 4.4 - Supplier Invoice Payment (Paiement Fournisseur)
      • SupplierInvoicePayment
      • SupplierInvoicePayment (Avantage)
    • 4.5 - Product Supplier (Produit-Fournisseur)
      • Get Supplier Products
      • Create SupplierProduct
      • Modify SupplierProduct
    • 4.6 - SupplierOrderReceipt (Réception Achat)
      • SupplierOrderReceipt (Réception Acomba)
  • 5 - Inventory (Produits)
    • 5.1 - Product (Produit)
      • Product - Get METADATA information
      • Product
      • Product Creation
      • Product Modif
    • 5.2 - ProductGroup (Groupe de produit)
      • ProductGroup
    • 5.3 - Product Trail
      • ProductTrail
      • Create ProductTrail
    • 5.4 - Product Serial
      • Get - Product Serial (Acomba)
  • 6 - HR (Ressource Humaine)
    • 6.1 - Employee
      • Employee
    • 6.2 - Employee Payroll
      • Employee Payroll
  • 7 - ERPConnectorTask (Direct)
    • GET SupplierOrder (achat) ErpConnectorTask
    • Extract Customer
    • Extract Customer
    • GET Supplier - ErpConnectorTask
  • 8 - Miscellaneous
    • 8.1 - Taxes
      • Tax
      • TaxGroup
    • 8.2 - Company Info
      • CompanyInfo
    • 8.3 WorkOrder (Servicentre / Servex)
      • 8.3.1 WorkOrder Sub Entities (Servex)
        • Get WorkOrderStatus (Servex)
        • Get WorkOrderTechnician (Servex)
        • Get WorkOrderDispatcher (Servex)
      • Get WorkOrder
      • Post WorkOrder (Servex)
    • 8.4 Equipment (Servicentre)
      • Get Equipment
    • 8.5 Activity (Avantage)
      • Get Activity
    • 8.6 FinancialTransaction (QBO)
      • Read FinancialTransaction (QBO - BankDeposit)
      • Create FinancialTransaction (QBO - BankDeposit)
  • 99 - System
    • Quickbooks Online
      • QuickBooks - GetRefreshQBOAccessTokens
      • QuickBooks - Get QBO GetQBOConnexionInfo
      • QuickBooks - Auth - ConnectToQBORedirect
      • QuickBooks - ExecuteRawSQL
    • Relational Database
      • Relational Db - ExecuteRawSQL
    • Acomba
      • Test ERP Connection
  1. 3.4 - Customer Invoice (Facture client)

Create CustomerInvoice

POST
https://gateway.erpconnector.ca/api/Entity/CustomerInvoice

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Header Params

Body Params application/json

Examples

Responses

🟢200
application/json
Bodyapplication/json

⚪0
🟠400
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://gateway.erpconnector.ca/api/Entity/CustomerInvoice' \
--header 'SIMULATE_ONLY: TRUE' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
    "Facture":{
        "TypeDoc": "FACTURES", //Type doc est important! : '\''FACTURES'\'','\''COMMANDES'\'','\''SOUMISSIONS'\'','\''ACHATS'\''.
        "Référence": "From OERP", 
        "Description": "From OERP",
        "DateFacture": "2024-04-24", //La date de la commande
        
        //les informations sur le clients attaché à la commande
        "InfoClientFacturerA": { 
            "NoClient": "0Comptoir"
        },

        /*****************************************************/
        //Array des LIGNES de la commandes à créer.  Comme toute les autres transactions, il y a plusieurs
        "LigneFacture": [
            {   //la version ici est ultra simple : NoProduit et Qté.  La description et toute autre info sera ramassé dans Acomba.
                "QteFacture": 4,
                "strNoProduit": "CAThermo"

            },
            {  //une simple ligne de commentaire
                "DescriptionLigne":"Il est aussi possible de simplement pousser une ligne de texte"
            },
            { //une ligne d'\''espace vide
                "DescriptionLigne":""
            }, 
            { //ici, on va facturer un GROUPE DE PRODUIT Directement, sans utiliser un Code de produit
                "QteFacture": 1,
                "QteCommande": 1,
                "strNoGroupeProduit": "115", 
                "DescriptionLigne": "Il est aussi possible de ne facturer que sur le Groupe de produit",
                "PrixFinal": 26.09
            },
            { //la ligne ici montre un exemple où l'\''on assigne aussi le champ QteFacture.  Cela permet de marquer que la ligne a été "Expédié" au client.  Aucun mouvement d'\''inventaire n'\''est généré avec cela.
                "QteCommande":3,
                "QteFacture":3, //donc reste 0 BO
                "strNoProduit":"SCIE-10"
            }
        ] 
        /*****************************************************/
    },
    
    "ListeModePaiements":null,

    //ReturnFullTransaction : peut être omit.  demande au Connecteur de nous retourner 100% du payload de la transaction créée.  inutile si vous n'\''avez besion que du # de facture!
    "ReturnFullTransaction":true
}'
Response Response Example
200 - Creation facture simple
{
    "OrigRemoteTaskID": 129014,
    "ResultType": "Success",
    "ErrorType": "None",
    "ResultMessage": "Tâche terminée avec succès",
    "ResultPayload": {
        "Message": "OK - Facture créée sous le numéro : 10044",
        "NoFacture": "10044",
        "ResultatPaiement": "OK - Aucun paiement appliqué",
        "RecCardPos": "115",
        "SousTotal": 1039.06,
        "Total": 1195.17,
        "FullTransaction": {
            "NoFacture": "10044",
            "NoUniqueSystemeSource": "115",
            "TypeDoc": 1,
            "Référence": "From OERP",
            "NoAutorisation": null,
            "Description": "From OERP",
            "DateFacture": "2024-04-24T00:00:00",
            "CodeUsagerCreation": "Supervisor",
            "NoProjet": null,
            "NoProjet_NoUniqueSystemeSource": null,
            "Fiche_DerniereModification": "2024-05-23T09:36:14",
            "NbLignes_DocumentOriginal": 0,
            "ListeDesTaxes": [
                {
                    "NoUniqueSystemeSource": "1",
                    "Fiche_DerniereModification": null,
                    "Taxe_Numero": "T.P.S. 100%",
                    "Taxe_Description": "Taxe sur les produits et services",
                    "MontantTaxe": 72.73,
                    "Taxe_NumeroLegalGouv": "RT100393939933",
                    "TauxDeLaTaxe": 0,
                    "NoCompteGL_PayedTax": "2355",
                    "NoCompteGL_PerceivedTax": "2350"
                },
                {
                    "NoUniqueSystemeSource": "3",
                    "Fiche_DerniereModification": null,
                    "Taxe_Numero": "T.V.Q. 100%",
                    "Taxe_Description": "Taxe de Vente Québec",
                    "MontantTaxe": 83.38,
                    "Taxe_NumeroLegalGouv": "TQ1000292929922",
                    "TauxDeLaTaxe": 0,
                    "NoCompteGL_PayedTax": "2365",
                    "NoCompteGL_PerceivedTax": "2360"
                }
            ],
            "ctrl_Update_AncienNombreLigne": 5,
            "ctrl_InfoCreation_NomUsagerWindows": null,
            "ctrl_InfoCreation_NomLogiciel": null,
            "ctrl_InfoCreation_NomPoste": null,
            "ctrl_NoDocumentLocal": null,
            "SousTypeTransaction": "Facture",
            "CompteRecevable_No": "0",
            "EstActif": true,
            "NoteGlobaleExterne01": null,
            "EstInversee": false,
            "RaisonInversement": null,
            "ReferenceInversement": null,
            "OptionsTaxesForcees": {
                "InfoTaxe_MontantForce_ErreurSiNonMatch": false,
                "InfoTaxe_ForcerMontantTaxes": false,
                "InfoTaxe_MontantForce_TotalVoulu": 0,
                "InfoTaxe_ListTaxesForcees": []
            },
            "InfoClientFacturerA": {
                "NoClient": "0Comptoir",
                "NomClient": "Ventes au comptoir",
                "FicheNomComplet": "0Comptoir - Ventes au comptoir",
                "FicheChampsRecherche": "0Comptoir Ventes au comptoir  ",
                "NoUniqueSystemeSource": "1",
                "ClientFacturation_No": null,
                "ClientFacturation_NoUniqueSystemeSource": null,
                "CompteRecevable": null,
                "DescriptionAdresse": null,
                "Adresse": "",
                "Adresse2": null,
                "CleTri1": null,
                "CodePostal": "",
                "Ville": "",
                "MRC": null,
                "Province": null,
                "Pays": "CA",
                "InfoLivraisonSpeciale1": null,
                "InfoLivraisonSpeciale2": null,
                "NomPersonneContact": "",
                "DateOuvertureDossier": null,
                "NoVendeur": null,
                "NoVendeur_NoUniqueSystemSource": null,
                "Vendeur_NomComplet": null,
                "Territoire": null,
                "Territoire_NoUniqueSystemeSource": null,
                "Territoire_NomComplet": null,
                "NoModeExpeditionDefaut": null,
                "NoModeExpeditionDefaut_NoUniqueSystemeSource": null,
                "LangueClient": null,
                "EmailPrincipal_Adresse": null,
                "EmailPrincipal_Desc": null,
                "EmailPrincipal_EstEtatDeCompte": false,
                "EmailPrincipal_EstEmailFacturation": false,
                "EmailPrincipal_EstPublicite": false,
                "Email2_Adresse": null,
                "Email2_Desc": null,
                "Email2_EstEtatDeCompte": false,
                "Email2_EstEmailFacturation": false,
                "Email2_EstPublicite": false,
                "Email3_Adresse": null,
                "Email3_Desc": null,
                "Email3_EstEtatDeCompte": false,
                "Email3_EstEmailFacturation": false,
                "Email3_EstPublicite": false,
                "SiteWeb": null,
                "Bool_ClientComptoir": false,
                "EstActif
Previous
CustomerInvoices
Next
Create CustomerInvoice (AR Invoice)
Built with