---
title: "List journal entries linked to a customer transaction"
method: GET
path: "/accountant/companies/{customerId}/transactions/{transactionId}/journal-entries"
tags: ["Accountant Portal", "Journal Entries"]
---

# List journal entries linked to a customer transaction

`GET /accountant/companies/{customerId}/transactions/{transactionId}/journal-entries`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/transactions/{transactionId}/journal-entries`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Response `200`

Journal entries linked by source or line transaction id

- JournalEntriesListResponse
  - `success` boolean
  - `data` JournalEntry[]
    - `id` string, uuid
    - `companyId` string, uuid
    - `entityId` string, uuid, nullable: Concrete legal posting entity. Null is legacy data and resolves to the primary entity.
    - `entryDate` string, date
    - `description` string
    - `sourceType` 'transaction' | 'document' | 'adjustment' | 'system'
    - `sourceId` string, uuid, nullable
    - `periodId` string, uuid, nullable
    - `status` 'posted' | 'void'
    - `createdByUserId` string, uuid, nullable
    - `createdAt` string, date-time
    - `deletedAt` string, date-time, nullable
    - `deletedByUserId` string, uuid, nullable
    - `relatedJeId` string, uuid, nullable
    - `adjustmentReason` string, nullable
    - `isClosingEntry` boolean: A period-end closing entry (a system entry keyed on one of the company's periods). Reports leave these out of the P&L.
    - `sourceLabel` string
    - `sourceLink` object, nullable
      - `kind` string
      - `id` string
    - `lines` JournalLine[]
      - `id` string, uuid, required
      - `journalEntryId` string, uuid, required
      - `glAccountId` string, uuid, required
      - `classId` string, uuid, nullable: Line-level class dimension for downstream reporting. Accountant-portal responses always carry this field. Customer-facing responses do not carry it on journal lines.
      - `className` string, nullable: Name of the class in `classId`, resolved from the company's class list. Accountant-portal responses only, present when the class is known.
      - `classStatus` 'draft' | 'active' | 'inactive': Status of the class in `classId`. Accountant-portal responses only; never returned to the customer app.
      - `debitCents` integer, required
      - `creditCents` integer, required
      - `currency` string, required
      - `memo` string, nullable
      - `transactionId` string, uuid, nullable
      - `documentId` string, uuid, nullable
  - `meta` PaginationMeta
    - `nextCursor` string, nullable
    - `hasMore` boolean

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) · [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) · [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/20090ea32b0d?raw)
