Get transaction details

GEThttps://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, accountType
  • amount: in minor units (positive = debit, negative = credit)
  • vatRate: integer percentage (e.g. 20), or null
  • vatAmount: API-calculated VAT component in minor units, or null if no VAT treatment was specified
  • vatTreatment: for lines entered directly, the calculation directive (inclusive, exclusive, or none); for lines set by categorising a bank import, the VAT scheme classification (standard, reduced, zero, exempt, outside_scope, or reverse_charge); or null
  • contactId, contactName: optional contact reference
  • description: optional line-level description

The totals object confirms the balance: debit and credit are equal, and balanced is true.

Path parameters

idstringrequired
Transaction 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-time
createdBystring
createdByNamestring
datestring
descriptionstring
idstring
isReconciledboolean
linesarray<object>
Show child attributes
accountCodestring
accountIdstring
accountNamestring
accountTypestring
amountinteger
contactIdstring
contactNamestring
descriptionstringnullable
idstring
vatAmountstringnullable
vatRatestringnullable
vatTreatmentstringnullable
metadataobject
periodIdstringnullable
reconciledAtstringnullable
referencestring
sourceIdstring
sourceTypestring
statusstring
totalsobject
Show child attributes
balancedboolean
creditinteger
debitinteger
updatedAtstringdate-time

Error codes

400Invalid transaction ID format.
404Transaction not found.