curl --location --request PUT 'https://gateway.erpconnector.ca/api/Entity/CustomerInvoice/test' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"Facture":{
"TypeDoc": "FACTURES",
"Référence": "From OERP",
"Description": "From OERP",
"DateFacture": "2022-06-06",
"InfoClientFacturerA": {
"NoClient": "2042939312"
},
"LigneFacture": [
{
"strNoProduit": "YNG-098",
"QteFacture": 1,
"strNoGroupeProduit": "2",
"DescriptionLigne": "Massage 1h00 1h",
"PrixFinal": 26.09
}
],
"OptionsSpecialesFacture": {
"InfoTaxe_ForcerMontantTaxes": true,
"InfoTaxe_MontantForce_TotalVoulu": 30.00,
"InfoTaxe_MontantForce_ErreurSiNonMatch":true,
"InfoTaxe_ListTaxesForcees": [
{
"TaxeNumero": "T.P.S.",
"MontantTaxe": 1.31
},
{
"TaxeNumero": "T.V.Q.",
"MontantTaxe": 2.60
}
]
}
},
"ListeModePaiements":null,
"ReturnFullTransaction":true
}'