curl --location 'https://gateway.erpconnector.ca/api/Entity/GLJournalEntry' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"DateEcriture": "2025-07-01",
"DescriptionÉcriture": "Payer cartes de crédit",
// Numéro de facture associé à l'\''écriture
"NoDocumentSource" : "Test",
/*Détails associés à l'\''entête*/
"LignesÉcriture": [
/*1re ligne de détails de l'\''écriture*/
{
"Montant_Écriture": 3,
"DescriptionLignes" : "compte payable",
"ComptesGL": {
/*Le numéro du Compte GL associé à l'\''écriture*/
"NoCompteGL": "21050"
}
},
{
"Montant_Écriture": 1.5,
"DescriptionLignes" : "Compte actif1",
"ComptesGL": {
"NoCompteGL": "10800"
}
},
{
"Montant_Écriture": 1.5,
"DescriptionLignes" : "Compte actif2",
"ComptesGL": {
"NoCompteGL": "10830"
}
}
]
}'