# openapi.api.AccountingApi

## Load the API package
```dart
import 'package:openapi/api.dart';
```

All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getAccountingDetails**](AccountingApi.md#getaccountingdetails) | **GET** /api/analytic/accounting/details | 
[**getAccountings**](AccountingApi.md#getaccountings) | **GET** /api/analytic/accounting | 


# **getAccountingDetails**
> FindAllAccountingDetailsRes getAccountingDetails(page, limit, earnings, discounts, shippings, totalSales, totalCost, returns, refunds, search, sort)



### Example
```dart
import 'package:openapi/api.dart';

final api = Openapi().getAccountingApi();
final num page = 8.14; // num | Page number
final num limit = 8.14; // num | Number of results to be returned
final bool earnings = true; // bool | 
final bool discounts = true; // bool | 
final bool shippings = true; // bool | 
final bool totalSales = true; // bool | 
final bool totalCost = true; // bool | 
final bool returns = true; // bool | 
final bool refunds = true; // bool | 
final String search = search_example; // String | 
final GetAllDraftAccountingDetailsSort sort = ; // GetAllDraftAccountingDetailsSort | sort of accountingDetail

try {
    final response = api.getAccountingDetails(page, limit, earnings, discounts, shippings, totalSales, totalCost, returns, refunds, search, sort);
    print(response);
} catch on DioError (e) {
    print('Exception when calling AccountingApi->getAccountingDetails: $e\n');
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **page** | **num**| Page number | [default to 1]
 **limit** | **num**| Number of results to be returned | [default to 10]
 **earnings** | **bool**|  | [default to true]
 **discounts** | **bool**|  | [default to true]
 **shippings** | **bool**|  | [default to true]
 **totalSales** | **bool**|  | [default to true]
 **totalCost** | **bool**|  | [default to true]
 **returns** | **bool**|  | [default to true]
 **refunds** | **bool**|  | [default to true]
 **search** | **String**|  | [optional] 
 **sort** | [**GetAllDraftAccountingDetailsSort**](.md)| sort of accountingDetail | [optional] 

### Return type

[**FindAllAccountingDetailsRes**](FindAllAccountingDetailsRes.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/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)

# **getAccountings**
> FindAllAccountingRes getAccountings(from, to)



### Example
```dart
import 'package:openapi/api.dart';

final api = Openapi().getAccountingApi();
final DateTime from = 2013-10-20T19:20:30+01:00; // DateTime | 
final DateTime to = 2013-10-20T19:20:30+01:00; // DateTime | 

try {
    final response = api.getAccountings(from, to);
    print(response);
} catch on DioError (e) {
    print('Exception when calling AccountingApi->getAccountings: $e\n');
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **from** | **DateTime**|  | [optional] 
 **to** | **DateTime**|  | [optional] 

### Return type

[**FindAllAccountingRes**](FindAllAccountingRes.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/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)

