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 variation management

Add, modify, or delete variations

Add a variation

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

Add a new variation to your catalog

POST parameters

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
data[title]YesStore Name

Edit a variation

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

Modify a variation of your catalog

POST parameters

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
idYesVariant Identifier
data[title]NoStore Name

Delete a declension

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

Remove a variation from your catalog

POST parameters

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
idYesVariant Identifier

JavaScript example

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

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