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>'
{
"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

Use format: ApiKey <your-api-key>

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