Preview a transaction file
Use this endpoint to preview a transaction file before importing it. Returns sample rows and detected columns to help verify the file structure and field mapping.
Request
- Base URLhttps://identity.sandbox.lerian.net
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The unique identifier of the reconciliation context.
The unique identifier of the reconciliation source.
Headers
A unique identifier for tracing the request across services.
Optional idempotency key for safe retries. Also accepts Idempotency-Key as an alternative header name. If the same key is sent again and the original request was already processed, the cached response is returned with X-Idempotency-Replayed: true.
See Retries and idempotency for details.
Request body multipart/form-data
Response
File preview with detected columns and sample rows.
The response includes the X-Idempotency-Replayed header.
If the value is false, the request was just processed. If the value is true, the response is a replay of a previously processed request.
See Retries and idempotency for more details.
Example response
{
"columns": [
"date",
"amount",
"reference",
"description"
],
"rowCount": 5,
"format": "csv"
}Changes
No recorded changes to this operation across all 1 revision of this API.