Get User Bank Transaction V2
curl --request GET \
--url https://api.mytruv.com/v2/users/transactions/{transaction_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mytruv.com/v2/users/transactions/{transaction_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mytruv.com/v2/users/transactions/{transaction_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://api.mytruv.com/v2/users/transactions/{transaction_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 => [
"Authorization: Bearer <token>"
],
]);
$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://api.mytruv.com/v2/users/transactions/{transaction_id}"
req, _ := http.NewRequest("GET", url, nil)
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://api.mytruv.com/v2/users/transactions/{transaction_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mytruv.com/v2/users/transactions/{transaction_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"count": 123,
"accounts": [
{
"type": "CHECKING",
"balances": {
"currency_code": "USD",
"balance": "100.00",
"available_balance": "50.99",
"credit_limit": "200.00"
},
"id": "24d7e80942ce4ad58a93f70ce4115f5c",
"created_at": "2022-05-04T11:30:00Z",
"updated_at": "2022-05-04T12:00:00Z",
"subtype": "MONEY_MARKET",
"mask": "6789",
"nickname": "My account"
}
],
"transactions": [
{
"external_id": "external_key_243901",
"description": "Some transaction",
"status": "POSTED",
"type": "DEBIT",
"transacted_at": "2022-05-04T11:30:00Z",
"location": {
"latitude": "40.730610",
"longitude": "-73.935242"
},
"id": "24d7e80942ce4ad58a93f70ce4115f5c",
"created_at": "2022-05-04T11:30:00Z",
"updated_at": "2022-05-04T12:00:00Z",
"account_id": "68a7e80942ce4ad58a93f70ce411549a",
"amount": "100.00",
"currency_code": "USD",
"check_number": "123456",
"categories": [
"Transfer"
],
"posted_at": "2022-05-04T11:30:00Z",
"memo": "",
"merchant_name": "Starbucks",
"merchant_category_code": 5967
}
],
"daily_totals": [
{
"date": "<string>",
"net_total": "<string>",
"transaction_count": 123
}
],
"merchant_logos": {},
"next": "<string>",
"previous": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Transactions
Get Transaction
Fetch a single transaction by id, including hidden and deleted rows.
Unlike the list endpoint, this resolves transactions the user has hidden or deleted so the detail page can render a customized row reached by direct URL. Scoped to the authenticated applicant; an unknown or cross-tenant id returns 404 and never leaks another user’s row.
Returns the same BankTransactionsReport shape as the list endpoint, with
a single transaction, its owning account (when still connected), and the
matching merchant logo.
GET
/
v2
/
users
/
transactions
/
{transaction_id}
Get User Bank Transaction V2
curl --request GET \
--url https://api.mytruv.com/v2/users/transactions/{transaction_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mytruv.com/v2/users/transactions/{transaction_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mytruv.com/v2/users/transactions/{transaction_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://api.mytruv.com/v2/users/transactions/{transaction_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 => [
"Authorization: Bearer <token>"
],
]);
$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://api.mytruv.com/v2/users/transactions/{transaction_id}"
req, _ := http.NewRequest("GET", url, nil)
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://api.mytruv.com/v2/users/transactions/{transaction_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mytruv.com/v2/users/transactions/{transaction_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"count": 123,
"accounts": [
{
"type": "CHECKING",
"balances": {
"currency_code": "USD",
"balance": "100.00",
"available_balance": "50.99",
"credit_limit": "200.00"
},
"id": "24d7e80942ce4ad58a93f70ce4115f5c",
"created_at": "2022-05-04T11:30:00Z",
"updated_at": "2022-05-04T12:00:00Z",
"subtype": "MONEY_MARKET",
"mask": "6789",
"nickname": "My account"
}
],
"transactions": [
{
"external_id": "external_key_243901",
"description": "Some transaction",
"status": "POSTED",
"type": "DEBIT",
"transacted_at": "2022-05-04T11:30:00Z",
"location": {
"latitude": "40.730610",
"longitude": "-73.935242"
},
"id": "24d7e80942ce4ad58a93f70ce4115f5c",
"created_at": "2022-05-04T11:30:00Z",
"updated_at": "2022-05-04T12:00:00Z",
"account_id": "68a7e80942ce4ad58a93f70ce411549a",
"amount": "100.00",
"currency_code": "USD",
"check_number": "123456",
"categories": [
"Transfer"
],
"posted_at": "2022-05-04T11:30:00Z",
"memo": "",
"merchant_name": "Starbucks",
"merchant_category_code": 5967
}
],
"daily_totals": [
{
"date": "<string>",
"net_total": "<string>",
"transaction_count": 123
}
],
"merchant_logos": {},
"next": "<string>",
"previous": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication with a personal access token (prefix pat_). Generate tokens in the Truv web app under Settings → API keys.
Path Parameters
Response
A single transaction by id, including hidden or deleted rows.
Was this page helpful?
⌘I