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
| ?? | ?? | ?? |
|---|---|---|
shopID | ? | Your institution's identifier |
key | ? | Your API key |
data[title] | ?? | ?? |
data[surname] | ?? | ?? |
data[name] | ?? | Surname |
data[position] | ?? | Position (on the interface) |
data[email] | ?? | ???? |
data[phone] | ?? | ?? |
data[addressline1] | ?? | Address line 1 |
data[addressline2] | ?? | Address line 2 |
data[adressComment] | ?? | Address comment |
data[postcode] | ?? | ?? |
data[city] | ?? | ? |
data[country] | ?? | Country |
data[identificationID] | ?? | Identity document number |
data[lat] | ?? | lat |
data[lng] | ?? | lng |
data[commentPrivate] | ?? | Private comment |
data[commentPublic] | ?? | Public comment |
data[registrationNumber] | ?? | Company Registration number |
data[VATnum] | ?? | ???? |
data[barcode] | ?? | ?? |
data[blacklist] | ?? | Blacklist |
data[clientGroupID] | ?? | SIRET (14 characters) |
data[phone2] | ?? | Phone 2 |
data[birthDate] | ?? | Date of birth (timestamp) |
data[activityCode] | ?? | Accounting code |
Edit a customer account
POST https://kash.click/workers/editClient.php
Edit a customer in your customer file
POST parameters
| ?? | ?? | ?? |
|---|---|---|
shopID | ? | Your institution's identifier |
key | ? | Your API key |
id | ? | Customer ID |
data[title] | ?? | ?? |
data[surname] | ?? | ?? |
data[name] | ?? | Surname |
data[position] | ?? | Position (on the interface) |
data[email] | ?? | ???? |
data[phone] | ?? | ?? |
data[addressline1] | ?? | Address line 1 |
data[addressline2] | ?? | Address line 2 |
data[adressComment] | ?? | Address comment |
data[postcode] | ?? | ?? |
data[city] | ?? | ? |
data[country] | ?? | Country |
data[identificationID] | ?? | Identity document number |
data[lat] | ?? | lat |
data[lng] | ?? | lng |
data[commentPrivate] | ?? | Private comment |
data[commentPublic] | ?? | Public comment |
data[registrationNumber] | ?? | Company Registration number |
data[VATnum] | ?? | ???? |
data[barcode] | ?? | ?? |
data[blacklist] | ?? | Blacklist |
data[clientGroupID] | ?? | SIRET (14 characters) |
data[phone2] | ?? | Phone 2 |
data[birthDate] | ?? | Date of birth (timestamp) |
data[activityCode] | ?? | Accounting code |
Delete a customer account
POST https://kash.click/workers/delClient.php
Remove a customer from your customer file
POST parameters
| ?? | ?? | ?? |
|---|---|---|
shopID | ? | Your institution's identifier |
key | ? | Your API key |
id | ? | Customer 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);
}