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

Create an account

Ancienne version maintenue pour les applications existantes. Pour une nouvelle intégration, utilisez la création avec identité et courriel confirmé. Documentation actuelle

It is possible to create an account programmatically, by providing an email address and the account name.

Cette API conserve son URL, ses paramètres et la réponse immédiate APIKEY / SHOPID pour les intégrations existantes. Dans l’interface, la création passe par Connexion, avec confirmation du courriel et rattachement à l’identité. Une création par API ne confirme pas le courriel et ne rattache pas automatiquement le compte à une identité.

Attention: you will need to validate your email via the link that will be automatically sent to you, otherwise your account may be deleted after a certain period of inactivity.

1) Create an account

Two methods:

  1. From the interface : On the Registration page
  2. By POST request : https://kash.click/workers/addShop.php

1.1 POST /workers/addShop.php

POST parameters

NomeNecessárioDescrição
emailsimAccount email address
accountTitlesimAccount title (name of the institution)
configTypeNãoDefault dataset ('Bar', 'Ticket-Office', 'Butchery-Delicatessen', 'Bakery', 'Brewery', 'Tobacconist', 'Cafe', 'Camping', 'Liquor-Shop', 'CBD', 'Coffee-shop', 'Coiffeur', 'Shops', 'Street-trade', 'Grocery-store', 'Florist', 'Food-truck', 'Cheese-shop', 'Beauty-institute', 'Library', 'Clothing-store', 'Market', 'Pharmacy', 'Pizzeria', 'Fish-shop', 'For-association', 'Dry-cleaning', 'Restaurant', 'Fast-food', 'Supermarket', 'Perfumery', 'Services', 'Ecommerce', 'Solana', 'ChatGPT', 'Claude', 'Prestashop', 'VivaWallet', 'SumUp', 'GoCardless', 'Sunmi', 'Yavin', 'Pennylane')
data[companyRegistrationNum]NãoCompany registration number (RCS)
data[taxRegistrationNum]NãoNúmero de IVA
data[adressline1]NãoAddress line 1
data[postCode]NãoCódigo Postal
data[city]NãoCidade
data[country]NãoCountry
data[lat]Nãolat
data[lng]Nãolng
data[phone]NãoTelefone
data[urlwebsite]NãoURL of your website (external)
data[defaultAccountingChapter]NãoDefault accounting chapter
data[pdffooter]NãoFooter text for PDF invoices
data[paymentDueDays]NãoDélai de paiement en jours (0 = comptant)
data[recoveryFeeAmount]NãoMontant de l’indemnité pour frais de recouvrement (0 = aucune)
data[recoveryFeeCurrency]NãoDevise de l’indemnité (code à 3 lettres)
data[latePenaltyMode]NãoPénalités de retard : ecb_plus_10, fr_legal_x3 ou custom
data[latePenaltyRate]NãoTaux annuel personnalisé des pénalités (%)
data[earlyPaymentDiscountRate]NãoTaux d’escompte pour paiement anticipé (%) (0 = aucun)
data[earlyPaymentDiscountDays]NãoDélai d’escompte en jours (0 = à l’émission de la facture)
data[receiptHeader]NãoTicket header
data[receiptFooter]NãoTicket footer
data[defaultVatID]NãoDefault VAT rate identifier
data[currency]NãoMoeda
data[language]NãoLanguage
data[pricesAreProvidedTaxIncluded]Não0 = Prices are entered excluding VAT; 1 = Prices are entered including VAT
data[paypalAddress]NãoYour PayPal email address (for collecting payments)
data[deliv_tablePlan]NãoTable management
data[deliv_takeAway]NãoTakeaway
data[deliv_drivethru]NãoDrive thru
data[deliv_deliver]NãoDelivery management
data[deliv_bar]NãoCounter sales
data[deliv_relayDeposit]NãoDelivery to a collection point
data[deliv_default]NãoDefault delivery method
data[receipt_showVat]NãoDisplay VAT on tickets
data[receipt_showShopName]NãoDisplay the shop name on the tickets
data[receipt_showCashbox]NãoDisplay the cashier's name on the receipts
data[receipt_showSeller]NãoDisplay the seller's name on the tickets
data[receipt_showClient]NãoDisplay the customer's name on the tickets
data[receipt_showAddress]NãoDisplay the store's contact details on the tickets
data[receipt_showCompanyRegistrationNum]NãoDisplay the store's company number on the receipts
data[receipt_showClientSurname]NãoDisplay the customer's first name on the tickets
data[receipt_showClientAddress]NãoDisplay the customer's address on the tickets
data[receipt_showClientPhone]NãoDisplay the customer's phone number on the tickets
data[receipt_showGlobalVat]NãoDisplay the general VAT on the tickets
data[receipt_showComment]NãoShow ticket comments
data[receipt_showPricesBeforeTaxes]NãoDisplay prices excluding VAT on tickets
data[orderRequires_deliveryChoice]NãoChoosing a delivery method is mandatory for each order.
data[orderRequires_name]NãoThe customer's name is required for each order.
data[orderRequires_surname]NãoThe customer's first name is required for each order.
data[orderRequires_address]NãoThe customer's address is required for each order.
data[orderRequires_email]NãoCustomer email address is required for each order
data[orderRequires_phone]NãoCustomer phone number is required for each order
data[orderRequires_date]NãoChoosing a date is mandatory for each order.
data[orderRequires_CompanyRegistrationNum]NãoThe customer's company number is required for each order.
data[orderRequires_comment]NãoComment required for each order
data[enable_stock]NãoActivate inventory management
data[enable_barcodes]NãoEnable barcode handling
data[enable_departments]NãoActivate shelf management
data[enable_departmentsGroups]NãoEnable shelf group management
data[enable_credits]NãoEnable asset management
data[enable_descriptionsForItems]NãoEnable descriptions for items
data[enable_variations]NãoEnable variation management
data[enable_delivShop]NãoActivate deliveries with Deliv.shop
data[enable_relayDeposit]NãoEnable pickup point management
data[enable_descriptionForVariations]NãoEnable descriptions for items
data[enable_dateOfConsumption]NãoEnable expiration date management
data[enable_coupons]NãoEnable coupon management
data[enable_weightForItems]NãoEnable item weight management
data[enable_whiteLabel]NãoEnable white labeling (note: cannot be disabled)
data[whiteLabelAdminUserID]NãoWhite label administrator user ID
data[isWebShopEnabled]NãoActivate the webshop
data[webShopURL]NãoWebshop URL
data[webShopLang]NãoWebshop language
data[webShopCol1]NãoBackground color 1
data[webShopCol2]NãoBackground color 2
data[webShopCol3]NãoBackground color 3
data[webShopColT1]NãoText color 1
data[webShopColT2]NãoText color 2
data[webShopColT3]NãoText color 3
data[prestaShopApiKey]NãoPrestashop API key
data[prestaShopURL]NãoYour Prestashop URL
data[saleWebhookURL]NãoWebhook URL for sales
data[openingWebhookURL]NãoWebhook URL for cashbox closures
data[enableYavin]NãoEnable Yavin payment collection
data[yavinSecret]NãoSecret code
data[yavinSerial]NãoyavinSerial
data[enableVivaWallet]NãoActivate payment collection with Viva.com
data[vivaWalletMerchant]NãoViva.com Merchant ID
data[vivaAccoundID]NãoViva.com account ID
data[whiteLabelManagerSet]NãoIf data[whiteLabelManagerSet]='fromSecret', then it is also possible to provide the parameter $data["whiteLabelManagerSecret"] to assign an existing manager to the account; If data[whiteLabelManagerSet]='new', then it is also possible to provide the parameters $data["whiteLabelData"]["nom"],$data["whiteLabelData"]["rcs"],$data["whiteLabelData"]["vat"],$data["whiteLabelData"]["addressLine1"],$data["whiteLabelData"]["addressLine2"],$data["whiteLabelData"]["codePostal"],$data["whiteLabelData"]["ville"],$data["whiteLabelData"]["pays"],$data["whiteLabelData"]["telephone"],$data["whiteLabelData"]["email"]

Expected JSON response (success)

{ "success":true, "result":"Here are your credentials", "APIKEY": "[your token]", "SHOPID": "[shop account ID]"}

Expected JSON response (failure)

{ "success": false, "result": "Error sending email"}

JavaScript example (fetch)

const email = "mon.email@example.com";const accountTitle = "My Shop";fetch("https://kash.click/workers/addShop.php", { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body: new URLSearchParams({ email, accountTitle })}) .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);  } });

2) With the API key you can…

  • Download your sales data
  • Download items, customers, departments, etc.
  • Record sales

Spécification OpenAPI de cette ancienne version

Spécification OpenAPI de cette ancienne version

Les nouvelles clés délivrées par authentification ou création de boutique sont des clés gérées, sans expiration et avec toutes les autorisations. Elles apparaissent dans Configuration → Webservices → Clés API et peuvent ensuite être limitées ou révoquées. Les anciennes clés déjà utilisées restent valides.

This document is made available under the terms of the licence Creative Commons Attribution 4.0 International (CC BY 4.0).