---
title: "List transactions for a job"
method: GET
path: "/v1/imports/contexts/{contextId}/jobs/{jobId}/transactions"
tags: ["Ingestion"]
---

# List transactions for a job

`GET /v1/imports/contexts/{contextId}/jobs/{jobId}/transactions`

## Request

- Base URL: `https://identity.sandbox.lerian.net`
- URL: `https://identity.sandbox.lerian.net/v1/imports/contexts/{contextId}/jobs/{jobId}/transactions`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lerian/apis/identity-plugin/docs/v1/imports/contexts/:contextId/jobs/:jobId/transactions/get.ts> (a function with typed inputs; its response is checked against the schema)

Use this endpoint to retrieve all transactions extracted from an ingestion job. You can sort the results by various fields. The response uses cursor-based pagination.

## Path parameters

- `contextId` string, required
- `jobId` string, required

## Query parameters

- `limit` integer
- `cursor` string
- `sort_order` 'asc' | 'desc'
- `sort_by` 'id' | 'created_at' | 'date' | 'status' | 'extraction_status'

## Headers

- `X-Request-Id` string

## Response `200`

Indicates that the request was successful and the response contains the expected data.

- ListTransactionsResponse: Cursor-paginated list of transactions
  - `hasMore` boolean
  - `items` TransactionResponse[]: List of transactions
    - `amount` string: Transaction amount as string
    - `contextId` string: Context ID this transaction belongs to
    - `createdAt` string: Creation timestamp in RFC3339 format
    - `currency` string: Currency code
    - `date` string: Transaction date in RFC3339 format
    - `description` string: Description of the transaction
    - `externalId` string: External identifier from the source system
    - `extractionStatus` 'PENDING' | 'EXTRACTED' | 'FAILED': Extraction status
    - `id` string: Unique identifier for the transaction
    - `jobId` string: Job ID that ingested this transaction
    - `sourceId` string: Source ID this transaction belongs to
    - `status` 'PENDING' | 'MATCHED' | 'UNMATCHED': Current matching status
  - `limit` integer
  - `nextCursor` string
  - `prevCursor` string

## Other responses

- `400`: The request contains invalid parameters or payload.
- `401`: The request lacks valid authentication credentials.
- `403`: You do not have permission to access this resource.
- `404`: The requested resource was not found.
- `500`: An unexpected error occurred on the server.

---

[API](https://skmtc.dev/lerian/apis/identity-plugin.md) - [All operations](https://skmtc.dev/lerian/apis/identity-plugin/llms.txt) - [OpenAPI document](https://skmtc.dev/lerian/apis/identity-plugin/revisions/25daba385532?raw)
