List all transactions
curl --request GET \
--url https://api.abacuslabs.co/transactions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.abacuslabs.co/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.abacuslabs.co/transactions', 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.abacuslabs.co/transactions",
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.abacuslabs.co/transactions"
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.abacuslabs.co/transactions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.abacuslabs.co/transactions")
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{
"meta": {
"hasPreviousPage": false,
"hasNextPage": true,
"cursor": "eyJpZCI6IjQ1NiJ9"
},
"data": [
{
"id": "b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f",
"name": "Office Supplies Purchase",
"amount": 150.75,
"currency": "USD",
"counterpartyName": "Spotify AB",
"date": "2024-05-01T12:00:00.000Z",
"category": {
"id": "office-supplies",
"name": "Office Supplies",
"color": "#FF5733",
"slug": "office-supplies"
},
"transactionType": "credit",
"status": "posted",
"internal": false,
"recurring": false,
"manual": false,
"frequency": "monthly",
"isFulfilled": true,
"note": "Paid with company credit card for office renovation",
"entityId": "<string>",
"entityType": "<string>",
"entityName": "<string>",
"entityCompanyName": "<string>",
"dealCode": "<string>",
"matchStatus": "<string>",
"matchedDealId": "<string>",
"dealMerchantName": "<string>",
"discrepancyType": "nsf",
"assigned": {
"id": "<string>",
"fullName": "<string>",
"avatarUrl": "<string>"
},
"account": {
"id": "a43dc3a5-6925-4d91-ac9c-4c1a34bdb388",
"name": "Company Credit Card",
"currency": "USD",
"connection": {
"id": "a43dc3a5-6925-4d91-ac9c-4c1a34bdb388",
"name": "Chase Bank",
"logoUrl": "https://logo.clearbit.com/chase.com"
}
},
"tags": [
{
"id": "b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b",
"name": "invoice"
},
{
"id": "c8e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7c",
"name": "travel"
}
],
"attachments": [
{
"id": "b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b",
"path": [
"e1f2d3c4-b5a6-7d8e-9f0a-1b2c3d4e5f6a",
"transactions",
"9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d",
"receipt.pdf"
],
"size": 1928716,
"type": "application/pdf",
"filename": "receipt.pdf"
}
],
"parentTransactionId": null
}
]
}Transactions
List all transactions
Retrieve a list of transactions for the authenticated team.
GET
/
transactions
List all transactions
curl --request GET \
--url https://api.abacuslabs.co/transactions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.abacuslabs.co/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.abacuslabs.co/transactions', 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.abacuslabs.co/transactions",
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.abacuslabs.co/transactions"
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.abacuslabs.co/transactions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.abacuslabs.co/transactions")
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{
"meta": {
"hasPreviousPage": false,
"hasNextPage": true,
"cursor": "eyJpZCI6IjQ1NiJ9"
},
"data": [
{
"id": "b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f",
"name": "Office Supplies Purchase",
"amount": 150.75,
"currency": "USD",
"counterpartyName": "Spotify AB",
"date": "2024-05-01T12:00:00.000Z",
"category": {
"id": "office-supplies",
"name": "Office Supplies",
"color": "#FF5733",
"slug": "office-supplies"
},
"transactionType": "credit",
"status": "posted",
"internal": false,
"recurring": false,
"manual": false,
"frequency": "monthly",
"isFulfilled": true,
"note": "Paid with company credit card for office renovation",
"entityId": "<string>",
"entityType": "<string>",
"entityName": "<string>",
"entityCompanyName": "<string>",
"dealCode": "<string>",
"matchStatus": "<string>",
"matchedDealId": "<string>",
"dealMerchantName": "<string>",
"discrepancyType": "nsf",
"assigned": {
"id": "<string>",
"fullName": "<string>",
"avatarUrl": "<string>"
},
"account": {
"id": "a43dc3a5-6925-4d91-ac9c-4c1a34bdb388",
"name": "Company Credit Card",
"currency": "USD",
"connection": {
"id": "a43dc3a5-6925-4d91-ac9c-4c1a34bdb388",
"name": "Chase Bank",
"logoUrl": "https://logo.clearbit.com/chase.com"
}
},
"tags": [
{
"id": "b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b",
"name": "invoice"
},
{
"id": "c8e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7c",
"name": "travel"
}
],
"attachments": [
{
"id": "b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b",
"path": [
"e1f2d3c4-b5a6-7d8e-9f0a-1b2c3d4e5f6a",
"transactions",
"9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d",
"receipt.pdf"
],
"size": 1928716,
"type": "application/pdf",
"filename": "receipt.pdf"
}
],
"parentTransactionId": null
}
]
}