---
title: "Get Flex Payment History"
method: POST
path: "/api/v4/main-account/smart-flex/investments/payment-history"
tags: ["Crypto Lending - Flex"]
---

# Get Flex Payment History

`POST /api/v4/main-account/smart-flex/investments/payment-history`

## Request

- Base URL: `https://whitebit.com`
- URL: `https://whitebit.com/api/v4/main-account/smart-flex/investments/payment-history`
- Auth: API key in header `X-TXC-APIKEY` and API key in header `X-TXC-PAYLOAD` and API key in header `X-TXC-SIGNATURE`
- TypeScript: <https://skmtc.dev/whitebit/apis/whitebit-private-http-api-v4/docs/api/v4/main-account/smart-flex/investments/payment-history/post.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve investment earnings history (ONLY DAILY_EARNING operations).

**Note:** The endpoint automatically filters to show ONLY DAILY_EARNING operations (type 4).

<Warning>
Rate limit: 1000 requests/10 sec.
</Warning>

<Note>
The API does not cache the response.
</Note>

## Request body

- object
  - `limit` integer: Pagination limit.
  - `offset` integer: Pagination offset.
  - `plan` string: Filter by plan ID (UUID).
  - `investment` string: Filter by investment ID.
  - `transaction` string: Filter by transaction ID.
  - `dateFrom` integer: Filter from date (timestamp).
  - `dateTo` integer: Filter to date (timestamp).
  - `request` string, required: Request signature
  - `nonce` integer, required: Unique request identifier

## Response `200`

Successful response

- object
  - `data` FlexInvestmentHistory[]
    - `createdAt` integer: Transaction creation timestamp
    - `planId` string: Flex plan identifier
    - `investmentId` string: Flex investment identifier
    - `currency` string: Transaction currency
    - `amount` string: Transaction amount
    - `transaction_id` string: Transaction identifier
    - `actionType` integer: Action type: 1-INVEST, 2-REINVEST, 3-WITHDRAW_FROM_INVESTMENT, 4-DAILY_EARNING, 5-CLOSE_INVESTMENT, 6-OPEN_INVESTMENT
  - `limit` integer
  - `offset` integer

## Other responses

- `400`: Validation failed

---

[API](https://skmtc.dev/whitebit/apis/whitebit-private-http-api-v4.md) - [All operations](https://skmtc.dev/whitebit/apis/whitebit-private-http-api-v4/llms.txt) - [OpenAPI document](https://skmtc.dev/whitebit/apis/whitebit-private-http-api-v4/revisions/76c9def9942f?raw)
