Get transaction details
GET
https://app.speybooks.com/api/v1/transactions/{id}Retrieves a single transaction with full line-level detail, including account codes, contact names, VAT fields, and calculated totals.
Line Fields
Each line includes:
id— prefixed line ID (e.g.line_101)accountId,accountCode,accountName,accountTypeamount— in minor units (positive = debit, negative = credit)vatRate— integer percentage (e.g. 20), ornullvatAmount— API-calculated VAT component in minor units, ornullif no VAT treatment was specifiedvatTreatment—inclusive,exclusive,none, ornullcontactId,contactName— optional contact referencedescription— optional line-level description
The totals object confirms the balance: debit and credit should be equal, and balanced should be true.
Path parameters
id string requiredTransaction ID (e.g. txn_42). Must use the transaction prefix.
Response
200 Full transaction with all journal lines, account/contact references, VAT details, reconciliation status, and debit/credit totals.
Show response fields
date stringdescription stringid stringlines array<object>Show child attributes
accountCode stringaccountId stringaccountName stringaccountType stringamount integercontactId stringcontactName stringdescription string nullableid stringvatAmount string nullablevatRate string nullablevatTreatment string nullablestatus stringtotals objectShow child attributes
balanced booleancredit integerdebit integerError codes
400 Invalid transaction ID format.
404 Transaction not found.