Reconciliation
Token Import Report
This report gives allowes to reconcile imported tokens from third-party sources.
The report contains all Commerce tokens of the current account. The tokens are annotated with a import_provider and the corresponding business_key (i.e. the ID of the cardholder data at the provider).
GET
/
reports
/
tokens
Token Import Report
curl --request GET \
--url https://sandbox.hellgate.io/reports/tokens \
--header 'X-API-Key: <api-key>'import requests
url = "https://sandbox.hellgate.io/reports/tokens"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://sandbox.hellgate.io/reports/tokens', 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://sandbox.hellgate.io/reports/tokens",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <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://sandbox.hellgate.io/reports/tokens"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.hellgate.io/reports/tokens")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.hellgate.io/reports/tokens")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body"id,import_provider,business_key,created_at\n\"d3e14053-52c0-4b4a-9b24-6931a1eb2eb5\",,,\"2024-08-13 15:44:26.559568\"\n\"cbc2c85f-53ce-4cd2-b7cf-d74c7c3983c2\",,,\"2024-08-13 14:59:25.67196\"\n\"1d15fcbf-78f0-4a7f-b114-c918f6f7b144\",,,\"2024-08-13 15:00:38.871148\"\n\"364073f3-47fd-4210-bb8a-5bc3d38bee3c\",\"stripe\",\"pm_1PsSCYCJ5AfyAmaKo4RuyX6v\",\"2024-09-10 10:04:27.018267\"\n\"fe2aaa36-d3fd-487a-8dfb-7735611a222e\",\"stripe\",\"pm_1PsSCBCJ5AfyAmaKNKtGoK0k\",\"2024-09-10 10:04:34.842439\"\n\"d1717e32-1324-4933-962f-0da7b21eebee\",\"stripe\",\"pm_1PsSC5CJ5AfyAmaKZoxU2bzz\",\"2024-09-10 10:04:36.802841\"\n\"a7ac16ab-a519-4986-931c-3d328fc8329f\",\"stripe\",\"pm_1PsSCOCJ5AfyAmaKudXbrJRE\",\"2024-09-10 10:04:30.382309\""{
"code": 401,
"message": "No valid means of authentication was provided",
"classifier": "UNAUTHORIZED"
}{
"code": 403,
"message": "Not allowed to access this resource or feature",
"classifier": "FORBIDDEN"
}Authorizations
Response
Success response
The response is of type string.
⌘I
Token Import Report
curl --request GET \
--url https://sandbox.hellgate.io/reports/tokens \
--header 'X-API-Key: <api-key>'import requests
url = "https://sandbox.hellgate.io/reports/tokens"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://sandbox.hellgate.io/reports/tokens', 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://sandbox.hellgate.io/reports/tokens",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <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://sandbox.hellgate.io/reports/tokens"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.hellgate.io/reports/tokens")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.hellgate.io/reports/tokens")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body"id,import_provider,business_key,created_at\n\"d3e14053-52c0-4b4a-9b24-6931a1eb2eb5\",,,\"2024-08-13 15:44:26.559568\"\n\"cbc2c85f-53ce-4cd2-b7cf-d74c7c3983c2\",,,\"2024-08-13 14:59:25.67196\"\n\"1d15fcbf-78f0-4a7f-b114-c918f6f7b144\",,,\"2024-08-13 15:00:38.871148\"\n\"364073f3-47fd-4210-bb8a-5bc3d38bee3c\",\"stripe\",\"pm_1PsSCYCJ5AfyAmaKo4RuyX6v\",\"2024-09-10 10:04:27.018267\"\n\"fe2aaa36-d3fd-487a-8dfb-7735611a222e\",\"stripe\",\"pm_1PsSCBCJ5AfyAmaKNKtGoK0k\",\"2024-09-10 10:04:34.842439\"\n\"d1717e32-1324-4933-962f-0da7b21eebee\",\"stripe\",\"pm_1PsSC5CJ5AfyAmaKZoxU2bzz\",\"2024-09-10 10:04:36.802841\"\n\"a7ac16ab-a519-4986-931c-3d328fc8329f\",\"stripe\",\"pm_1PsSCOCJ5AfyAmaKudXbrJRE\",\"2024-09-10 10:04:30.382309\""{
"code": 401,
"message": "No valid means of authentication was provided",
"classifier": "UNAUTHORIZED"
}{
"code": 403,
"message": "Not allowed to access this resource or feature",
"classifier": "FORBIDDEN"
}