# Fortnox\FortnoxSupplierInvoicePaymentsApi



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

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**supplierInvoicePaymentControllerDoCreate()**](FortnoxSupplierInvoicePaymentsApi.md#supplierInvoicePaymentControllerDoCreate) | **POST** /3/supplierinvoicepayments | Create a supplier invoice payment |
| [**supplierInvoicePaymentControllerDoDelete()**](FortnoxSupplierInvoicePaymentsApi.md#supplierInvoicePaymentControllerDoDelete) | **DELETE** /3/supplierinvoicepayments/{Number} | Remove a supplier invoice payment |
| [**supplierInvoicePaymentControllerDoIndex()**](FortnoxSupplierInvoicePaymentsApi.md#supplierInvoicePaymentControllerDoIndex) | **GET** /3/supplierinvoicepayments | Retrieve a list of supplier invoice payments |
| [**supplierInvoicePaymentControllerDoShow()**](FortnoxSupplierInvoicePaymentsApi.md#supplierInvoicePaymentControllerDoShow) | **GET** /3/supplierinvoicepayments/{Number} | Retrieve a single supplier invoice payment |
| [**supplierInvoicePaymentControllerDoUpdate()**](FortnoxSupplierInvoicePaymentsApi.md#supplierInvoicePaymentControllerDoUpdate) | **PUT** /3/supplierinvoicepayments/{Number} | Update a supplier invoice payment |
| [**supplierInvoicePaymentControllerDoUpdateAndBookkeep()**](FortnoxSupplierInvoicePaymentsApi.md#supplierInvoicePaymentControllerDoUpdateAndBookkeep) | **PUT** /3/supplierinvoicepayments/{Number}/bookkeep | Bookkeep a supplier invoice payment |


## `supplierInvoicePaymentControllerDoCreate()`

```php
supplierInvoicePaymentControllerDoCreate($supplier_invoice_payment): \Fortnox\Model\FortnoxLfSupplierInvoicePaymentSingleItemWrap
```

Create a supplier invoice payment

Create a supplier invoice payment

### Example

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



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoicePaymentsApi(
    // 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_payment = new \Fortnox\Model\FortnoxLfSupplierInvoicePaymentSinglePayloadItemWrap(); // \Fortnox\Model\FortnoxLfSupplierInvoicePaymentSinglePayloadItemWrap | Request body for create supplier invoice payment

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

### Parameters

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

### Return type

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

## `supplierInvoicePaymentControllerDoDelete()`

```php
supplierInvoicePaymentControllerDoDelete($number)
```

Remove a supplier invoice payment

Delete a supplier invoice payment

### Example

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



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoicePaymentsApi(
    // 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()
);
$number = 56; // int | identifies the supplier invoice payment

try {
    $apiInstance->supplierInvoicePaymentControllerDoDelete($number);
} catch (Exception $e) {
    echo 'Exception when calling FortnoxSupplierInvoicePaymentsApi->supplierInvoicePaymentControllerDoDelete: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **number** | **int**| identifies the supplier invoice payment | |

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

## `supplierInvoicePaymentControllerDoIndex()`

```php
supplierInvoicePaymentControllerDoIndex($invoicenumber, $lastmodified): \Fortnox\Model\FortnoxLfSupplierInvoicePaymentListItemWrap
```

Retrieve a list of supplier invoice payments

Get supplier invoice payments

### Example

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



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoicePaymentsApi(
    // 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()
);
$invoicenumber = 56; // int | Filter payments by invoice number
$lastmodified = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime | Filter payments by last modified date

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

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **invoicenumber** | **int**| Filter payments by invoice number | [optional] |
| **lastmodified** | **\DateTime**| Filter payments by last modified date | [optional] |

### Return type

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

## `supplierInvoicePaymentControllerDoShow()`

```php
supplierInvoicePaymentControllerDoShow($number): \Fortnox\Model\FortnoxLfSupplierInvoicePaymentSingleItemWrap
```

Retrieve a single supplier invoice payment

Retrieve a supplier invoice payment

### Example

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



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoicePaymentsApi(
    // 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()
);
$number = 56; // int | identifies the supplier invoice payment

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

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **number** | **int**| identifies the supplier invoice payment | |

### Return type

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

## `supplierInvoicePaymentControllerDoUpdate()`

```php
supplierInvoicePaymentControllerDoUpdate($number, $supplier_invoice_payment): \Fortnox\Model\FortnoxLfSupplierInvoicePaymentSingleItemWrap
```

Update a supplier invoice payment

Update a supplier invoice payment

### Example

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



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoicePaymentsApi(
    // 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()
);
$number = 56; // int | identifies the supplier invoice payment
$supplier_invoice_payment = new \Fortnox\Model\FortnoxLfSupplierInvoicePaymentSinglePayloadItemWrap(); // \Fortnox\Model\FortnoxLfSupplierInvoicePaymentSinglePayloadItemWrap | Request body for update supplier invoice payment

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

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **number** | **int**| identifies the supplier invoice payment | |
| **supplier_invoice_payment** | [**\Fortnox\Model\FortnoxLfSupplierInvoicePaymentSinglePayloadItemWrap**](../Model/FortnoxLfSupplierInvoicePaymentSinglePayloadItemWrap.md)| Request body for update supplier invoice payment | [optional] |

### Return type

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

## `supplierInvoicePaymentControllerDoUpdateAndBookkeep()`

```php
supplierInvoicePaymentControllerDoUpdateAndBookkeep($number, $fortnox_lf_supplier_invoice_payment_single_payload_item_wrap): \Fortnox\Model\FortnoxLfSupplierInvoicePaymentSingleItemWrap
```

Bookkeep a supplier invoice payment

Update a supplier invoice payment

### Example

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



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoicePaymentsApi(
    // 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()
);
$number = 56; // int | identifies the supplier invoice payment
$fortnox_lf_supplier_invoice_payment_single_payload_item_wrap = new \Fortnox\Model\FortnoxLfSupplierInvoicePaymentSinglePayloadItemWrap(); // \Fortnox\Model\FortnoxLfSupplierInvoicePaymentSinglePayloadItemWrap | Request body for update supplier invoice payment

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

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **number** | **int**| identifies the supplier invoice payment | |
| **fortnox_lf_supplier_invoice_payment_single_payload_item_wrap** | [**\Fortnox\Model\FortnoxLfSupplierInvoicePaymentSinglePayloadItemWrap**](../Model/FortnoxLfSupplierInvoicePaymentSinglePayloadItemWrap.md)| Request body for update supplier invoice payment | [optional] |

### Return type

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