curl --location 'https://gateway.erpconnector.ca/api/Entity/WorkOrder' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
"ExpectedDate": "2025-09-18T09:06:00", // Champ optionnel, Colonne « Promis le », si n'\''est pas instancié, alors la date inscrite sera la date du Post plus 1 heure
/*La section client ci-dessous doit provenir d'\''un Get Customer de la compagnie Acomba*/
"CustomerId" : "1234", // FicheClient.NoUniqueSystemeSource
"CustomerNumber": "BOUTIQUEPSPORT",// FicheClient.NoClient
"CustomerName": "BOUTIQUE SPORT", // FicheClient.NomClient
"CustomerAddressLine": "1234 1re AVENUE", // FicheClient.Adresse
"CustomerCity": "Quebec, Quebec", //FicheClient.Ville
"CustomerCountry": "CA", // FicheClient.Pays
"CustomerPostalCode": "A1B1C1", // FicheClient.CodePostal
"CustomerPhone": "1234567890", // FicheClient.Telephone_Principal.Numero
"CustomerEmail": "jean.nature@boutiquesport.ca", // FicheClient.EmailPrincipal_Adresse
"CustomerContact": "Jean Nature", // FicheClient.NomPersonneContact
"SalesRepId": "8", // FicheClient.NoVendeur_NoUniqueSystemSource
"SalesRepNumber": "3", // FicheClient.NoVendeur
"TechnicianNumber": "5", // Servex -> Get WorkOrderTechnician.Number
"DispatcherNumber": "8", // Servex -> Get WorkOrderDispatcher.Number
"PaymentMethod": "0", // Proviens d'\''Acomba -> Get CompanyInfo.ARDefaultPaymentMode
"ExtendedProperties" : {
"WorkOrderStatus" : 2, // WorkOrderStatus.Number (doit être un int!)
"ReferenceOrderNumber" : "WO-113062", // NoFacture du Post Acomba CustomerOrder
"ProblemNote" : "Hello World" // Champ Problème Servex
},
// Lignes de produits
"ProductLines" : [
{
"ProductId" : "39369", // NoUniqueSystemeSource (CardPos) du Produit Acomba
"ProductNumber" : "985-ZNK-ZNK6026", // Numéro du produit Acomba
"LineDescription" : "ZINK Custom Hunter Duck Call ATM Double Reed", // Description du produit
"ProductCategoryId" : "43", // NoUniqueSystemeSource (CardPos) du groupe de produit Acomba (doit être un int!)
"ProductCategoryNumber" : "985", // Numéro du groupe de produit
"SupplierId" : "279", // NoUniqueSystemSource (CardPos) du fournisseur Acomba
"SupplierNumber" : "ECD8490N", // Numéro du fournisseur
"QuantityInvoiced" : 4, // Quantité facturée
"QuantityOrdered" : 4, // Quantité commandée
"QuantityShipped" : 0, // quantité expédiée
"UnitCost" : 36.34632, // prix coûtant unitaire
"UnitPrice" : 66.6, // prix unitaire
"DiscountPercentage" : 5, // pourcentage de rabais
"SellingPrice" : 63.27, // prix de vente
"TaxAmount" : 12.654, // montant taxe 1
"Tax2Amount" : 25.24473, // montant taxe2
"TotalAmount" : 253.08, // prix totale de la ligne
"ExtendedProperties" : {
"Cost" : 145.38528 // Prix coûtant total de la ligne
}
}
]
}'