API Acomba — paiements fournisseurs
Lire et créer les paiements fournisseurs de Acomba depuis votre application, par une simple requête HTTP : pas de SDK, pas d’ODBC. Conexio relaie l’appel vers Acomba et vous répond en JSON — entité SupplierInvoicePayment.
✓ Lire (GET)✓ Créer (POST)✗ Modifier (PUT)
Lire les paiements fournisseurs
Une requête GET sur /api/Entity/SupplierInvoicePayment, avec les modificateurs $select, $filter et $top. L’en-tête ALLOW_PAGINATION renvoie { Data, ResultsCount, TotalCount }.
GET https://gateway.conexio.dev/api/Entity/SupplierInvoicePayment?$select=DatePaiement,TotalPaiement,TotalEscompte,Date_FicheDerniereModification&$top=10
Authorization: Basic base64(CODE_LICENCE:CLE_API)
COMPANY_CODE: VOTRE_COMPAGNIE
ALLOW_PAGINATION: truecurl 'https://gateway.conexio.dev/api/Entity/SupplierInvoicePayment?$select=DatePaiement,TotalPaiement,TotalEscompte,Date_FicheDerniereModification&$top=10' \
-u "$CONEXIO_LICENCE:$CONEXIO_API_KEY" \
-H 'COMPANY_CODE: VOTRE_COMPAGNIE' \
-H 'ALLOW_PAGINATION: true'const response = await fetch("https://gateway.conexio.dev/api/Entity/SupplierInvoicePayment?$select=DatePaiement,TotalPaiement,TotalEscompte,Date_FicheDerniereModification&$top=10", {
headers: {
Authorization: "Basic " + btoa(`${CODE_LICENCE}:${CLE_API}`),
COMPANY_CODE: "VOTRE_COMPAGNIE",
ALLOW_PAGINATION: "true",
},
})
const { Data, TotalCount } = await response.json()C# et Python
var http = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://gateway.conexio.dev/api/Entity/SupplierInvoicePayment?$select=DatePaiement,TotalPaiement,TotalEscompte,Date_FicheDerniereModification&$top=10");
request.Headers.Authorization = new AuthenticationHeaderValue("Basic",
Convert.ToBase64String(Encoding.UTF8.GetBytes($"{codeLicence}:{cleApi}")));
request.Headers.Add("COMPANY_CODE", "VOTRE_COMPAGNIE");
request.Headers.Add("ALLOW_PAGINATION", "true");
var json = await (await http.SendAsync(request)).Content.ReadAsStringAsync();import requests
response = requests.get(
"https://gateway.conexio.dev/api/Entity/SupplierInvoicePayment?$select=DatePaiement,TotalPaiement,TotalEscompte,Date_FicheDerniereModification&$top=10",
auth=(CODE_LICENCE, CLE_API),
headers={"COMPANY_CODE": "VOTRE_COMPAGNIE", "ALLOW_PAGINATION": "true"},
)
data = response.json()["Data"]Créer des paiements fournisseurs
Un POST sur la même adresse, avec l’élément en JSON (les champs obligatoires sur Acomba) :
POST https://gateway.conexio.dev/api/Entity/SupplierInvoicePayment
Authorization: Basic base64(CODE_LICENCE:CLE_API)
COMPANY_CODE: VOTRE_COMPAGNIE
Content-Type: application/json
{
"Fournisseur_No": "VALEUR",
"TypePaiement": "VALEUR",
"NoCompteGLBanque": "VALEUR",
"TotalPaiement": 100,
"TotalEscompte": 100
}Les champs
| Champ | Lire | Créer | Modifier |
|---|---|---|---|
NoUniqueSystemeSource | ✓ | — | — |
Fournisseur_No requis | ✓ | ✓ | — |
Fournisseur_NoUniqueSystemeSource | ✓ | ✓ | — |
NumeroPaiement | ✓ | ✓ | — |
DatePaiement | ✓ | ✓ | — |
TypePaiement requis | ✓ | ✓ | — |
NoCompteGLBanque requis | — | ✓ | — |
TotalPaiement requis | ✓ | ✓ | — |
TotalEscompte requis | ✓ | ✓ | — |
BankInfo_AccountNumber | ✓ | — | — |
BankInfo_BranchNumber | ✓ | — | — |
BankInfo_InstitutionNumber | ✓ | — | — |
Date_FicheDerniereModification | ✓ | — | — |
Les mêmes paiements fournisseurs, dans les autres logiciels
Même requête, même JSON : seule la compagnie change.
- API Acomba GO : paiements fournisseurs
- API Avantage : paiements fournisseurs
- API Sage 50 : paiements fournisseurs