Accessing the API requires providing your APIKEY and SHOPID.
Two methods:
https://www.free-cash-register.net/workers/getAuthToken.phplogin — the login of your existing accountpassword — the password for your existing account{ "result": "OK", "APIKEY": "[your token]", "SHOPID": "[shop account ID]"} const login = "mon.email@example.com";const password = "myPassword";fetch("https://www.free-cash-register.net/workers/getAuthToken.php", { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body: new URLSearchParams({ login, password })}) .then(r => r.json()) .then(data => { if (data.result === "OK") { 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) .