Files
fin-tracker/app/packages/api_client/doc/TaxApi.md
T
Dmitry ccd06f32f7 chore(app): сгенерированный Dart-клиент
just gen-client — покрывает links, cashflow-broker, ручные цены,
imports/pending, goals/income/rebalance/tax/benchmarks.
2026-09-19 10:46:09 +03:00

106 lines
2.8 KiB
Markdown

# fintracker_api.api.TaxApi
## Load the API package
```dart
import 'package:fintracker_api/api.dart';
```
All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**taxLots**](TaxApi.md#taxlots) | **GET** /api/v1/tax/lots | Lots
[**taxSummary**](TaxApi.md#taxsummary) | **GET** /api/v1/tax | Summary
# **taxLots**
> TaxLotsOut taxLots(year, accountId)
Lots
Open lots with the date after which a sale falls under the long-term exemption. `year` selects the rate the \"what if I sold today\" figure is computed at; the lots themselves are always the ones open right now. `lot` is rebuilt from the ledger on every refresh and holds today's state only, so there is no honest way to answer \"which lots were open on 31 December two years ago\" — and inventing one would be worse than the limitation.
### Example
```dart
import 'package:fintracker_api/api.dart';
final api = FintrackerApi().getTaxApi();
final int year = 56; // int |
final int accountId = 56; // int |
try {
final response = api.taxLots(year, accountId);
print(response);
} on DioException catch (e) {
print('Exception when calling TaxApi->taxLots: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**year** | **int**| | [optional]
**accountId** | **int**| | [optional]
### Return type
[**TaxLotsOut**](TaxLotsOut.md)
### Authorization
[HTTPBearer](../README.md#HTTPBearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json, application/problem+json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **taxSummary**
> TaxYearOut taxSummary(year, accountId)
Summary
The year's estimated tax position, per account and in total.
### Example
```dart
import 'package:fintracker_api/api.dart';
final api = FintrackerApi().getTaxApi();
final int year = 56; // int |
final int accountId = 56; // int |
try {
final response = api.taxSummary(year, accountId);
print(response);
} on DioException catch (e) {
print('Exception when calling TaxApi->taxSummary: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**year** | **int**| | [optional]
**accountId** | **int**| | [optional]
### Return type
[**TaxYearOut**](TaxYearOut.md)
### Authorization
[HTTPBearer](../README.md#HTTPBearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json, application/problem+json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)