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

VAT rate management

Add, modify, or delete VAT rates

Add a VAT rate

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

Add a new VAT rate to your configuration

POST parameters

??????
shopID?Your institution's identifier
key?Your API key
data[title]?Title (required)
data[accountingChapter]??Accounting chapter
data[rate]?Rate (required)
data[legal]?????

Change a VAT rate

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

Modify an existing VAT

POST parameters

??????
shopID?Your institution's identifier
key?Your API key
id?VAT rate identifier
data[title]??Title (required)
data[accountingChapter]??Accounting chapter
data[rate]??Rate (required)
data[legal]?????

Delete a VAT rate

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

Remove an existing VAT

POST parameters

??????
shopID?Your institution's identifier
key?Your API key
id?VAT rate identifier

JavaScript example

async function editVAT(){
  const body = new URLSearchParams({
    shopID: SHOPID,
    key: 'REMPLACER_PAR_VOTRE_CLE_API_GENEREE',
    id: 123,
    'data[title]': '20% VAT',
    'data[rate]': 20
  });

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