Transaction Object

The Transaction object represents a financial transaction on an account.

Properties

id
string
required

Unique identifier for the transaction

accountId
string
required

The ID of the account this transaction belongs to

amount
object
required
status
enum
required

The status of the transaction: - pending - Transaction is pending - posted

  • Transaction has been posted - cancelled - Transaction was cancelled
type
enum
required

The type of the transaction: - credit - Money coming into the account - debit - Money going out of the account

description
string

The description of the transaction as it appears on the statement

date
timestamp
required

The date when the transaction occurred

createdAt
timestamp
required

The date when the transaction was first seen

Endpoints

Retrieve Transaction

Retrieves a single transaction by its ID.

POST /api/services/data/transactions/retrieve

Request

id
string
required

The ID of the transaction to retrieve

Response
{
  "id": "txn_12345",
  "accountId": "acc_12345",
  "amount": {
    "value": 2500,
    "currency": "GBP"
  },
  "status": "posted",
  "type": "debit",
  "description": "AMAZON.CO.UK",
  "date": "2024-01-26T15:30:00Z",
  "createdAt": "2024-01-27T10:00:00Z"
}

List Transactions

Returns a paginated list of transactions for an account.

POST /api/services/data/transactions/list

Request

accountId
string
required

The ID of the account to list transactions for

limit
number

Maximum number of transactions to return (default 50, max 100)

skip
number

Skip the first n transactions

dateFrom
string

Start date for transactions (ISO 8601 format)

dateTo
string

End date for transactions (ISO 8601 format)

Response
{
  "transactions": [
    {
      "id": "txn_12345",
      "accountId": "acc_12345",
      "amount": {
        "value": 2500,
        "currency": "GBP"
      },
      "status": "posted",
      "type": "debit",
      "description": "AMAZON.CO.UK",
      "category": "shopping",
      "date": "2024-01-26T15:30:00Z",
      "createdAt": "2024-01-27T10:00:00Z"
    }
  ],
  "hasMore": false
}