# Fortnox\FortnoxSupplierInvoiceExternalUrlConnectionsApi



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

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**sinvoiceExternalUrlConnectionControllerDoCreate()**](FortnoxSupplierInvoiceExternalUrlConnectionsApi.md#sinvoiceExternalUrlConnectionControllerDoCreate) | **POST** /3/supplierinvoiceexternalurlconnections | Create a supplier invoice external URL connection |
| [**sinvoiceExternalUrlConnectionControllerDoDelete()**](FortnoxSupplierInvoiceExternalUrlConnectionsApi.md#sinvoiceExternalUrlConnectionControllerDoDelete) | **DELETE** /3/supplierinvoiceexternalurlconnections/{Id} | Remove a supplier invoice external URL connection |
| [**sinvoiceExternalUrlConnectionControllerDoShow()**](FortnoxSupplierInvoiceExternalUrlConnectionsApi.md#sinvoiceExternalUrlConnectionControllerDoShow) | **GET** /3/supplierinvoiceexternalurlconnections/{Id} | Retrieve a single supplier invoice external URL connection |
| [**sinvoiceExternalUrlConnectionControllerDoUpdate()**](FortnoxSupplierInvoiceExternalUrlConnectionsApi.md#sinvoiceExternalUrlConnectionControllerDoUpdate) | **PUT** /3/supplierinvoiceexternalurlconnections/{Id} | Update a supplier invoice external URL connection |


## `sinvoiceExternalUrlConnectionControllerDoCreate()`

```php
sinvoiceExternalUrlConnectionControllerDoCreate($request): \Fortnox\Model\FortnoxSinvoiceExternalUrlConnectionSingleItemWrap
```

Create a supplier invoice external URL connection

The connection will initially be inactive. It will show up once a file has been connected to the supplier invoice via POST /3/supplierinvoicefileconnections

### Example

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



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoiceExternalUrlConnectionsApi(
    // 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()
);
$request = new \Fortnox\Model\FortnoxSinvoiceExternalUrlConnectionSinglePayloadItem(); // \Fortnox\Model\FortnoxSinvoiceExternalUrlConnectionSinglePayloadItem | Request body for create supplier invoice externalurl connection

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

### Parameters

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

### Return type

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

## `sinvoiceExternalUrlConnectionControllerDoDelete()`

```php
sinvoiceExternalUrlConnectionControllerDoDelete($id)
```

Remove a supplier invoice external URL connection

Delete a supplier invoice externalurl connection

### Example

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



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoiceExternalUrlConnectionsApi(
    // 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()
);
$id = 56; // int | id

try {
    $apiInstance->sinvoiceExternalUrlConnectionControllerDoDelete($id);
} catch (Exception $e) {
    echo 'Exception when calling FortnoxSupplierInvoiceExternalUrlConnectionsApi->sinvoiceExternalUrlConnectionControllerDoDelete: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **id** | **int**| id | |

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

## `sinvoiceExternalUrlConnectionControllerDoShow()`

```php
sinvoiceExternalUrlConnectionControllerDoShow($id): \Fortnox\Model\FortnoxSinvoiceExternalUrlConnectionSingleItemWrap
```

Retrieve a single supplier invoice external URL connection

Retrieve a supplier invoice externalurl connection

### Example

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



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoiceExternalUrlConnectionsApi(
    // 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()
);
$id = 56; // int | id

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

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **id** | **int**| id | |

### Return type

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

## `sinvoiceExternalUrlConnectionControllerDoUpdate()`

```php
sinvoiceExternalUrlConnectionControllerDoUpdate($id, $request): \Fortnox\Model\FortnoxSinvoiceExternalUrlConnectionSingleItemWrap
```

Update a supplier invoice external URL connection

Update a supplier invoice externalurl connection

### Example

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



$apiInstance = new Fortnox\Api\FortnoxSupplierInvoiceExternalUrlConnectionsApi(
    // 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()
);
$id = 56; // int | id
$request = new \Fortnox\Model\FortnoxSinvoiceExternalUrlConnectionSinglePayloadItem(); // \Fortnox\Model\FortnoxSinvoiceExternalUrlConnectionSinglePayloadItem | Request body for update supplier invoice externalurl connection

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

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **id** | **int**| id | |
| **request** | [**\Fortnox\Model\FortnoxSinvoiceExternalUrlConnectionSinglePayloadItem**](../Model/FortnoxSinvoiceExternalUrlConnectionSinglePayloadItem.md)| Request body for update supplier invoice externalurl connection | [optional] |

### Return type

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