> ## Documentation Index
> Fetch the complete documentation index at: https://moneykit.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Link Transactions

> Returns transactions for the accounts associated with a link.

<Tip>Results are paginated and returned in reverse chronological order.</Tip>

<Note>
  Note that this endpoint **does not** trigger a fetch of transactions from the institution; it merely returns
  transactions that have already been fetched, either because `prefetch` was requested when the link was created, or
  because of scheduled or on-demand updates. MoneyKit checks for updated account data, including transactions,
  periodically throughout the day, but the update frequency can vary, depending on the downstream data provider, the
  institution, and whether one or both provide webhook-based updates.
</Note>

<Warning>
  To force a check for updated transactions, you can use the [/products](/products/refresh-products) endpoint.
</Warning>

If you have requested prefetch or an on-demand update, you should check the `refreshed_at` date for this product in the returned response, and compare that against the previous `refreshed_at` date, which you can get from any previous response for this or any other account or link request.

If the `refreshed_at date` has not increased, then updated data is not yet available.

<div className="tailwind hidden">
  ```
  curl -i -X GET \
    'http://localhost:8080/links/{id}/transactions?account_ids=string&page=1&size=50&start_date=string&end_date=string' \
    -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
    -H 'moneykit-version: 2023-02-18'
  ```

  ```
  {
    "total": 82,
    "page": 1,
    "size": 50,
    "transactions": [
      {
        "transaction_id": "c7318ff7-257c-490e-8242-03a815b223b7",
        "account_id": "a3ba443a-257c-490e-8242-03a84789d39f",
        "amount": 384.05,
        "type": "debit",
        "currency": "USD",
        "date": "2023-02-16T00:00:00",
        "datetime": "2023-02-16T09:14:11",
        "description": "Regina's Mulberry",
        "raw_description": "Regina's Mulberry #1402 T48999-84",
        "pending": true,
        "category": "food_and_drinks.restaurants"
      }
    ],
    "accounts": [
      {
        "account_id": "a3ba443a-257c-490e-8242-03a84789d39f",
        "account_type": "checking",
        "name": "Premier Checking",
        "account_mask": "3748",
        "balances": {
          "currency": "USD",
          "available": 340.12,
          "current": 445.89,
          "limit": 500
        }
      }
    ],
    "link": {
      "link_id": "mk_eqkWN34UEoa2NxyALG8pcV",
      "institution_id": "chase",
      "institution_name": "Chase",
      "provider": "mx",
      "state": "connected",
      "last_synced_at": "2023-02-16T09:14:11",
      "tags": [
        "user_type:admin"
      ],
      "products": {
        "accounts": {
          "refreshed_at": "2023-02-16T09:14:11",
          "last_attempted_at": "2023-02-16T09:14:11"
        },
        "identity": {
          "refreshed_at": "2023-02-16T09:14:11",
          "last_attempted_at": "2023-02-16T09:14:11",
          "settings": {
            "required": true,
            "prefetch": false
          }
        }
      }
    }
  }
  ```
</div>
