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

Payment method management

Add, edit, or delete payment methods

Add a payment method

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

Add a new payment method

POST parameters

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
data[title]NoTitle (required)
data[type]NoPayment method [Cash|Credit_Card|Check|Bank_Transfer|Meal_Voucher|Holiday_Voucher|Cash_Refund|Credit_Card_Refund|Check_Refund|Bank_Transfer_Refund|Meal_Voucher_Refund|Holiday_Voucher_Refund]
data[accountingChapter]NoAccounting chapter
data[fixedAmount]NoFixed amount (for example, to have a fixed amount for a gift certificate)
data[minimumAmount]NoMinimum payment amount
data[maximumAmount]NoMaximum payment amount
data[cashboxLock]NoRegister authorized to access this payment method (0 = all)

Remove a payment method

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

Remove a payment method

POST parameters

NameRequiredDescription
shopIDYesYour institution's identifier
keyYesYour API key
idYesPayment method identifier

JavaScript example

async function createPaymentMethod(){
  const body = new URLSearchParams({
    shopID: SHOPID,
    key: 'REMPLACER_PAR_VOTRE_CLE_API_GENEREE',
    'data[title]': 'Cash #2',
    'data[type]': 'Cash'
  });

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