This help will guide you through the setup and usage of our point of sale cash register software.
Search by keyword in the help section:
Accessing the API requires providing your APIKEY and SHOPID.
Different methods:
https://kash.click/workers/getOTPForAccount.phphttps://kash.click/workers/getAuthTokenWithPassword.phpThis endpoint allows you to receive a one-time password (OTP) via email, which you can use to obtain your account's API key.
| Name | Necessary | Description |
|---|---|---|
email | Yes | Your account email |
accountID | No | The account's internal identifier |
{ "success": true, "result": "Email with OTP has been sent", "consumeOTPlink": "[the link to use in order to consume the OTP]"} { "success": false, "result": "Error sending email"} const email = "mon.email@example.com";fetch("https://kash.click/workers/getOTPForAccount.php", { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body: new URLSearchParams({ email })}) .then(r => r.json()) .then(data => { if (data.success) { console.log("Now provide OTP using :", data.consumeOTPlink); } else { console.error("Auth error", data); } }); This endpoint allows you to obtain your account's API key using the one-time password (OTP) you received by email after calling getOTPForAccount.php
| Name | Necessary | Description |
|---|---|---|
email | Yes | Your account email |
otp | No | The One Time Password you received by email |
{ "success": true, "result": "Here are your credentials", "APIKEY": "[your token]", "SHOPID": "[shop account ID]"} { "success": false, "result": "OTP not found"} const email = "mon.email@example.com";fetch("https://kash.click/workers/getAuthTokenWithOTP.php", { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body: new URLSearchParams({ email })}) .then(r => r.json()) .then(data => { if (data.success) { console.log("Token:", data.APIKEY); console.log("Shop:", data.SHOPID); } else { console.error("Auth error", data); } }); This endpoint allows you to obtain your account's API key using your password and username.
| Name | Necessary | Description |
|---|---|---|
login | Yes | Your existing account login |
password | Yes | Your existing account password |
{ "success": true, "result":"Here are your credentials", "APIKEY": "[your token]", "SHOPID": "[shop account ID]"} { "success": false, "result": "Authentication error"} const login = "mon.email@example.com";const password = "myPassword";fetch("https://kash.click/workers/getAuthTokenWithPassword.php", { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body: new URLSearchParams({ login, password })}) .then(r => r.json()) .then(data => { if (data.success) { console.log("Token:", data.APIKEY); console.log("Shop:", data.SHOPID); } else { console.error("Auth error", data); } });
This document is made available under the terms of the licence Creative Commons Attribution 4.0 International (CC BY 4.0) .