Free cash register

Kash.click, free online POS software since 2011

Follow Us

L’aide, à portée de main

Comment pouvons-nous vous aider ?

Un réglage, une question, un geste du quotidien. Trouvez le bon guide et avancez simplement.

API / Web services

Download your data

Download list of items, departments, clients, etc

All of the following endpoints accept &format=json, &format=csv, or &format=html.

Available endpoints

ResourceEndpoint
VAT %/workers/getVATs.php
Items/workers/getPlus.php
Departments/workers/getDepartments.php
Department groups/workers/getDepartmentGroups.php
Customers/workers/getClients.php
Product variations/workers/getDeclinaisons.php
Delivery methods/workers/getLivraisons.php
Payment methods/workers/getPaymentModes.php
Cashboxes/workers/getCashbox.php
Delivery zones/areas/workers/getDeliveryZones.php
Relay point/workers/getRelayDeposit.php
Discounts/workers/getDiscounts.php
Users/workers/getUsers.php
Tables/workers/getTables.php
Pending orders/workers/getPending.php

Pour getUsers, codeBarre est toujours une chaîne vide en JSON, CSV et HTML, avec une clé historique ou gérée. Les identifiants de badge NFC et codes-barres de connexion des vendeurs ne sont pas exportés. Utilisez id pour référencer un profil. Les badges déjà émis restent valables ; les codes-barres des articles et clients restent disponibles selon leur contrat habituel.

URL pattern

https://kash.click/workers/[endpoint].php?shopID=[SHOPID]&key=[APIKEY]&format=[csv|json|html]

JavaScript Examples


function buildUrl(path, params){
  const qs = new URLSearchParams(params);
  return `${path}?${qs.toString()}`;
}

async function fetchResource(endpoint, format = "json"){
  const url = buildUrl(`https://kash.click/workers/${endpoint}.php`, {
    shopID: SHOPID,
    key: 'REMPLACER_PAR_VOTRE_CLE_API_GENEREE',
    format
  });
  const res = await fetch(url);
  return format === "json" ? res.json() : res.text();
}

// 1) Items in JSON
fetchResource("getPlus", "json").then(data => console.log("Articles:", data));

// 2) Clients in CSV
fetchResource("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;
});

This document is made available under the terms of the licence Creative Commons Attribution 4.0 International (CC BY 4.0).