# holzleitner_api.api.SyncApi

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

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**syncTour**](SyncApi.md#synctour) | **POST** /sync/tour | Sync-Endpoint für das ERP: legt eine Tagestour samt Lieferungen und Positionen idempotent an. Identität pro Tour &#x60;(driver_personalnummer, tour_date)&#x60;, pro Lieferung &#x60;(belegart_id, belegnummer)&#x60;.


# **syncTour**
> SyncTourResponse syncTour(syncTourRequest)

Sync-Endpoint für das ERP: legt eine Tagestour samt Lieferungen und Positionen idempotent an. Identität pro Tour `(driver_personalnummer, tour_date)`, pro Lieferung `(belegart_id, belegnummer)`.

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

final api = HolzleitnerApi().getSyncApi();
final SyncTourRequest syncTourRequest = ; // SyncTourRequest | 

try {
    final response = api.syncTour(syncTourRequest);
    print(response);
} catch on DioException (e) {
    print('Exception when calling SyncApi->syncTour: $e\n');
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **syncTourRequest** | [**SyncTourRequest**](SyncTourRequest.md)|  | 

### Return type

[**SyncTourResponse**](SyncTourResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### HTTP request headers

 - **Content-Type**: application/json
 - **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)

