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
| Name | Required | Description |
|---|---|---|
shopID | Yes | Your institution's identifier |
key | Yes | Your API key |
data[title] | Yes | Title (required) |
data[position] | No | Position (on the interface) |
data[accountingChapter] | No | Accounting chapter |
data[accountingChapterComplement] | No | Accounting Chapter Supplement |
Edit a Group of departments
POST https://kash.click/workers/editGrpDept.php
Edit a department group in your catalog
POST parameters
| Name | Required | Description |
|---|---|---|
shopID | Yes | Your institution's identifier |
key | Yes | Your API key |
id | Yes | Department Group Identifier |
data[title] | No | Title (required) |
data[position] | No | Position (on the interface) |
data[accountingChapter] | No | Accounting chapter |
data[accountingChapterComplement] | No | Accounting Chapter Supplement |
Delete a department Group
POST https://kash.click/workers/delGrpDept.php
Remove a department group from your catalog
POST parameters
| Name | Required | Description |
|---|---|---|
shopID | Yes | Your institution's identifier |
key | Yes | Your API key |
id | Yes | Department 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);
}