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, 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
  • vatTreatmentinclusive, exclusive, none, or null
  • contactId, contactName — optional contact reference
  • description — 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 required
Transaction 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 string
description string
id string
lines array<object>
Show child attributes
accountCode string
accountId string
accountName string
accountType string
amount integer
contactId string
contactName string
description string nullable
id string
vatAmount string nullable
vatRate string nullable
vatTreatment string nullable
status string
totals object
Show child attributes
balanced boolean
credit integer
debit integer

Error codes

400 Invalid transaction ID format.
404 Transaction not found.