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

Product management

Add, edit, or delete articles

Add an Article

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

Add a new item to your catalog

POST parameters

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
data[title]YesTitle (required)
data[shortTitle]NoStore Name
data[description]NoDescription
data[buyingPrice]NoPurchase price
data[price]NoSelling price
data[calories]NoCalories
data[weight]NoWeight
data[unitID]NoUnit ID
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[deptID]Noaisle ID
data[supplierID]NoSupplier ID
data[vatID]NoVAT rate ID
data[eatinvatID]NoVAT rate ID on site
data[discountID]NoID of the discount
data[barcode]NoBarcode
data[stock]NoQuantity in stock
data[stockAlert]NoQuantity alert
data[consumptionDate]NoUse-by date
data[shopHide]NoHide from the shop
data[keyboardHide]NoHide from the sales interface
data[needPrepa]NoPreparation location
data[prepaLength]NoPreparation time (seconds)
data[position]NoPosition (on the interface)
data[activityCode]NoActivity accounting code
data[internalID]NoFree identifier

Edit an Article

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

Edit an item in your catalog

POST parameters

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
idYesArticle ID
data[title]NoTitle (required)
data[shortTitle]NoStore Name
data[description]NoDescription
data[buyingPrice]NoPurchase price
data[price]NoSelling price
data[calories]NoCalories
data[weight]NoWeight
data[unitID]NoUnit ID
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[deptID]Noaisle ID
data[supplierID]NoSupplier ID
data[vatID]NoVAT rate ID
data[eatinvatID]NoVAT rate ID on site
data[discountID]NoID of the discount
data[barcode]NoBarcode
data[stock]NoQuantity in stock
data[stockAlert]NoQuantity alert
data[consumptionDate]NoUse-by date
data[shopHide]NoHide from the shop
data[keyboardHide]NoHide from the sales interface
data[needPrepa]NoPreparation location
data[prepaLength]NoPreparation time (seconds)
data[position]NoPosition (on the interface)
data[activityCode]NoActivity accounting code
data[internalID]NoFree identifier

Delete an Article

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

Remove an item from your catalog

POST parameters

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
idYesArticle ID

JavaScript example

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

  const res = await fetch("https://kash.click/workers/editPlu.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).