> This page is for version v2.
> For other versions, use one of these documentation indexes:
> - v1 (default): https://developers.outpave.com/v1/llms.txt
> - v2: https://developers.outpave.com/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.outpave.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.outpave.com/_mcp/server.

# List all journal entries

GET https://api.outpave.com/api/v2/journalEntries

Lists a financial account's journal entries in ascending `sequence` order.
Sequences start at 1 with the account's `OPENING_BALANCE` entry and have
no gaps. Entries never change once written.

`afterSequence` is exclusive and `throughSequence` inclusive. Leave out
`throughSequence` on the first page: the response fixes it at the newest
entry. Send that `pageInfo.throughSequence` back with `afterSequence` set to
`pageInfo.nextAfterSequence` until `hasNextPage` is `false`, so entries
written while you read never shift a page. To read newer entries later,
start again with `afterSequence` set to the last `throughSequence`.

Every entry carries its full double-entry posting in `lines`, and in each
currency its debits equal its credits. Adding up the lines of every entry
from sequence 1 gives each ledger account's balance, with a debit adding
to `CASH` and `RECEIVABLE` and a credit adding to `HOLDS`, `AVAILABLE` and
`INCOMING`. `balanceImpact` and `balanceAfter` summarize those accounts:
`posted` is `CASH`, `pendingIn` is `RECEIVABLE` and `pendingOut` is
`HOLDS`. A correction never changes an entry: it adds a `CORRECTION` entry
that reverses the lines it replaces, followed by the corrected entry.

A journal holds only the financial account's own books: movements within
the account and its cards' accounts. Movements between accounts outside
them, such as treasury accounts, never appear. Money that crosses into or
out of the account is recorded as its receipt or payment, balanced within
its own ledger accounts, without the other side's postings. A move between
the account and one of its cards changes none of its balances, so it is a
`FUNDING` entry with an `amount` of zero whose lines cancel out.

On a credit account, what the account owes is settled money below zero:
a purchase lowers `CASH`, and a return, a reversal after settlement or a
repayment raises it. The credit the card issuer extends is the account's
own `CREDIT_LINE`, the balancing side of a credit limit change, so the
card issuer's books for the credit it extends never appear.

The journal is available only for financial accounts enabled for it;
others are refused with `NOT_ELIGIBLE`.

Reference: https://developers.outpave.com/v2/api-reference/transactions-api/journal-entries/list-journal-entries

## Authentication

- `Authorization` header (bearer token, required) — Access token from `POST /access-token`. Valid for at most 30 minutes.

## Request

### Query parameters

- `financialAccountId` (string, required) — The financial account whose journal to read.
- `afterSequence` (integer, optional) — Only entries with a greater `sequence`. Leave it out, or send `0`, to start from the first entry.
- `throughSequence` (integer, optional) — Only entries up to and including this `sequence`. Leave it out on the first page and send back the response's `pageInfo.throughSequence` on every later page. It cannot be greater than the newest entry's sequence.
- `limit` (integer, optional, default: 25) — The most items to return, from 1 to 100.

### Headers

- `Account-Holder` (string, optional) — The account holder a platform API key acts on. Platform keys must send it on account holder operations. A company API key acts on its own account holder; it may omit the header or send its own account holder ID.
- `X-Request-Id` (string, optional) — Your own correlation ID for this request. It is recorded with the request. The `X-Request-Id` response header is always generated by the server.

## Response

### 200

A page of journal entries.

- `data` (list of JournalEntry, required) — The journal entries on this page.
- `pageInfo` (JournalEntryPageInfo, required)

## Errors

### 400 Bad Request Error

The request does not match the contract.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 401 Unauthorized Error

The credential is missing or invalid.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 403 Forbidden Error

The credential is valid but cannot perform this operation.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 422 Unprocessable Entity Error

The request matches the contract but a business rule refused it.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 429 Too Many Requests Error

The request budget is exhausted.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 500 Internal Server Error

An unexpected error occurred.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 503 Service Unavailable Error

A service this request depends on is unavailable.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

## Types

### JournalEntry

One immutable change to a financial account's balance. `lines` is the change posted to the account's ledger accounts, `balanceImpact` its sum in the three parts of the balance, and `balanceAfter` the balance once it applied.

- `id` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `object` (enum, required) — Always `journalEntry`.
  - Allowed values: `journalEntry`
- `livemode` (boolean, required) — `true` on a live platform in production, `false` on a Sandbox platform and outside production.
- `createdAt` (datetime, required) — When the entry was written.
- `accountHolderId` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `financialAccountId` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `sequence` (integer, required) — The entry's position in the account's journal, from 1 with no gaps.
- `type` (enum, required) — What the entry records. `OPENING_BALANCE` is always sequence 1. Outbound funding is `FUNDING` with a negative `amount`, and a move between the account and one of its cards is `FUNDING` with an `amount` of zero. On a credit account, a repayment is `FUNDING` and a change to the credit limit is `CREDIT_LIMIT`, with an `amount` of zero, moving `CREDIT_LINE` and `AVAILABLE` together. `DISPUTE` is money a card dispute credits to the account, with a positive `amount`, or takes back, with a negative one; its `authorizationId` is the disputed purchase's. Accept values not listed here. `REVERSAL` means held money was released. On some accounts a purchase that went through also releases its hold as a `REVERSAL`, and records the spend as a separate `CAPTURE` with the same `authorizationId` without changing the pending balance again. A `REVERSAL` alone does not mean the purchase was cancelled; read the purchase outcome from the entry's `transactionId`.
  - Allowed values: `OPENING_BALANCE`, `AUTHORIZATION`, `CAPTURE`, `REVERSAL`, `REFUND`, `FUNDING`, `FUNDING_RETURN`, `CREDIT_LIMIT`, `FEE`, `DISPUTE`, `CORRECTION`
- `amount` (Money, required) — The signed movement: the change to `posted`, or the change to `pendingIn` less `pendingOut` when nothing settled. An authorization and its capture each show the purchase amount, so add up `balanceImpact`, not `amount`.
- `lines` (list of JournalLine, required) — The entry's double-entry posting: in each currency the `DEBIT` lines add up to the `CREDIT` lines. The `OPENING_BALANCE` entry takes each ledger account from zero to its balance when the journal started, and has no lines when every account started at zero.
- `balanceImpact` (JournalBalance, required) — The account's money in three parts, from the account holder's side. `posted` is settled money and is negative when the account owes. `pendingOut` is authorized outgoing money not yet settled, and `pendingIn` incoming money not yet settled.
- `balanceAfter` (JournalBalance, required) — The account's money in three parts, from the account holder's side. `posted` is settled money and is negative when the account owes. `pendingOut` is authorized outgoing money not yet settled, and `pendingIn` incoming money not yet settled.
- `effectiveAt` (datetime, required) — When the change happened at the card issuer.
- `transactionId` (string, optional) — The transaction the entry belongs to, worked out when you read. It is left out when no single transaction matches; match on `providerReferences.authorizationId` instead.
- `providerReferences` (JournalProviderReferences, optional) — The card issuer's identifiers for what this entry was posted from.

### JournalEntryPageInfo

- `hasNextPage` (boolean, required) — Whether entries up to `throughSequence` remain to be read.
- `throughSequence` (integer, required) — The fixed upper bound of this read. Send it back on every later page.
- `nextAfterSequence` (integer, optional) — The `afterSequence` for the next page. Present only when `hasNextPage` is `true`.

### ProblemError

One problem with the request. At most one of `pointer`, `parameter` and `header` is present.

- `detail` (string, required) — What is wrong.
- `pointer` (string, optional) — JSON Pointer (RFC 6901) into the request body, written as a URI fragment, for example `#/policy/dailyLimit`.
- `parameter` (string, optional) — Name of the query or path parameter.
- `header` (string, optional) — Name of the request header, in lower case.
- `code` (string, optional) — Machine-readable reason for this item, when one exists.

### Money

An amount in the currency's minor unit, for example cents for USD.

- `value` (integer, required) — Whole minor units. Signed for balances and transaction amounts.
- `currency` (string, required) — ISO 4217 alphabetic currency code, for example `USD`.

### JournalLine

One side of an entry's posting, on one ledger account.

- `ledgerAccount` (enum, required) — A ledger account of the financial account, from the account holder's side. `CASH` is settled money the account holds and `RECEIVABLE` incoming money not yet settled; both grow with debits. `HOLDS` is authorized outgoing money not yet settled, `AVAILABLE` money the account holder can spend, and `INCOMING` money credited to the account that cannot be spent yet, either still settling or held by the card issuer; these grow with credits. On a credit account, `CREDIT_LINE` is the credit the card issuer extends, which grows with debits, and `CASH` goes below zero by what the account owes, so `CASH` plus `CREDIT_LINE` equals `HOLDS` plus `AVAILABLE`. Accept values not listed here.
  - Allowed values: `CASH`, `RECEIVABLE`, `HOLDS`, `AVAILABLE`, `INCOMING`, `CREDIT_LINE`
- `side` (enum, required) — Whether the line debits or credits the ledger account.
  - Allowed values: `DEBIT`, `CREDIT`
- `amount` (Money, required) — The amount the line moves, always greater than zero.

### JournalBalance

The account's money in three parts, from the account holder's side. `posted` is settled money and is negative when the account owes. `pendingOut` is authorized outgoing money not yet settled, and `pendingIn` incoming money not yet settled.

- `posted` (Money, required) — An amount in the currency's minor unit, for example cents for USD.
- `pendingOut` (Money, required) — An amount in the currency's minor unit, for example cents for USD.
- `pendingIn` (Money, required) — An amount in the currency's minor unit, for example cents for USD.

### JournalProviderReferences

The card issuer's identifiers for what this entry was posted from.

- `financialEventId` (string, required) — The issuer's ID for the financial event behind the entry.
- `ledgerEntryIds` (list of string, required) — The issuer's ledger entries this entry was posted from.
- `authorizationId` (string, optional) — The card authorization the entry belongs to, for card activity. It equals the `authorizationId` of the matching transaction.

## Examples

### A page with more to read

**Response**

```json
{
  "data": [
    {
      "id": "NWI4ZTJmNGEtMWMzZC00ZTVmLThhOWItMGMxZDJlM2Y0YTViOjQy",
      "object": "journalEntry",
      "livemode": false,
      "createdAt": "2026-10-01T15:04:06.311Z",
      "accountHolderId": "string",
      "financialAccountId": "5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
      "sequence": 42,
      "type": "AUTHORIZATION",
      "amount": {
        "value": -4250,
        "currency": "USD"
      },
      "lines": [
        {
          "ledgerAccount": "AVAILABLE",
          "side": "DEBIT",
          "amount": {
            "value": 4250,
            "currency": "USD"
          }
        },
        {
          "ledgerAccount": "HOLDS",
          "side": "CREDIT",
          "amount": {
            "value": 4250,
            "currency": "USD"
          }
        }
      ],
      "balanceImpact": {
        "posted": {
          "value": 0,
          "currency": "USD"
        },
        "pendingOut": {
          "value": 4250,
          "currency": "USD"
        },
        "pendingIn": {
          "value": 0,
          "currency": "USD"
        }
      },
      "balanceAfter": {
        "posted": {
          "value": 125000,
          "currency": "USD"
        },
        "pendingOut": {
          "value": 4250,
          "currency": "USD"
        },
        "pendingIn": {
          "value": 0,
          "currency": "USD"
        }
      },
      "effectiveAt": "2026-10-01T15:04:05.000Z",
      "transactionId": "0b6f2c5e-8d1a-4b7e-9c3f-2a5d7e1f4c80",
      "providerReferences": {
        "financialEventId": "fe_7a2c9e4b1d3f",
        "ledgerEntryIds": [
          "le_1c3e5a7b9d2f",
          "le_2d4f6b8c0e3a"
        ],
        "authorizationId": "auth_8f3c2a1d9e7b"
      }
    }
  ],
  "pageInfo": {
    "hasNextPage": true,
    "throughSequence": 57,
    "nextAfterSequence": 42
  }
}
```

**SDK Code**

```python A page with more to read
import requests

url = "https://api.outpave.com/api/v2/journalEntries"

querystring = {"afterSequence":"42","financialAccountId":"5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b","throughSequence":"57"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript A page with more to read
const url = 'https://api.outpave.com/api/v2/journalEntries?afterSequence=42&financialAccountId=5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b&throughSequence=57';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go A page with more to read
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.outpave.com/api/v2/journalEntries?afterSequence=42&financialAccountId=5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b&throughSequence=57"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby A page with more to read
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v2/journalEntries?afterSequence=42&financialAccountId=5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b&throughSequence=57")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java A page with more to read
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.outpave.com/api/v2/journalEntries?afterSequence=42&financialAccountId=5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b&throughSequence=57")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php A page with more to read
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.outpave.com/api/v2/journalEntries?afterSequence=42&financialAccountId=5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b&throughSequence=57', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp A page with more to read
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v2/journalEntries?afterSequence=42&financialAccountId=5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b&throughSequence=57");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift A page with more to read
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.outpave.com/api/v2/journalEntries?afterSequence=42&financialAccountId=5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b&throughSequence=57")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### The last page of a fixed window

**Response**

```json
{
  "data": [],
  "pageInfo": {
    "hasNextPage": false,
    "throughSequence": 57
  }
}
```

**SDK Code**

```python The last page of a fixed window
import requests

url = "https://api.outpave.com/api/v2/journalEntries"

querystring = {"afterSequence":"42","financialAccountId":"5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b","throughSequence":"57"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript The last page of a fixed window
const url = 'https://api.outpave.com/api/v2/journalEntries?afterSequence=42&financialAccountId=5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b&throughSequence=57';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go The last page of a fixed window
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.outpave.com/api/v2/journalEntries?afterSequence=42&financialAccountId=5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b&throughSequence=57"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby The last page of a fixed window
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v2/journalEntries?afterSequence=42&financialAccountId=5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b&throughSequence=57")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java The last page of a fixed window
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.outpave.com/api/v2/journalEntries?afterSequence=42&financialAccountId=5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b&throughSequence=57")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php The last page of a fixed window
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.outpave.com/api/v2/journalEntries?afterSequence=42&financialAccountId=5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b&throughSequence=57', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp The last page of a fixed window
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v2/journalEntries?afterSequence=42&financialAccountId=5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b&throughSequence=57");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift The last page of a fixed window
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.outpave.com/api/v2/journalEntries?afterSequence=42&financialAccountId=5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b&throughSequence=57")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```