# Sylius\TaxonApi

Resource &#39;Taxon&#39; operations.

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

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**syliusApiAdminTaxonDelete()**](TaxonApi.md#syliusApiAdminTaxonDelete) | **DELETE** /api/v2/admin/taxons/{code} | Removes the Taxon resource. |
| [**syliusApiAdminTaxonGet()**](TaxonApi.md#syliusApiAdminTaxonGet) | **GET** /api/v2/admin/taxons/{code} | Retrieves a Taxon resource. |
| [**syliusApiAdminTaxonGetCollection()**](TaxonApi.md#syliusApiAdminTaxonGetCollection) | **GET** /api/v2/admin/taxons | Retrieves the collection of Taxon resources. |
| [**syliusApiAdminTaxonPost()**](TaxonApi.md#syliusApiAdminTaxonPost) | **POST** /api/v2/admin/taxons | Creates a Taxon resource. |
| [**syliusApiAdminTaxonPut()**](TaxonApi.md#syliusApiAdminTaxonPut) | **PUT** /api/v2/admin/taxons/{code} | Replaces the Taxon resource. |
| [**syliusApiAdminTaxonTaxonImagePost()**](TaxonApi.md#syliusApiAdminTaxonTaxonImagePost) | **POST** /api/v2/admin/taxons/{code}/images | Creates a Taxon resource. |
| [**syliusApiShopTaxonGet()**](TaxonApi.md#syliusApiShopTaxonGet) | **GET** /api/v2/shop/taxons/{code} | Retrieves a Taxon resource. |
| [**syliusApiShopTaxonGetBySlug()**](TaxonApi.md#syliusApiShopTaxonGetBySlug) | **GET** /api/v2/shop/taxons-by-slug/{slug} | Retrieves a Taxon resource. |
| [**syliusApiShopTaxonGetCollection()**](TaxonApi.md#syliusApiShopTaxonGetCollection) | **GET** /api/v2/shop/taxons | Retrieves the collection of Taxon resources. |
| [**syliusApiShopTaxonGetTreeBranch()**](TaxonApi.md#syliusApiShopTaxonGetTreeBranch) | **GET** /api/v2/shop/taxon-tree/{code}/branch | Retrieves a Taxon resource. |
| [**syliusApiShopTaxonGetTreePath()**](TaxonApi.md#syliusApiShopTaxonGetTreePath) | **GET** /api/v2/shop/taxon-tree/{code}/path | Retrieves a Taxon resource. |


## `syliusApiAdminTaxonDelete()`

```php
syliusApiAdminTaxonDelete($code, $accept_language)
```

Removes the Taxon resource.

Removes the Taxon resource.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonApi(
    // 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
);
$code = 'code_example'; // string | Taxon identifier
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.

try {
    $apiInstance->syliusApiAdminTaxonDelete($code, $accept_language);
} catch (Exception $e) {
    echo 'Exception when calling TaxonApi->syliusApiAdminTaxonDelete: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| Taxon identifier | |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |

### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/ld+json`, `application/problem+json`, `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `syliusApiAdminTaxonGet()`

```php
syliusApiAdminTaxonGet($code, $image_filter, $accept_language): \Sylius\Model\TaxonJsonldSyliusAdminTaxonShow
```

Retrieves a Taxon resource.

Retrieves a Taxon resource.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonApi(
    // 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
);
$code = 'code_example'; // string | Taxon identifier
$image_filter = 'image_filter_example'; // string | Image filter to be applied on image resources.
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.

try {
    $result = $apiInstance->syliusApiAdminTaxonGet($code, $image_filter, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TaxonApi->syliusApiAdminTaxonGet: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| Taxon identifier | |
| **image_filter** | **string**| Image filter to be applied on image resources. | [optional] |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |

### Return type

[**\Sylius\Model\TaxonJsonldSyliusAdminTaxonShow**](../Model/TaxonJsonldSyliusAdminTaxonShow.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/ld+json`, `application/json`, `application/problem+json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `syliusApiAdminTaxonGetCollection()`

```php
syliusApiAdminTaxonGetCollection($page, $items_per_page, $image_filter, $accept_language): \Sylius\Model\SyliusApiAdminTaxonGetCollection200Response
```

Retrieves the collection of Taxon resources.

Retrieves the collection of Taxon resources.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonApi(
    // 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
);
$page = 1; // int | The collection page number
$items_per_page = 30; // int | The number of items per page
$image_filter = 'image_filter_example'; // string | Image filter to be applied on image resources.
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.

try {
    $result = $apiInstance->syliusApiAdminTaxonGetCollection($page, $items_per_page, $image_filter, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TaxonApi->syliusApiAdminTaxonGetCollection: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **page** | **int**| The collection page number | [optional] [default to 1] |
| **items_per_page** | **int**| The number of items per page | [optional] [default to 30] |
| **image_filter** | **string**| Image filter to be applied on image resources. | [optional] |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |

### Return type

[**\Sylius\Model\SyliusApiAdminTaxonGetCollection200Response**](../Model/SyliusApiAdminTaxonGetCollection200Response.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/ld+json`, `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `syliusApiAdminTaxonPost()`

```php
syliusApiAdminTaxonPost($taxon_sylius_admin_taxon_create, $accept_language): \Sylius\Model\TaxonJsonldSyliusAdminTaxonShow
```

Creates a Taxon resource.

Creates a Taxon resource.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonApi(
    // 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
);
$taxon_sylius_admin_taxon_create = new \Sylius\Model\TaxonSyliusAdminTaxonCreate(); // \Sylius\Model\TaxonSyliusAdminTaxonCreate | The new Taxon resource
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.

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

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **taxon_sylius_admin_taxon_create** | [**\Sylius\Model\TaxonSyliusAdminTaxonCreate**](../Model/TaxonSyliusAdminTaxonCreate.md)| The new Taxon resource | |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |

### Return type

[**\Sylius\Model\TaxonJsonldSyliusAdminTaxonShow**](../Model/TaxonJsonldSyliusAdminTaxonShow.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: `application/ld+json`, `application/json`
- **Accept**: `application/ld+json`, `application/json`, `application/problem+json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `syliusApiAdminTaxonPut()`

```php
syliusApiAdminTaxonPut($code, $taxon_sylius_admin_taxon_update, $accept_language): \Sylius\Model\TaxonJsonldSyliusAdminTaxonShow
```

Replaces the Taxon resource.

Replaces the Taxon resource.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonApi(
    // 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
);
$code = 'code_example'; // string | Taxon identifier
$taxon_sylius_admin_taxon_update = new \Sylius\Model\TaxonSyliusAdminTaxonUpdate(); // \Sylius\Model\TaxonSyliusAdminTaxonUpdate | The updated Taxon resource
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.

try {
    $result = $apiInstance->syliusApiAdminTaxonPut($code, $taxon_sylius_admin_taxon_update, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TaxonApi->syliusApiAdminTaxonPut: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| Taxon identifier | |
| **taxon_sylius_admin_taxon_update** | [**\Sylius\Model\TaxonSyliusAdminTaxonUpdate**](../Model/TaxonSyliusAdminTaxonUpdate.md)| The updated Taxon resource | |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |

### Return type

[**\Sylius\Model\TaxonJsonldSyliusAdminTaxonShow**](../Model/TaxonJsonldSyliusAdminTaxonShow.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: `application/ld+json`, `application/json`
- **Accept**: `application/ld+json`, `application/json`, `application/problem+json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `syliusApiAdminTaxonTaxonImagePost()`

```php
syliusApiAdminTaxonTaxonImagePost($code, $accept_language, $images, $id, $code2, $root, $parent, $children, $left, $right, $level, $position, $translations, $current_locale, $fallback_locale, $enabled, $created_at, $updated_at, $name, $slug, $description, $ancestors, $enabled_children, $fullname, $translation): \Sylius\Model\TaxonJsonldSyliusAdminTaxonImageShow
```

Creates a Taxon resource.

Creates a Taxon resource.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonApi(
    // 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
);
$code = 'code_example'; // string | Taxon identifier
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.
$images = array('images_example'); // string[]
$id = 56; // int
$code2 = 'code_example'; // string
$root = 'root_example'; // string
$parent = 'parent_example'; // string
$children = array('children_example'); // string[]
$left = 56; // int
$right = 56; // int
$level = 56; // int
$position = 56; // int
$translations = array('key' => new \stdClass); // object
$current_locale = 'current_locale_example'; // string
$fallback_locale = 'fallback_locale_example'; // string
$enabled = true; // bool
$created_at = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime
$updated_at = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime
$name = 'name_example'; // string
$slug = 'slug_example'; // string
$description = 'description_example'; // string
$ancestors = new \Sylius\Model\Collection(); // \Sylius\Model\Collection
$enabled_children = new \Sylius\Model\Collection(); // \Sylius\Model\Collection
$fullname = 'fullname_example'; // string
$translation = array(new \Sylius\Model\\Sylius\Model\TranslationInterface()); // \Sylius\Model\TranslationInterface[]

try {
    $result = $apiInstance->syliusApiAdminTaxonTaxonImagePost($code, $accept_language, $images, $id, $code2, $root, $parent, $children, $left, $right, $level, $position, $translations, $current_locale, $fallback_locale, $enabled, $created_at, $updated_at, $name, $slug, $description, $ancestors, $enabled_children, $fullname, $translation);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TaxonApi->syliusApiAdminTaxonTaxonImagePost: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| Taxon identifier | |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |
| **images** | [**string[]**](../Model/string.md)|  | [optional] |
| **id** | **int**|  | [optional] |
| **code2** | **string**|  | [optional] |
| **root** | **string**|  | [optional] |
| **parent** | **string**|  | [optional] |
| **children** | [**string[]**](../Model/string.md)|  | [optional] |
| **left** | **int**|  | [optional] |
| **right** | **int**|  | [optional] |
| **level** | **int**|  | [optional] |
| **position** | **int**|  | [optional] |
| **translations** | [**object**](../Model/object.md)|  | [optional] |
| **current_locale** | **string**|  | [optional] |
| **fallback_locale** | **string**|  | [optional] |
| **enabled** | **bool**|  | [optional] [default to true] |
| **created_at** | **\DateTime**|  | [optional] |
| **updated_at** | **\DateTime**|  | [optional] |
| **name** | **string**|  | [optional] |
| **slug** | **string**|  | [optional] |
| **description** | **string**|  | [optional] |
| **ancestors** | [**\Sylius\Model\Collection**](../Model/Collection.md)|  | [optional] |
| **enabled_children** | [**\Sylius\Model\Collection**](../Model/Collection.md)|  | [optional] |
| **fullname** | **string**|  | [optional] |
| **translation** | [**\Sylius\Model\TranslationInterface[]**](../Model/\Sylius\Model\TranslationInterface.md)|  | [optional] |

### Return type

[**\Sylius\Model\TaxonJsonldSyliusAdminTaxonImageShow**](../Model/TaxonJsonldSyliusAdminTaxonImageShow.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: `multipart/form-data`
- **Accept**: `application/ld+json`, `application/json`, `application/problem+json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `syliusApiShopTaxonGet()`

```php
syliusApiShopTaxonGet($code, $image_filter, $accept_language): \Sylius\Model\TaxonJsonldSyliusShopTaxonShow
```

Retrieves a Taxon resource.

Retrieves a Taxon resource.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonApi(
    // 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
);
$code = 'code_example'; // string | Taxon identifier
$image_filter = 'image_filter_example'; // string | Image filter to be applied on image resources.
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.

try {
    $result = $apiInstance->syliusApiShopTaxonGet($code, $image_filter, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TaxonApi->syliusApiShopTaxonGet: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| Taxon identifier | |
| **image_filter** | **string**| Image filter to be applied on image resources. | [optional] |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |

### Return type

[**\Sylius\Model\TaxonJsonldSyliusShopTaxonShow**](../Model/TaxonJsonldSyliusShopTaxonShow.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/ld+json`, `application/json`, `application/problem+json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `syliusApiShopTaxonGetBySlug()`

```php
syliusApiShopTaxonGetBySlug($slug, $image_filter, $accept_language): \Sylius\Model\TaxonJsonldSyliusShopTaxonShow
```

Retrieves a Taxon resource.

Retrieves a Taxon resource.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonApi(
    // 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
);
$slug = 'slug_example'; // string | Taxon identifier
$image_filter = 'image_filter_example'; // string | Image filter to be applied on image resources.
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.

try {
    $result = $apiInstance->syliusApiShopTaxonGetBySlug($slug, $image_filter, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TaxonApi->syliusApiShopTaxonGetBySlug: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **slug** | **string**| Taxon identifier | |
| **image_filter** | **string**| Image filter to be applied on image resources. | [optional] |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |

### Return type

[**\Sylius\Model\TaxonJsonldSyliusShopTaxonShow**](../Model/TaxonJsonldSyliusShopTaxonShow.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/ld+json`, `application/json`, `application/problem+json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `syliusApiShopTaxonGetCollection()`

```php
syliusApiShopTaxonGetCollection($page, $items_per_page, $image_filter, $accept_language): \Sylius\Model\SyliusApiShopTaxonGetCollection200Response
```

Retrieves the collection of Taxon resources.

Retrieves the collection of Taxon resources.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonApi(
    // 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
);
$page = 1; // int | The collection page number
$items_per_page = 30; // int | The number of items per page
$image_filter = 'image_filter_example'; // string | Image filter to be applied on image resources.
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.

try {
    $result = $apiInstance->syliusApiShopTaxonGetCollection($page, $items_per_page, $image_filter, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TaxonApi->syliusApiShopTaxonGetCollection: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **page** | **int**| The collection page number | [optional] [default to 1] |
| **items_per_page** | **int**| The number of items per page | [optional] [default to 30] |
| **image_filter** | **string**| Image filter to be applied on image resources. | [optional] |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |

### Return type

[**\Sylius\Model\SyliusApiShopTaxonGetCollection200Response**](../Model/SyliusApiShopTaxonGetCollection200Response.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/ld+json`, `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `syliusApiShopTaxonGetTreeBranch()`

```php
syliusApiShopTaxonGetTreeBranch($code, $include_root, $image_filter, $accept_language): \Sylius\Model\TaxonJsonldSyliusShopTaxonTreeBranch
```

Retrieves a Taxon resource.

Retrieves a Taxon resource.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonApi(
    // 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
);
$code = 'code_example'; // string | Taxon identifier
$include_root = 'include_root_example'; // string | Should root taxon be included, default: no
$image_filter = 'image_filter_example'; // string | Image filter to be applied on image resources.
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.

try {
    $result = $apiInstance->syliusApiShopTaxonGetTreeBranch($code, $include_root, $image_filter, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TaxonApi->syliusApiShopTaxonGetTreeBranch: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| Taxon identifier | |
| **include_root** | **string**| Should root taxon be included, default: no | [optional] |
| **image_filter** | **string**| Image filter to be applied on image resources. | [optional] |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |

### Return type

[**\Sylius\Model\TaxonJsonldSyliusShopTaxonTreeBranch**](../Model/TaxonJsonldSyliusShopTaxonTreeBranch.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/ld+json`, `application/json`, `application/problem+json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `syliusApiShopTaxonGetTreePath()`

```php
syliusApiShopTaxonGetTreePath($code, $include_root, $image_filter, $accept_language): \Sylius\Model\TaxonJsonldSyliusShopTaxonTreePath
```

Retrieves a Taxon resource.

Retrieves a Taxon resource.

### Example

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


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


$apiInstance = new Sylius\Api\TaxonApi(
    // 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
);
$code = 'code_example'; // string | Taxon identifier
$include_root = 'include_root_example'; // string | Should root taxon be included, default: no
$image_filter = 'image_filter_example'; // string | Image filter to be applied on image resources.
$accept_language = 'accept_language_example'; // string | Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop.

try {
    $result = $apiInstance->syliusApiShopTaxonGetTreePath($code, $include_root, $image_filter, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TaxonApi->syliusApiShopTaxonGetTreePath: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| Taxon identifier | |
| **include_root** | **string**| Should root taxon be included, default: no | [optional] |
| **image_filter** | **string**| Image filter to be applied on image resources. | [optional] |
| **accept_language** | **string**| Locales in this enum are all locales defined in the shop and only enabled ones will work in the given channel in the shop. | [optional] |

### Return type

[**\Sylius\Model\TaxonJsonldSyliusShopTaxonTreePath**](../Model/TaxonJsonldSyliusShopTaxonTreePath.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/ld+json`, `application/json`, `application/problem+json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
