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

??????
shopID?Your institution's identifier
key?Your API key
data[title]?Title (required)
data[shortTitle]??Store Name
data[description]????
data[buyingPrice]??Purchase price
data[price]??Selling price
data[calories]??Calories
data[weight]??Weight
data[unitID]??Unit ID
data[variationID0]??ID variation 0
data[variationID1]??ID variant 1
data[variationID2]??ID variant 2
data[variationID3]??ID variant 3
data[variationID4]??ID variant 4
data[deptID]??aisle ID
data[supplierID]??Supplier ID
data[vatID]??VAT rate ID
data[eatinvatID]??VAT rate ID on site
data[discountID]??ID of the discount
data[barcode]????
data[stock]??Quantity in stock
data[stockAlert]??Quantity alert
data[consumptionDate]??Use-by date
data[shopHide]??Hide from the shop
data[keyboardHide]??Hide from the sales interface
data[needPrepa]??Preparation location
data[prepaLength]??Preparation time (seconds)
data[position]??Position (on the interface)
data[activityCode]??Activity accounting code
data[internalID]??Free identifier

Edit an Article

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

Edit an item in your catalog

POST parameters

??????
shopID?Your institution's identifier
key?Your API key
id?Article ID
data[title]??Title (required)
data[shortTitle]??Store Name
data[description]????
data[buyingPrice]??Purchase price
data[price]??Selling price
data[calories]??Calories
data[weight]??Weight
data[unitID]??Unit ID
data[variationID0]??ID variation 0
data[variationID1]??ID variant 1
data[variationID2]??ID variant 2
data[variationID3]??ID variant 3
data[variationID4]??ID variant 4
data[deptID]??aisle ID
data[supplierID]??Supplier ID
data[vatID]??VAT rate ID
data[eatinvatID]??VAT rate ID on site
data[discountID]??ID of the discount
data[barcode]????
data[stock]??Quantity in stock
data[stockAlert]??Quantity alert
data[consumptionDate]??Use-by date
data[shopHide]??Hide from the shop
data[keyboardHide]??Hide from the sales interface
data[needPrepa]??Preparation location
data[prepaLength]??Preparation time (seconds)
data[position]??Position (on the interface)
data[activityCode]??Activity accounting code
data[internalID]??Free identifier

Delete an Article

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

Remove an item from your catalog

POST parameters

??????
shopID?Your institution's identifier
key?Your API key
id?Article 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).