---
title: "Call service Transaction History and export response to CSV."
method: POST
path: "/public/transactionHistoryCsv"
tags: ["Merchant Portal services API"]
---

# Call service Transaction History and export response to CSV.

`POST /public/transactionHistoryCsv`

## Request

- Base URL: `https://test.tecs.at/merchantservices`
- URL: `https://test.tecs.at/merchantservices/public/transactionHistoryCsv`
- Auth: HTTP bearer

Search for transactions by given parameters<br>
Required role for operation: MP_CORPORATE or BO_TE_TRANSACTION_HISTORY.<br>
When user has role MP_CORPORATE, then all terminalIds are taken from UserProfile, otherwise terminalIds are taken from TecsCompany2TecsTerm entity.<br>
Create MPauditlog table record with event type : TransactionHistoryCsv.<br>
Supports filtering by wallet type: APAY (Apple Pay), GPAY (Google Pay), GPAY3D (Google Pay 3D Secure).<br>
Supports authentication with the following types of tokens:<br>
* <b>Bearer</b> &lt;token&gt;, which is a Bearer token authentication. The bearer token is a cryptic string, usually generated by the server in response to a login request.

## Request body

- TransactionHistoryRequest
  - `transactionId` string
  - `referencedTransactionId` string
  - `terminalId` integer
  - `sourceId` integer
  - `transactionType` string
  - `transactionAmountFrom` string
  - `transactionAmountTo` string
  - `clearingAmountFrom` string
  - `clearingAmountTo` string
  - `clearingCurrency` string
  - `transactionDateFrom` string, date-time
  - `transactionDateTo` string, date-time
  - `authorizationCode` string
  - `tecsengineResponseCodeFrom` string
  - `tecsengineResponseCodeTo` string
  - `receiptNumber` string
  - `retrievalReferenceNumber` string
  - `traceNumber` string
  - `clearingStatus` string
  - `cardBrand` string
  - `pagination` PaginationRequest
    - `page` integer
    - `size` integer
  - `corporateUUID` string
  - `orderByTransactionDate` string
  - `wallet` 'APAY' | 'GPAY' | 'GPAY3D': Filter by wallet type. Allowed values: APAY, GPAY, GPAY3D
  - `3DSecure` string

## Response `200`

Successful operation

## Other responses

- `400`: * Invalid combination of transactionId and referencedTransactionId parameters * ReferencedTransactionId is set and TerminalId not set * ReferencedTransactionId not set and TransactionDateFrom not set * ReferencedTransactionId not set and TransactionDateTo parameters not set * Mandator not found * Invalid TerminalId
- `401`: Unauthorized - Authentication failed:<br> * MandatorId does not march * Inactive user
- `403`: Forbidden - Missing role: MP_CORPORATE or BO_TE_TRANSACTION_HISTORY
- `500`: Internal server error

## Changes

- **2026-11-03** `6e0e5a5a2b2f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bluefin-com/apis/merchant-services/changes/public/transactionHistoryCsv/post.md)

---

[API](https://skmtc.dev/bluefin-com/apis/merchant-services.md) - [All operations](https://skmtc.dev/bluefin-com/apis/merchant-services/llms.txt) - [OpenAPI document](https://skmtc.dev/bluefin-com/apis/merchant-services/revisions/6e0e5a5a2b2f?raw)
