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

Management of department groups

Add, modify, or delete department groups

Add a department Group

POST https://kash.click/workers/addGrpDept.php

Add a new department group to your catalog

POST parameters

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
data[title]YesTitle (required)
data[position]NoPosition (on the interface)
data[accountingChapter]NoAccounting chapter
data[accountingChapterComplement]NoAccounting Chapter Supplement

Edit a Group of departments

POST https://kash.click/workers/editGrpDept.php

Edit a department group in your catalog

POST parameters

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
idYesDepartment Group Identifier
data[title]NoTitle (required)
data[position]NoPosition (on the interface)
data[accountingChapter]NoAccounting chapter
data[accountingChapterComplement]NoAccounting Chapter Supplement

Delete a department Group

POST https://kash.click/workers/delGrpDept.php

Remove a department group from your catalog

POST parameters

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
idYesDepartment Group Identifier

JavaScript example

async function editGrpDept(){
  const body = new URLSearchParams({
    shopID: SHOPID,
    key: 'REMPLACER_PAR_VOTRE_CLE_API_GENEREE',
    id: 123,
    'data[title]': 'New title'
  });

  const res = await fetch("https://kash.click/workers/editGrpDept.php", {
    method: "POST",
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
    body
  });
  let payload; try{ payload = await res.json(); }catch{ payload = await res.text(); }
  console.log(payload);
}

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