Cash register Help: Managing Departments

Free cash register

Kash.click, 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.

Department management

Add, modify, or delete department

Add a department

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

Add a new department to your catalog

POST parameters

NameNecessaryDescription
shopIDYesYour institution's identifier
keyYesYour API key
data[title]YesTitle (required)
data[shortTitle]NoShort title
data[stock]NoQuantity in stock
data[vatID]NoVAT rate ID
data[eatinvatID]NoVAT rate ID on site
data[discountID]NoID of the discount
data[price]NoSelling price
data[keyboardHide]NoHide from the sales interface
data[shopHide]NoHide from the shop
data[position]NoPosition (on the interface)
data[deptGroupID]NoDepartment Group ID
data[unitID]NoUnit ID
data[needPrepa]NoArea for preparing the department
data[variationID0]NoID variation 0
data[variationID1]NoID variant 1
data[variationID2]NoID variant 2
data[variationID3]NoID variant 3
data[variationID4]NoID variant 4
data[activityCode]NoActivity accounting code

Edit a Department

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

Edit a department of your catalog

POST parameters

NameNecessaryDescription
shopIDYesYour institution's identifier
keyYesYour API key
idYesDepartment Identifier
data[title]NoTitle (required)
data[shortTitle]NoShort title
data[stock]NoQuantity in stock
data[vatID]NoVAT rate ID
data[eatinvatID]NoVAT rate ID on site
data[discountID]NoID of the discount
data[price]NoSelling price
data[keyboardHide]NoHide from the sales interface
data[shopHide]NoHide from the shop
data[position]NoPosition (on the interface)
data[deptGroupID]NoDepartment Group ID
data[unitID]NoUnit ID
data[needPrepa]NoArea for preparing the department
data[variationID0]NoID variation 0
data[variationID1]NoID variant 1
data[variationID2]NoID variant 2
data[variationID3]NoID variant 3
data[variationID4]NoID variant 4
data[activityCode]NoActivity accounting code

Delete a department

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

Remove a department from your catalog

POST parameters

NameNecessaryDescription
shopIDYesYour institution's identifier
keyYesYour API key
idYesDepartment Identifier

JavaScript example

async function editDept(){ const body = new URLSearchParams({  shopID: SHOPID,  key: APIKEY,  id: 123,  'data[title]': 'New title' }); const res = await fetch("https://kash.click/workers/editDept.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);}
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) .