Skip to main content
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

Authorization
string
header
required

API key authentication. Include your API key in the Authorization header.

Path Parameters

companyId
string<uuid>
required

Company identifier

eventId
string<uuid>
required

Event identifier

transactionId
string<uuid>
required

Transaction identifier

Response

Transaction details with line items

A financial transaction with full details including line items

id
string<uuid>

Transaction identifier

eventId
string<uuid>

Associated event identifier

payeeId
string<uuid> | null

Associated payee identifier

transactionType
string

Transaction category identifier (e.g., "indemnity_invoice", "alae_invoice")

status
enum<string>

Status of a financial transaction

Available options:
owed,
paid,
approved,
void
amount
integer

Transaction amount in cents

invoiceNumber
string | null

Invoice number for the transaction

invoiceDate
string<date> | null

Invoice date (YYYY-MM-DD)

dueDate
string<date> | null

Payment due date (YYYY-MM-DD)

paidDate
string<date> | null

Date the transaction was paid (YYYY-MM-DD)

description
string | null

Transaction description

voidReason
string | null

Reason for voiding the transaction (only present if status is void)

isDraft
boolean

Whether the transaction is a draft

isForwardedInvoice
boolean

Whether the transaction is a forwarded invoice

createdAt
string<date-time>

When the transaction was created (ISO 8601)

createdBy
string | null

User ID who created the transaction

updatedAt
string<date-time> | null

When the transaction was last updated (ISO 8601)

updatedBy
string | null

User ID who last updated the transaction

lineItems
object[]

Line items (itemizations) for the transaction