cURL
curl --request GET \
--url https://app.herondata.io/api/transactions/{reference_id_or_heron_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://app.herondata.io/api/transactions/{reference_id_or_heron_id}"
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://app.herondata.io/api/transactions/{reference_id_or_heron_id}', 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://app.herondata.io/api/transactions/{reference_id_or_heron_id}",
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://app.herondata.io/api/transactions/{reference_id_or_heron_id}"
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://app.herondata.io/api/transactions/{reference_id_or_heron_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.herondata.io/api/transactions/{reference_id_or_heron_id}")
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{
"transaction_enriched": {
"amount": -42.42,
"description": "GOOGLE *ADS12340929 [email protected] US",
"account_id": "checking_account_202348",
"account_number": "1234567890",
"annotation": {
"annotator": {},
"category": {
"label": "Rent",
"heron_id": "ctg_bp8ZUdwCTfeR9LnfZ7KZT2"
},
"confidence": 123,
"model_version": "<string>"
},
"balance": 423,
"counterparty": "GOOGLE",
"currency": "USD",
"data_source_account_heron_id": "dsa_8HL69cGDYQ8mVKuqdXqEy8",
"data_source_heron_id": "dso_oEQr7yYkGgBoAssnLbJ67n",
"end_user_id": "my_best_customer_203948",
"features": {
"description_clean": "GOOGLE ADS",
"duplicate_of_id": "txn_fSchpXB9w5VxUM8gAjWTtv",
"has_matching_transaction": true,
"is_potential_duplicate": true,
"is_recurring": true
},
"heron_id": "txn_a5aWTVwANezaoh2nZSM8iC",
"last_updated": "2026-07-22T20:16:15.390709+00:00",
"merchant": {
"name": "<string>",
"url": "<string>",
"categories": [
{
"code": "7311",
"description": "Advertising services",
"slug": "advertising_services"
}
],
"heron_id": "mrc_DskcuiJdXnR345BUM6Pr5u",
"icon_url": "<string>",
"is_priority": true,
"logo_url": "<string>"
},
"reference_id": "my_favourite_transaction_231098",
"request_id": "req_Y9m5aZpUM3aAeC6xb497Pc",
"timestamp": "2021-11-12T10:38:05Z",
"transaction_code": "card"
}
}EnrichedTransactions
Get apitransactions
Get enriched transaction
GET
/
api
/
transactions
/
{reference_id_or_heron_id}
cURL
curl --request GET \
--url https://app.herondata.io/api/transactions/{reference_id_or_heron_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://app.herondata.io/api/transactions/{reference_id_or_heron_id}"
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://app.herondata.io/api/transactions/{reference_id_or_heron_id}', 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://app.herondata.io/api/transactions/{reference_id_or_heron_id}",
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://app.herondata.io/api/transactions/{reference_id_or_heron_id}"
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://app.herondata.io/api/transactions/{reference_id_or_heron_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.herondata.io/api/transactions/{reference_id_or_heron_id}")
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{
"transaction_enriched": {
"amount": -42.42,
"description": "GOOGLE *ADS12340929 [email protected] US",
"account_id": "checking_account_202348",
"account_number": "1234567890",
"annotation": {
"annotator": {},
"category": {
"label": "Rent",
"heron_id": "ctg_bp8ZUdwCTfeR9LnfZ7KZT2"
},
"confidence": 123,
"model_version": "<string>"
},
"balance": 423,
"counterparty": "GOOGLE",
"currency": "USD",
"data_source_account_heron_id": "dsa_8HL69cGDYQ8mVKuqdXqEy8",
"data_source_heron_id": "dso_oEQr7yYkGgBoAssnLbJ67n",
"end_user_id": "my_best_customer_203948",
"features": {
"description_clean": "GOOGLE ADS",
"duplicate_of_id": "txn_fSchpXB9w5VxUM8gAjWTtv",
"has_matching_transaction": true,
"is_potential_duplicate": true,
"is_recurring": true
},
"heron_id": "txn_a5aWTVwANezaoh2nZSM8iC",
"last_updated": "2026-07-22T20:16:15.390709+00:00",
"merchant": {
"name": "<string>",
"url": "<string>",
"categories": [
{
"code": "7311",
"description": "Advertising services",
"slug": "advertising_services"
}
],
"heron_id": "mrc_DskcuiJdXnR345BUM6Pr5u",
"icon_url": "<string>",
"is_priority": true,
"logo_url": "<string>"
},
"reference_id": "my_favourite_transaction_231098",
"request_id": "req_Y9m5aZpUM3aAeC6xb497Pc",
"timestamp": "2021-11-12T10:38:05Z",
"transaction_code": "card"
}
}Was this page helpful?
⌘I