# Fortnox\FortnoxSupplierInvoiceAccrualsApi



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

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**supplierInvoiceAccrualControllerDoCreate()**](FortnoxSupplierInvoiceAccrualsApi.md#supplierInvoiceAccrualControllerDoCreate) | **POST** /3/supplierinvoiceaccruals | Create a supplier invoice accrual |
| [**supplierInvoiceAccrualControllerDoDelete()**](FortnoxSupplierInvoiceAccrualsApi.md#supplierInvoiceAccrualControllerDoDelete) | **DELETE** /3/supplierinvoiceaccruals/{SupplierInvoiceNumber} | Remove a supplier invoice accrual |
| [**supplierInvoiceAccrualControllerDoIndex()**](FortnoxSupplierInvoiceAccrualsApi.md#supplierInvoiceAccrualControllerDoIndex) | **GET** /3/supplierinvoiceaccruals | Retrieve a list of supplier invoice accruals |
| [**supplierInvoiceAccrualControllerDoShow()**](FortnoxSupplierInvoiceAccrualsApi.md#supplierInvoiceAccrualControllerDoShow) | **GET** /3/supplierinvoiceaccruals/{SupplierInvoiceNumber} | Retrieve a single supplier invoice accrual |
| [**supplierInvoiceAccrualControllerDoUpdate()**](FortnoxSupplierInvoiceAccrualsApi.md#supplierInvoiceAccrualControllerDoUpdate) | **PUT** /3/supplierinvoiceaccruals/{SupplierInvoiceNumber} | Update a supplier invoice accrual |


## `supplierInvoiceAccrualControllerDoCreate()`

```php
supplierInvoiceAccrualControllerDoCreate($supplier_invoice_accrual): \Fortnox\Model\FortnoxLfSupplierInvoiceAccrualSingleItemWrap
```

Create a supplier invoice accrual

Create a supplier invoice accrual

### Example

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



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoiceAccrualsApi(
    // 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()
);
$supplier_invoice_accrual = new \Fortnox\Model\FortnoxLfSupplierInvoiceAccrualSinglePayloadItemWrap(); // \Fortnox\Model\FortnoxLfSupplierInvoiceAccrualSinglePayloadItemWrap | Request body for create supplier invoice accrual

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

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **supplier_invoice_accrual** | [**\Fortnox\Model\FortnoxLfSupplierInvoiceAccrualSinglePayloadItemWrap**](../Model/FortnoxLfSupplierInvoiceAccrualSinglePayloadItemWrap.md)| Request body for create supplier invoice accrual | [optional] |

### Return type

[**\Fortnox\Model\FortnoxLfSupplierInvoiceAccrualSingleItemWrap**](../Model/FortnoxLfSupplierInvoiceAccrualSingleItemWrap.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)

## `supplierInvoiceAccrualControllerDoDelete()`

```php
supplierInvoiceAccrualControllerDoDelete($supplier_invoice_number)
```

Remove a supplier invoice accrual

Delete a supplier invoice accrual

### Example

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



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoiceAccrualsApi(
    // 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()
);
$supplier_invoice_number = 'supplier_invoice_number_example'; // string | Supplier invoice number of supplier invoice accrual to delete

try {
    $apiInstance->supplierInvoiceAccrualControllerDoDelete($supplier_invoice_number);
} catch (Exception $e) {
    echo 'Exception when calling FortnoxSupplierInvoiceAccrualsApi->supplierInvoiceAccrualControllerDoDelete: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **supplier_invoice_number** | **string**| Supplier invoice number of supplier invoice accrual to delete | |

### 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)

## `supplierInvoiceAccrualControllerDoIndex()`

```php
supplierInvoiceAccrualControllerDoIndex(): \Fortnox\Model\FortnoxLfSupplierInvoiceAccrualListItemWrap
```

Retrieve a list of supplier invoice accruals

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

### Example

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



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoiceAccrualsApi(
    // 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()
);

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

### Parameters

This endpoint does not need any parameter.

### Return type

[**\Fortnox\Model\FortnoxLfSupplierInvoiceAccrualListItemWrap**](../Model/FortnoxLfSupplierInvoiceAccrualListItemWrap.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)

## `supplierInvoiceAccrualControllerDoShow()`

```php
supplierInvoiceAccrualControllerDoShow($supplier_invoice_number): \Fortnox\Model\FortnoxLfSupplierInvoiceAccrualSingleItemWrap
```

Retrieve a single supplier invoice accrual

Retrieve a supplier invoice accrual

### Example

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



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoiceAccrualsApi(
    // 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()
);
$supplier_invoice_number = 'supplier_invoice_number_example'; // string | Supplier invoice number of supplier invoice accrual to show

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

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **supplier_invoice_number** | **string**| Supplier invoice number of supplier invoice accrual to show | |

### Return type

[**\Fortnox\Model\FortnoxLfSupplierInvoiceAccrualSingleItemWrap**](../Model/FortnoxLfSupplierInvoiceAccrualSingleItemWrap.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)

## `supplierInvoiceAccrualControllerDoUpdate()`

```php
supplierInvoiceAccrualControllerDoUpdate($supplier_invoice_number, $supplier_invoice_accrual): \Fortnox\Model\FortnoxLfSupplierInvoiceAccrualSingleItemWrap
```

Update a supplier invoice accrual

Update a supplier invoice accrual

### Example

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



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoiceAccrualsApi(
    // 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()
);
$supplier_invoice_number = 'supplier_invoice_number_example'; // string | Supplier invoice number of supplier invoice accrual to update
$supplier_invoice_accrual = new \Fortnox\Model\FortnoxLfSupplierInvoiceAccrualSinglePayloadItemWrap(); // \Fortnox\Model\FortnoxLfSupplierInvoiceAccrualSinglePayloadItemWrap | Request body for update supplier invoice accrual

try {
    $result = $apiInstance->supplierInvoiceAccrualControllerDoUpdate($supplier_invoice_number, $supplier_invoice_accrual);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FortnoxSupplierInvoiceAccrualsApi->supplierInvoiceAccrualControllerDoUpdate: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **supplier_invoice_number** | **string**| Supplier invoice number of supplier invoice accrual to update | |
| **supplier_invoice_accrual** | [**\Fortnox\Model\FortnoxLfSupplierInvoiceAccrualSinglePayloadItemWrap**](../Model/FortnoxLfSupplierInvoiceAccrualSinglePayloadItemWrap.md)| Request body for update supplier invoice accrual | [optional] |

### Return type

[**\Fortnox\Model\FortnoxLfSupplierInvoiceAccrualSingleItemWrap**](../Model/FortnoxLfSupplierInvoiceAccrualSingleItemWrap.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)
