Aide Caisse enregistreuse : Télécharger vos rapports

Free cash register

Free-cash-register.net, free online POS software since 2014

Follow Us

Cash Register Help Center

This help will guide you through the setup and usage of our point of sale cash register software.

Télécharger vos rapports

Download your daily reports in HTML, PDF, XLS, CSV format...

GET /workers/getSales.php

Base URL: https://www.free-cash-register.net/workers/getSales.php

Settings

NameTypeNecessaryDescription
idboutiquestringYesShop Account ID (SHOPID)
keystringYesYour token (APIKEY)
dintNoDay (if not specified, the day before is used)
mintNoMonthly
yintNoYear
formatExportstringYesStd (HTML report), PDF, XLS, CSV, frafec (FEC), saft

JavaScript Examples

// Aide pour construire une URL GETfunction buildUrl(path, params){ const qs = new URLSearchParams(params); return `${path}?${qs.toString()}`;}const SHOPID = "[SHOPID]";const APIKEY = "[APIKEY]";// 1) Export CSV pour date préciseconst urlCsv = buildUrl("https://www.free-cash-register.net/workers/getSales.php", { idboutique: SHOPID, key: APIKEY, d: 16, m: 10, y: 2025, formatExport: "CSV"});fetch(urlCsv).then(r=>r.text()).then(csv=>console.log(csv));// 2) Rapport HTML (Std) pour la veille (sans date)const urlStd = buildUrl("https://www.free-cash-register.net/workers/getSales.php", { idboutique: SHOPID, key: APIKEY, formatExport: "Std"});fetch(urlStd).then(r=>r.text()).then(html=>{ document.getElementById("rapport").innerHTML = html;});// 3) Rapport PDF (Blob)const urlPdf = buildUrl("https://www.free-cash-register.net/workers/getSales.php", { idboutique: SHOPID, key: APIKEY, d: 16, m: 10, y: 2025, formatExport: "PDF"});fetch(urlPdf).then(r=>r.blob()).then(pdf=>{ const a = document.createElement("a"); a.href = URL.createObjectURL(pdf); a.download = "rapport-ventes.pdf"; a.click();});
Register now
Licence Creative Commons This document is made available under the terms of the licence Creative Commons Attribution 4.0 International (CC BY 4.0) .