List rewards with employee authentication
curl --request POST \
--url https://tapcoupon.at/api/v1/points-card-rewards \
--header 'Authorization: Bearer <token>' \
--header 'X-Device-ID: <x-device-id>' \
--header 'X-Employee-Token: <api-key>'import requests
url = "https://tapcoupon.at/api/v1/points-card-rewards"
headers = {
"X-Device-ID": "<x-device-id>",
"Authorization": "Bearer <token>",
"X-Employee-Token": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Device-ID': '<x-device-id>',
Authorization: 'Bearer <token>',
'X-Employee-Token': '<api-key>'
}
};
fetch('https://tapcoupon.at/api/v1/points-card-rewards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tapcoupon.at/api/v1/points-card-rewards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"X-Device-ID: <x-device-id>",
"X-Employee-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://tapcoupon.at/api/v1/points-card-rewards"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Device-ID", "<x-device-id>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("X-Employee-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://tapcoupon.at/api/v1/points-card-rewards")
.header("X-Device-ID", "<x-device-id>")
.header("Authorization", "Bearer <token>")
.header("X-Employee-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tapcoupon.at/api/v1/points-card-rewards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Device-ID"] = '<x-device-id>'
request["Authorization"] = 'Bearer <token>'
request["X-Employee-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "693869428d49e641ba110e18",
"name": "Free coffee",
"description": "One coffee",
"pointsNeeded": 100,
"cooldownHours": 24
}
]{
"error": "<string>",
"errorCode": "<string>"
}{
"error": "<string>",
"errorCode": "<string>"
}{
"error": "<string>",
"errorCode": "<string>"
}Account and rewards
List rewards with employee authentication
Retrieve the account’s points reward catalog.
POST
/
points-card-rewards
List rewards with employee authentication
curl --request POST \
--url https://tapcoupon.at/api/v1/points-card-rewards \
--header 'Authorization: Bearer <token>' \
--header 'X-Device-ID: <x-device-id>' \
--header 'X-Employee-Token: <api-key>'import requests
url = "https://tapcoupon.at/api/v1/points-card-rewards"
headers = {
"X-Device-ID": "<x-device-id>",
"Authorization": "Bearer <token>",
"X-Employee-Token": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Device-ID': '<x-device-id>',
Authorization: 'Bearer <token>',
'X-Employee-Token': '<api-key>'
}
};
fetch('https://tapcoupon.at/api/v1/points-card-rewards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tapcoupon.at/api/v1/points-card-rewards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"X-Device-ID: <x-device-id>",
"X-Employee-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://tapcoupon.at/api/v1/points-card-rewards"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Device-ID", "<x-device-id>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("X-Employee-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://tapcoupon.at/api/v1/points-card-rewards")
.header("X-Device-ID", "<x-device-id>")
.header("Authorization", "Bearer <token>")
.header("X-Employee-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tapcoupon.at/api/v1/points-card-rewards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Device-ID"] = '<x-device-id>'
request["Authorization"] = 'Bearer <token>'
request["X-Employee-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "693869428d49e641ba110e18",
"name": "Free coffee",
"description": "One coffee",
"pointsNeeded": 100,
"cooldownHours": 24
}
]{
"error": "<string>",
"errorCode": "<string>"
}{
"error": "<string>",
"errorCode": "<string>"
}{
"error": "<string>",
"errorCode": "<string>"
}POST /points-card-rewards
Retrieve the account’s points reward catalog.
Send Authorization: Bearer YOUR_API_KEY and X-Device-ID: YOUR_DEVICE_ID. Also send X-Employee-Token: YOUR_EMPLOYEE_TOKEN. See authentication.
The response is an array of reward definitions. To display rewards configured for a points card, match these ids against card.program.rewardIds, or use public card rewards.
pointsNeeded is the cost to redeem. cooldownHours is an integer from 0 to 8760; 0 disables cooldowns. This catalog does not include per-card cooldown timestamps.
This POST route is an employee-protected alternative to GET /rewards. It does not require a request body.
Example request
curl -X POST "https://tapcoupon.at/api/v1/points-card-rewards" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Device-ID: YOUR_DEVICE_ID" \
-H "X-Employee-Token: YOUR_EMPLOYEE_TOKEN"
Example response
[
{
"id": "693869428d49e641ba110e18",
"name": "Free coffee",
"description": "One coffee",
"pointsNeeded": 100,
"cooldownHours": 24
}
]
Authorizations
Location API key. Also requires X-Device-ID.
Employee session token from /employee/login.
Headers
Stable device identifier. API key binds to this value on first use.
