---
title: "Retrieve an import batch"
method: GET
path: "/import_batches/{id}"
---

# Retrieve an import batch

`GET /import_batches/{id}`

Retrieve a single import batch by its unique ID.

## Path parameters

- `id` string, required

## Response `200`

Import batch retrieved successfully

- ImportBatch
  - `id` integer
  - `data_stream_key` string — Key of the data stream this import batch belongs to
  - `source` 'csv_upload' | 'nacha_upload' | 'bulk_api' — How the records were imported
  - `filename` string, nullable — Original filename for CSV uploads
  - `record_count` integer — Number of records in this batch
  - `total_credits` integer — Sum of credit amounts in cents
  - `total_debits` integer — Sum of debit amounts in cents
  - `net_amount` integer — Net amount in cents (credits minus debits)
  - `decimal_places` integer — Number of decimal places (2 for USD)
  - `date_range_start` string, date, nullable — Earliest record date in the batch
  - `date_range_end` string, date, nullable — Latest record date in the batch
  - `created_at` string, date-time
  - `records_url` string — URL to fetch records belonging to this batch

## Other responses

- `401` — Unauthorized
- `404` — Import batch not found

---

[API](https://skmtc.dev/endclose/apis/end-close-api.md) · [All operations](https://skmtc.dev/endclose/apis/end-close-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/endclose/end-close-api/revisions/c6c1505b7afc/schema)
