List rewards
curl --request GET \
--url https://tapcoupon.at/api/v1/rewards \
--header 'Authorization: Bearer <token>' \
--header 'X-Device-ID: <x-device-id>'import requests
url = "https://tapcoupon.at/api/v1/rewards"
headers = {
"X-Device-ID": "<x-device-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Device-ID': '<x-device-id>', Authorization: 'Bearer <token>'}
};
fetch('https://tapcoupon.at/api/v1/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/rewards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"X-Device-ID: <x-device-id>"
],
]);
$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/rewards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Device-ID", "<x-device-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://tapcoupon.at/api/v1/rewards")
.header("X-Device-ID", "<x-device-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tapcoupon.at/api/v1/rewards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Device-ID"] = '<x-device-id>'
request["Authorization"] = 'Bearer <token>'
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
Retrieve the account’s points reward catalog.
GET
/
rewards
List rewards
curl --request GET \
--url https://tapcoupon.at/api/v1/rewards \
--header 'Authorization: Bearer <token>' \
--header 'X-Device-ID: <x-device-id>'import requests
url = "https://tapcoupon.at/api/v1/rewards"
headers = {
"X-Device-ID": "<x-device-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Device-ID': '<x-device-id>', Authorization: 'Bearer <token>'}
};
fetch('https://tapcoupon.at/api/v1/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/rewards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"X-Device-ID: <x-device-id>"
],
]);
$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/rewards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Device-ID", "<x-device-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://tapcoupon.at/api/v1/rewards")
.header("X-Device-ID", "<x-device-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tapcoupon.at/api/v1/rewards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Device-ID"] = '<x-device-id>'
request["Authorization"] = 'Bearer <token>'
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>"
}GET /rewards
Retrieve the account’s points reward catalog.
Send Authorization: Bearer YOUR_API_KEY and X-Device-ID: YOUR_DEVICE_ID. 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.
Example request
curl "https://tapcoupon.at/api/v1/rewards" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Device-ID: YOUR_DEVICE_ID"
Example response
[
{
"id": "693869428d49e641ba110e18",
"name": "Free coffee",
"description": "One coffee",
"pointsNeeded": 100,
"cooldownHours": 24
}
]
Authorizations
Location API key. Also requires X-Device-ID.
Headers
Stable device identifier. API key binds to this value on first use.
