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: for lines entered directly, the calculation directive (inclusive,exclusive, ornone); for lines set by categorising a bank import, the VAT scheme classification (standard,reduced,zero,exempt,outside_scope, orreverse_charge); ornullcontactId,contactName: optional contact referencedescription: optional line-level description
The totals object confirms the balance: debit and credit
are equal, and balanced is true.
Path parameters
idstringrequiredTransaction ID (e.g. txn_42). Must use the transaction prefix.
Response
200Full transaction with all journal lines, account/contact references, VAT details, reconciliation status, and debit/credit totals.
Show response fields
createdAtstringdate-timecreatedBystringcreatedByNamestringdatestringdescriptionstringidstringisReconciledbooleanlinesarray<object>Show child attributes
accountCodestringaccountIdstringaccountNamestringaccountTypestringamountintegercontactIdstringcontactNamestringdescriptionstringnullableidstringvatAmountstringnullablevatRatestringnullablevatTreatmentstringnullablemetadataobjectperiodIdstringnullablereconciledAtstringnullablereferencestringsourceIdstringsourceTypestringstatusstringtotalsobjectShow child attributes
balancedbooleancreditintegerdebitintegerupdatedAtstringdate-timeError codes
400Invalid transaction ID format.
404Transaction not found.