1. 3.1 - Customer (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
        GET
      • Create customer
        POST
      • Modify Customer
        PUT
    • 3.2 - Customer Group
      • CustomerGroup
    • 3.3 - Customer Order (Commandes cliente)
      • CustomerOrder
      • CustomerOrder
      • CustomerOrder
    • 3.4 - Customer Invoice (Facture client)
      • CustomerInvoices
      • Create CustomerInvoice
      • Create CustomerInvoice (AR Invoice)
    • 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.1 - Customer (client)

Create customer

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

API Endpoint: Create Customer#

This endpoint allows you to create a new customer in the system. By sending a POST request to {{OnlineERP_URL}}/Entity/Customer, you can provide the necessary details for the customer you wish to add.

Request Body Parameters#

The request requires a JSON payload with the following parameters:
NoClient (integer): Unique identifier for the client.
NomClient (string): Name of the client.
CleTri1 (string): Sorting key for the client.
NoVendeur (integer): Identifier for the seller associated with the client.
Territoire (integer): Territory identifier for the client.
NoModeExpeditionDefaut (integer): Default shipping method identifier.
LangueClient (integer): Language preference for the client.
Bool_ClientComptoir (boolean): Indicates if the client is a counter client.
EstActif (boolean): Indicates if the client is active.
MargeCredit_MontantMarge (integer): Credit margin amount.
MargeCredit_TypeMarge (integer): Type of credit margin.
CompteRecevable_No (string): Receivable account number.
NoGroupeTaxe (string): Tax group identifier.
NiveauPrixClient (integer): Price level for the client.
TermeDePaiement_No (integer): Payment term identifier.

Response Structure#

Upon successful creation of a customer, the API will return a JSON response containing the following fields:
NoClient (string): The unique identifier of the created client.
NomClient (string): The name of the client.
FicheNomComplet (string): Full name record of the client.
FicheChampsRecherche (string): Search fields record.
NoUniqueSystemeSource (string): Unique system source number.
ClientFacturation_NoUniqueSystemeSource (string): Billing client unique system source number.
CleTri1 (string): Sorting key.
DateOuvertureDossier (string): Date of file opening.
NoVendeur (string): Seller identifier.
Territoire (string): Territory identifier.
LangueClient (string): Language preference.
Bool_ClientComptoir (boolean): Indicates if the client is a counter client.
EstActif (boolean): Indicates if the client is active.
MargeCredit_MontantMarge (integer): Credit margin amount.
MargeCredit_TypeMarge (integer): Type of credit margin.
NiveauPrixClient (integer): Client price level.
TermeDePaiement_No (string): Payment term identifier.
InfoAgeDesComptes (object): Contains account aging information including cycle days and amounts.
Telephone_Principal (object): Contains primary telephone type.
CommentairesClients (string): Client comments.
This API is essential for managing client information and ensuring that customer records are accurately maintained in the system.

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

🟠400
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://gateway.erpconnector.ca/api/Entity/Customer' \
--header 'Accept: application/problem+json' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{ 
}'
Response Response Example
200 - Created Customer
{
    "NoClient": "0Comptoir3",
    "NomClient": "Ventes au comptoir",
    "FicheNomComplet": "0Comptoir3 - Ventes au comptoir",
    "FicheChampsRecherche": "0Comptoir3 Ventes au comptoir  Comptoir",
    "NoUniqueSystemeSource": "29",
    "ClientFacturation_NoUniqueSystemeSource": "0",
    "CleTri1": "Comptoir",
    "DateOuvertureDossier": "2004-01-01T00:00:00",
    "NoVendeur": "9999",
    "NoVendeur_NoUniqueSystemSource": "1",
    "Territoire": "9999",
    "Territoire_NoUniqueSystemeSource": "1",
    "NoModeExpeditionDefaut": "0",
    "NoModeExpeditionDefaut_NoUniqueSystemeSource": "0",
    "LangueClient": "12",
    "EmailPrincipal_EstEtatDeCompte": false,
    "EmailPrincipal_EstEmailFacturation": false,
    "EmailPrincipal_EstPublicite": false,
    "Email2_EstEtatDeCompte": false,
    "Email2_EstEmailFacturation": false,
    "Email2_EstPublicite": false,
    "Email3_EstEtatDeCompte": false,
    "Email3_EstEmailFacturation": false,
    "Email3_EstPublicite": false,
    "Bool_ClientComptoir": true,
    "EstActif": true,
    "Fiche_DerniereModification": "2006-03-23T11:52:04",
    "MargeCredit_MontantMarge": 0,
    "MargeCredit_TypeMarge": 0,
    "CompteRecevable_No": "0",
    "NoGroupeTaxe": "TPS & TVQ",
    "NoGroupeTaxe_NoUniqueSystemeSource": "2",
    "PPA_Actif": false,
    "Projet_NoUniqueSystemeSource": "0",
    "DateRefference1": "1899-12-30T00:00:00",
    "DateRefference2": "1899-12-30T00:00:00",
    "ExtendedProperties": {},
    "InfoAgeDesComptes": {
        "NbJoursCycle": 0,
        "NBCycle": 5,
        "DateReference": "2099-01-01T00:00:00",
        "DateCalcul": "1900-01-01T00:00:00",
        "MontantDu_Cycle1_Courant": 0,
        "MontantDu_Cycle2": 0,
        "MontantDu_Cycle3": 0,
        "MontantDu_Cycle4": 0,
        "MontantDu_Cycle5": 0,
        "MontantDu_Cycle6": 0,
        "MontantDu_Cycle7": 0,
        "MontantDu_Cycle8": 0,
        "MontantDu_Cycle9": 0,
        "MontantDu_Cycle10": 0,
        "MontantDu_Cycle11": 0,
        "MontantDu_Cycle12": 0,
        "MontantDu_Total": 0,
        "ListeFactureNonReglee": []
    },
    "NiveauPrixClient": 0,
    "TermeDePaiement_No": "0",
    "TermeDePaiement_NoUniqueSystemeSource": "0",
    "ListeTelephonique": [],
    "Telephone_Principal": {
        "TypeTel": 0
    },
    "Telephone_Telecopieur": {
        "TypeTel": 0
    },
    "Telephone_3": {
        "TypeTel": 0
    },
    "Telephone_4": {
        "TypeTel": 0
    },
    "ListeTaxeException": [],
    "CommentairesClients": ""
}
Previous
Customer
Next
Modify Customer
Built with