Record a cash tip
curl --request POST \
--url https://api.centsless.org/api/v1/tip/cash \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"transaction_id": "<string>",
"employee_id": "<string>",
"tip_amount": 123,
"employee_name": "<string>",
"store_id": "<string>",
"terminal_id": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transaction_id: '<string>',
employee_id: '<string>',
tip_amount: 123,
employee_name: '<string>',
store_id: '<string>',
terminal_id: '<string>'
})
};
fetch('https://api.centsless.org/api/v1/tip/cash', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.centsless.org/api/v1/tip/cash"
payload = {
"transaction_id": "<string>",
"employee_id": "<string>",
"tip_amount": 123,
"employee_name": "<string>",
"store_id": "<string>",
"terminal_id": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "INVALID_REQUEST",
"message": "<string>",
"errors": [
"<string>"
]
}Tipping
Record a cash tip
POST
/
tip
/
cash
Record a cash tip
curl --request POST \
--url https://api.centsless.org/api/v1/tip/cash \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"transaction_id": "<string>",
"employee_id": "<string>",
"tip_amount": 123,
"employee_name": "<string>",
"store_id": "<string>",
"terminal_id": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transaction_id: '<string>',
employee_id: '<string>',
tip_amount: 123,
employee_name: '<string>',
store_id: '<string>',
terminal_id: '<string>'
})
};
fetch('https://api.centsless.org/api/v1/tip/cash', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.centsless.org/api/v1/tip/cash"
payload = {
"transaction_id": "<string>",
"employee_id": "<string>",
"tip_amount": 123,
"employee_name": "<string>",
"store_id": "<string>",
"terminal_id": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "INVALID_REQUEST",
"message": "<string>",
"errors": [
"<string>"
]
}
