# Opsuite2\PromotionCalculationsApi

All URIs are relative to http://localhost, except if the operation defines another base path.

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**apiV1PromotionCalculationsControllerReloadPromotionsPost()**](PromotionCalculationsApi.md#apiV1PromotionCalculationsControllerReloadPromotionsPost) | **POST** /api/v1/PromotionCalculationsController/ReloadPromotions | Reloads promotions. |


## `apiV1PromotionCalculationsControllerReloadPromotionsPost()`

```php
apiV1PromotionCalculationsControllerReloadPromotionsPost($location_id)
```

Reloads promotions.

### Example

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


// Configure Bearer (JWT) authorization: bearer
$config = Opsuite2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Opsuite2\Api\PromotionCalculationsApi(
    // 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(),
    $config
);
$location_id = 56; // int

try {
    $apiInstance->apiV1PromotionCalculationsControllerReloadPromotionsPost($location_id);
} catch (Exception $e) {
    echo 'Exception when calling PromotionCalculationsApi->apiV1PromotionCalculationsControllerReloadPromotionsPost: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **location_id** | **int**|  | [optional] |

### Return type

void (empty response body)

### Authorization

[bearer](../../README.md#bearer)

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