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

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
data[title]YesTitle (required)
data[accountingChapter]NoAccounting chapter
data[rate]YesRate (required)
data[legal]NoLegal mention

Change a VAT rate

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

Modify an existing VAT

POST parameters

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
idYesVAT rate identifier
data[title]NoTitle (required)
data[accountingChapter]NoAccounting chapter
data[rate]NoRate (required)
data[legal]NoLegal mention

Delete a VAT rate

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

Remove an existing VAT

POST parameters

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
idYesVAT 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).