# Fortnox\IntegrationPartnerIntegrationSalesApi



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

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**getAppSalesForSingleApp()**](IntegrationPartnerIntegrationSalesApi.md#getAppSalesForSingleApp) | **GET** /api/integration-partner/apps/sales-v1/{appId} | Resolves sales information and active users of an integration |
| [**getAppSalesForSingleAppAndTenant()**](IntegrationPartnerIntegrationSalesApi.md#getAppSalesForSingleAppAndTenant) | **GET** /api/integration-partner/apps/sales-v1/{appId}/{tenantId} | Resolves sales information and active users of an integration |


## `getAppSalesForSingleApp()`

```php
getAppSalesForSingleApp($app_id): \Fortnox\Model\IntegrationPartnerAppSalesResponse
```

Resolves sales information and active users of an integration

<h3>Prerequisites</h3>  The partner has an active developer account and a published integration that is purchased through Fortnox.

### Example

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



$apiInstance = new Fortnox\Api\IntegrationPartnerIntegrationSalesApi(
    // 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()
);
$app_id = 'app_id_example'; // string | clientId of the integration to look up sales information for

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

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **app_id** | **string**| clientId of the integration to look up sales information for | |

### Return type

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

## `getAppSalesForSingleAppAndTenant()`

```php
getAppSalesForSingleAppAndTenant($app_id, $tenant_id): \Fortnox\Model\IntegrationPartnerAppSalesResponse
```

Resolves sales information and active users of an integration

<h3>Prerequisites</h3>  The partner has an active developer account and a published integration that is purchased through Fortnox.

### Example

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



$apiInstance = new Fortnox\Api\IntegrationPartnerIntegrationSalesApi(
    // 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()
);
$app_id = 'app_id_example'; // string | clientId of the integration to look up sales information for
$tenant_id = 56; // int | tenantId of the tenant to look up sales information for

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

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **app_id** | **string**| clientId of the integration to look up sales information for | |
| **tenant_id** | **int**| tenantId of the tenant to look up sales information for | |

### Return type

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