Tous les endpoints suivants acceptent &format=json, &format=csv ou &format=html.
| Ressource | Endpoint |
|---|---|
| Artikels | /workers/getPlus.php |
| Afdelingen | /workers/getDepartments.php |
| Afdelingsgroepen | /workers/getDepartmentGroups.php |
| Cliënten | /workers/getClients.php |
| Artikelvariaties | /workers/getDeclinaisons.php |
| Bezorgmethoden | /workers/getLivraisons.php |
| Méthodes de paiement | /workers/getPaymentModes.php |
| Kassa's | /workers/getCashbox.php |
| Bezorgzones | /workers/getDeliveryZones.php |
| Points relais | /workers/getRelayDeposit.php |
| Kortingen | /workers/getDiscounts.php |
| Gebruikers | /workers/getUsers.php |
| Tafels | /workers/getTables.php |
| Huidige bestellingen | /workers/getPending.php |
https://caisse.enregistreuse.fr/workers/[endpoint].php?idboutique=[SHOPID]&key=[APIKEY]&format=[csv|json|html] function buildUrl(path, params){ const qs = new URLSearchParams(params); return `${path}?${qs.toString()}`;}async function fetchResource(endpoint, format = "json"){ const url = buildUrl(`https://caisse.enregistreuse.fr/workers/${endpoint}.php`, { idboutique: SHOPID, key: APIKEY, format }); const res = await fetch(url); return format === "json" ? res.json() : res.text();}// 1) Items in JSONfetchResource("getPlus", "json").then(data => console.log("Articles:", data));// 2) Clients in CSVfetchResource("getClients", "csv").then(csv => console.log("Clients (CSV):\n", csv));// 3) Depts in HTML (injection)fetchResource("getDepartments", "html").then(html => { document.getElementById("rayons").innerHTML = html;}); Register now
Ce document est mis à disposition selon les termes de la licence Creative Commons Attribution 4.0 International (CC BY 4.0) .