# Fortnox\FortnoxSupplierInvoiceFileConnectionsApi



All URIs are relative to https://api.fortnox.se, except if the operation defines another base path.

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**supplierInvoiceFileConnectionControllerDoCreate()**](FortnoxSupplierInvoiceFileConnectionsApi.md#supplierInvoiceFileConnectionControllerDoCreate) | **POST** /3/supplierinvoicefileconnections | Create an supplier invoice file connection |
| [**supplierInvoiceFileConnectionControllerDoDelete()**](FortnoxSupplierInvoiceFileConnectionsApi.md#supplierInvoiceFileConnectionControllerDoDelete) | **DELETE** /3/supplierinvoicefileconnections/{FileId} | Remove an supplier invoice file connection |
| [**supplierInvoiceFileConnectionControllerDoIndex()**](FortnoxSupplierInvoiceFileConnectionsApi.md#supplierInvoiceFileConnectionControllerDoIndex) | **GET** /3/supplierinvoicefileconnections | Retrieve a list of supplier invoice file connections |
| [**supplierInvoiceFileConnectionControllerDoShow()**](FortnoxSupplierInvoiceFileConnectionsApi.md#supplierInvoiceFileConnectionControllerDoShow) | **GET** /3/supplierinvoicefileconnections/{FileId} | Retrieve a single supplier invoice file connection |


## `supplierInvoiceFileConnectionControllerDoCreate()`

```php
supplierInvoiceFileConnectionControllerDoCreate($file_connection): \Fortnox\Model\FortnoxDaSupplierInvoiceFileConnectionSingleItemWrap
```

Create an supplier invoice file connection

Create a supplier invoice file connection

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoiceFileConnectionsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$file_connection = new \Fortnox\Model\FortnoxDaSupplierInvoiceFileConnectionSinglePayloadItemWrap(); // \Fortnox\Model\FortnoxDaSupplierInvoiceFileConnectionSinglePayloadItemWrap | Request body for create supplier invoice file connection

try {
    $result = $apiInstance->supplierInvoiceFileConnectionControllerDoCreate($file_connection);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FortnoxSupplierInvoiceFileConnectionsApi->supplierInvoiceFileConnectionControllerDoCreate: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **file_connection** | [**\Fortnox\Model\FortnoxDaSupplierInvoiceFileConnectionSinglePayloadItemWrap**](../Model/FortnoxDaSupplierInvoiceFileConnectionSinglePayloadItemWrap.md)| Request body for create supplier invoice file connection | [optional] |

### Return type

[**\Fortnox\Model\FortnoxDaSupplierInvoiceFileConnectionSingleItemWrap**](../Model/FortnoxDaSupplierInvoiceFileConnectionSingleItemWrap.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `supplierInvoiceFileConnectionControllerDoDelete()`

```php
supplierInvoiceFileConnectionControllerDoDelete($file_id)
```

Remove an supplier invoice file connection

Delete a supplier invoice file connection

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoiceFileConnectionsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$file_id = 'file_id_example'; // string | identifies the supplier invoice file connection

try {
    $apiInstance->supplierInvoiceFileConnectionControllerDoDelete($file_id);
} catch (Exception $e) {
    echo 'Exception when calling FortnoxSupplierInvoiceFileConnectionsApi->supplierInvoiceFileConnectionControllerDoDelete: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **file_id** | **string**| identifies the supplier invoice file connection | |

### Return type

void (empty response body)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `supplierInvoiceFileConnectionControllerDoIndex()`

```php
supplierInvoiceFileConnectionControllerDoIndex($supplierinvoicenumber): \Fortnox\Model\FortnoxDaSupplierInvoiceFileConnectionListItemWrap
```

Retrieve a list of supplier invoice file connections

The supplier invoice file connections register can return a list of records or a single record. By specifying a FileId in the URL, a single record will be returned. Not specifying a FileId will return a list of records.

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoiceFileConnectionsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$supplierinvoicenumber = 56; // int | Filter file connections by supplier invoice number

try {
    $result = $apiInstance->supplierInvoiceFileConnectionControllerDoIndex($supplierinvoicenumber);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FortnoxSupplierInvoiceFileConnectionsApi->supplierInvoiceFileConnectionControllerDoIndex: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **supplierinvoicenumber** | **int**| Filter file connections by supplier invoice number | [optional] |

### Return type

[**\Fortnox\Model\FortnoxDaSupplierInvoiceFileConnectionListItemWrap**](../Model/FortnoxDaSupplierInvoiceFileConnectionListItemWrap.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `supplierInvoiceFileConnectionControllerDoShow()`

```php
supplierInvoiceFileConnectionControllerDoShow($file_id): \Fortnox\Model\FortnoxDaSupplierInvoiceFileConnectionSingleItemWrap
```

Retrieve a single supplier invoice file connection

Retrieve a supplier invoice file connection

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoiceFileConnectionsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$file_id = 'file_id_example'; // string | identifies the file connection

try {
    $result = $apiInstance->supplierInvoiceFileConnectionControllerDoShow($file_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FortnoxSupplierInvoiceFileConnectionsApi->supplierInvoiceFileConnectionControllerDoShow: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **file_id** | **string**| identifies the file connection | |

### Return type

[**\Fortnox\Model\FortnoxDaSupplierInvoiceFileConnectionSingleItemWrap**](../Model/FortnoxDaSupplierInvoiceFileConnectionSingleItemWrap.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
