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

Customer management

Add, edit, or delete customers

Add a customer account

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

Add a new customer to your customer file

POST parameters

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
data[title]NoTitle
data[surname]NoFirst name
data[name]NoSurname
data[position]NoPosition (on the interface)
data[email]NoEmail
data[phone]NoPhone
data[addressline1]NoAddress line 1
data[addressline2]NoAddress line 2
data[adressComment]NoAddress comment
data[postcode]NoPostcode
data[city]NoCity
data[country]NoCountry
data[identificationID]NoIdentity document number
data[lat]Nolat
data[lng]Nolng
data[commentPrivate]NoPrivate comment
data[commentPublic]NoPublic comment
data[registrationNumber]NoCompany Registration number
data[VATnum]NoVAT number
data[barcode]NoBarcode
data[blacklist]NoBlacklist
data[clientGroupID]NoSIRET (14 characters)
data[phone2]NoPhone 2
data[birthDate]NoDate of birth (timestamp)
data[activityCode]NoAccounting code

Edit a customer account

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

Edit a customer in your customer file

POST parameters

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
idYesCustomer ID
data[title]NoTitle
data[surname]NoFirst name
data[name]NoSurname
data[position]NoPosition (on the interface)
data[email]NoEmail
data[phone]NoPhone
data[addressline1]NoAddress line 1
data[addressline2]NoAddress line 2
data[adressComment]NoAddress comment
data[postcode]NoPostcode
data[city]NoCity
data[country]NoCountry
data[identificationID]NoIdentity document number
data[lat]Nolat
data[lng]Nolng
data[commentPrivate]NoPrivate comment
data[commentPublic]NoPublic comment
data[registrationNumber]NoCompany Registration number
data[VATnum]NoVAT number
data[barcode]NoBarcode
data[blacklist]NoBlacklist
data[clientGroupID]NoSIRET (14 characters)
data[phone2]NoPhone 2
data[birthDate]NoDate of birth (timestamp)
data[activityCode]NoAccounting code

Delete a customer account

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

Remove a customer from your customer file

POST parameters

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
idYesCustomer ID

JavaScript example

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

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