---
title: "Get transaction history for authenticated user with pagination, filtering, sorting, and field selection"
method: GET
path: "/api/v1/transactions/"
tags: ["transactions"]
---

# Get transaction history for authenticated user with pagination, filtering, sorting, and field selection

`GET /api/v1/transactions/`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/transactions/`
- Auth: HTTP bearer

Get transaction history for authenticated user with pagination, filtering, sorting, and field selection

## Query parameters

- `limit` number
- `offset` number
- `startDate` string
- `endDate` string
- `account` 'Checking' | 'Savings' | 'LandTokens' | 'Points' | 'PrestigePoints'
- `fields` string
- `sort` string

## Response `200`

Default Response

- object
  - `success` true, required
  - `data` object, required
    - `transactions` object[], required
      - `id` number: Transaction ID
      - `type` string: Transaction type
      - `account` string: Account type
      - `amount` number: Transaction amount
      - `before` number: Balance before
      - `after` number: Balance after
      - `memo` string: Transaction memo
      - `timestamp` string: Transaction timestamp
      - `fromId` string, nullable: Sender Discord ID
      - `toId` string, nullable: Recipient Discord ID
      - `sender` object, nullable: Sender information
        - `username` string: Sender username
        - `image` string: Sender avatar
      - `recipient` object, nullable: Recipient information
        - `username` string: Recipient username
        - `image` string: Recipient avatar
      - `_links` object
  - `meta` object, required
    - `timestamp` number, required
    - `pagination` object, required
      - `total` number, required
      - `limit` number, required
      - `offset` number, required
      - `hasMore` boolean, required
  - `_links` object: HATEOAS pagination links
    - `self` object
      - `href` string, required
      - `rel` string, required
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
      - `type` string
    - `first` object
      - `href` string, required
      - `rel` string, required
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
      - `type` string
    - `prev` object
      - `href` string, required
      - `rel` string, required
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
      - `type` string
    - `next` object
      - `href` string, required
      - `rel` string, required
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
      - `type` string
    - `last` object
      - `href` string, required
      - `rel` string, required
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
      - `type` string

## Other responses

- `400`: Invalid query parameters
- `401`: Default Response
- `403`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/farmersonly/apis/farmersonly-club-api.md) - [All operations](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/llms.txt) - [OpenAPI document](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/revisions/b4fa9123ba90?raw)
