---
title: "Record a cash flow (deposit or withdrawal)"
method: POST
path: "/strategies/{strategy_uuid}/cash_flows"
tags: ["Portfolio"]
---

# Record a cash flow (deposit or withdrawal)

`POST /strategies/{strategy_uuid}/cash_flows`

## Request

- Base URL: `https://kovatools.com/api/v1`
- URL: `https://kovatools.com/api/v1/strategies/{strategy_uuid}/cash_flows`
- Auth: HTTP bearer

## Path parameters

- `strategy_uuid` string, uuid, required

## Request body

- CashFlowCreateRequest
  - `flow_type` 'deposit' | 'withdrawal', required
  - `amount` number, required
  - `notes` string
  - `occurred_on` string, date: Date the cash flow occurred. Defaults to today.

## Response `201`

Cash flow recorded

- object
  - `cash_flow` CashFlow
    - `id` integer
    - `flow_type` 'deposit' | 'withdrawal'
    - `amount` number
    - `signed_amount` number: Positive for deposits, negative for withdrawals
    - `notes` string, nullable
    - `occurred_on` string, date
    - `created_at` string, date-time
  - `meta` Meta
    - `request_id` string: Unique request identifier for debugging
    - `timestamp` string, date-time

## Other responses

- `401`: Unauthorized
- `404`: Strategy not found
- `422`: Validation error

---

[API](https://skmtc.dev/kovatools/apis/kova-api.md) · [All operations](https://skmtc.dev/kovatools/apis/kova-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kovatools/apis/kova-api/revisions/915eb7ffe3b6?raw)
