Get Event Transaction
curl --request GET \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId} \
--header 'Authorization: <api-key>'import requests
url = "https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId}', 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.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId}",
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: <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.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440010",
"eventId": "550e8400-e29b-41d4-a716-446655440001",
"payeeId": "550e8400-e29b-41d4-a716-446655440051",
"transactionType": "alae_invoice",
"status": "owed",
"amount": 75000,
"invoiceNumber": "INV-2025-002",
"invoiceDate": "2025-01-18",
"dueDate": "2025-02-18",
"paidDate": null,
"description": "Legal fees",
"voidReason": null,
"isDraft": false,
"isForwardedInvoice": false,
"lineItems": [
{
"id": "550e8400-e29b-41d4-a716-446655440060",
"lineItemName": "Legal Fees",
"description": "Initial consultation",
"amount": 50000
},
{
"id": "550e8400-e29b-41d4-a716-446655440061",
"lineItemName": "Legal Fees",
"description": "Document review",
"amount": 25000
}
],
"createdAt": "2025-01-18T09:00:00.000Z",
"createdBy": "google-oauth2|123456789",
"updatedAt": null,
"updatedBy": null
}Event Financials
Get Event Transaction
Returns a single financial transaction by ID, including line items (itemizations).
Required permission: company.event:export
GET
/
api
/
external
/
companies
/
{companyId}
/
events
/
{eventId}
/
financials
/
transactions
/
{transactionId}
Get Event Transaction
curl --request GET \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId} \
--header 'Authorization: <api-key>'import requests
url = "https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId}', 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.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId}",
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: <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.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/financials/transactions/{transactionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440010",
"eventId": "550e8400-e29b-41d4-a716-446655440001",
"payeeId": "550e8400-e29b-41d4-a716-446655440051",
"transactionType": "alae_invoice",
"status": "owed",
"amount": 75000,
"invoiceNumber": "INV-2025-002",
"invoiceDate": "2025-01-18",
"dueDate": "2025-02-18",
"paidDate": null,
"description": "Legal fees",
"voidReason": null,
"isDraft": false,
"isForwardedInvoice": false,
"lineItems": [
{
"id": "550e8400-e29b-41d4-a716-446655440060",
"lineItemName": "Legal Fees",
"description": "Initial consultation",
"amount": 50000
},
{
"id": "550e8400-e29b-41d4-a716-446655440061",
"lineItemName": "Legal Fees",
"description": "Document review",
"amount": 25000
}
],
"createdAt": "2025-01-18T09:00:00.000Z",
"createdBy": "google-oauth2|123456789",
"updatedAt": null,
"updatedBy": null
}Authorizations
Path Parameters
Response
Transaction details with line items
A financial transaction with full details including line items
Was this page helpful?
