# Sylius\ProductApi

Resource &#39;Product&#39; operations.

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

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**productBundleGetSubresource()**](ProductApi.md#productBundleGetSubresource) | **GET** /api/v2/shop/products/{code}/bundle | Retrieves a Product resource. |
| [**syliusApiAdminProductDelete()**](ProductApi.md#syliusApiAdminProductDelete) | **DELETE** /api/v2/admin/products/{code} | Removes the Product resource. |
| [**syliusApiAdminProductGet()**](ProductApi.md#syliusApiAdminProductGet) | **GET** /api/v2/admin/products/{code} | Retrieves a Product resource. |
| [**syliusApiAdminProductGetCollection()**](ProductApi.md#syliusApiAdminProductGetCollection) | **GET** /api/v2/admin/products | Retrieves the collection of Product resources. |
| [**syliusApiAdminProductPost()**](ProductApi.md#syliusApiAdminProductPost) | **POST** /api/v2/admin/products | Creates a Product resource. |
| [**syliusApiAdminProductProductImagePost()**](ProductApi.md#syliusApiAdminProductProductImagePost) | **POST** /api/v2/admin/products/{code}/images | Creates a Product resource. |
| [**syliusApiAdminProductPut()**](ProductApi.md#syliusApiAdminProductPut) | **PUT** /api/v2/admin/products/{code} | Replaces the Product resource. |
| [**syliusApiShopProductGet()**](ProductApi.md#syliusApiShopProductGet) | **GET** /api/v2/shop/products/{code} | Retrieves a Product resource. |
| [**syliusApiShopProductGetBySlug()**](ProductApi.md#syliusApiShopProductGetBySlug) | **GET** /api/v2/shop/products-by-slug/{slug} | Retrieves a Product resource. |
| [**syliusApiShopProductGetCollection()**](ProductApi.md#syliusApiShopProductGetCollection) | **GET** /api/v2/shop/products | Retrieves the collection of Product resources. |


## `productBundleGetSubresource()`

```php
productBundleGetSubresource($code, $accept_language): \Sylius\Model\ProductJsonldShopProductBundleRead
```

Retrieves a Product resource.

Retrieves a Product 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\ProductApi(
    // 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 | Product 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 {
    $result = $apiInstance->productBundleGetSubresource($code, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductApi->productBundleGetSubresource: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| Product 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

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

## `syliusApiAdminProductDelete()`

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

Removes the Product resource.

Removes the Product 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\ProductApi(
    // 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 | Product 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->syliusApiAdminProductDelete($code, $accept_language);
} catch (Exception $e) {
    echo 'Exception when calling ProductApi->syliusApiAdminProductDelete: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| Product 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)

## `syliusApiAdminProductGet()`

```php
syliusApiAdminProductGet($code, $image_filter, $accept_language): \Sylius\Model\ProductJsonldSyliusAdminProductShow
```

Retrieves a Product resource.

Retrieves a Product 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\ProductApi(
    // 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 | Product 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->syliusApiAdminProductGet($code, $image_filter, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductApi->syliusApiAdminProductGet: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| Product 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\ProductJsonldSyliusAdminProductShow**](../Model/ProductJsonldSyliusAdminProductShow.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)

## `syliusApiAdminProductGetCollection()`

```php
syliusApiAdminProductGetCollection($page, $items_per_page, $code, $translations_name, $product_taxons_taxon_code, $product_taxons_taxon_code2, $main_taxon_code, $main_taxon_code2, $channel, $order_translation_name, $locale_code_for_order_translation_name, $order_code, $order_created_at, $image_filter, $accept_language): \Sylius\Model\SyliusApiAdminProductGetCollection200Response
```

Retrieves the collection of Product resources.

Retrieves the collection of Product 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\ProductApi(
    // 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
$code = 'code_example'; // string | 
$translations_name = 'translations_name_example'; // string | 
$product_taxons_taxon_code = 'product_taxons_taxon_code_example'; // string | 
$product_taxons_taxon_code2 = array('product_taxons_taxon_code_example'); // string[] | 
$main_taxon_code = 'main_taxon_code_example'; // string | 
$main_taxon_code2 = array('main_taxon_code_example'); // string[] | 
$channel = 'channel_example'; // string | 
$order_translation_name = 'order_translation_name_example'; // string | 
$locale_code_for_order_translation_name = 'locale_code_for_order_translation_name_example'; // string | 
$order_code = ''; // string | 
$order_created_at = ''; // string | 
$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->syliusApiAdminProductGetCollection($page, $items_per_page, $code, $translations_name, $product_taxons_taxon_code, $product_taxons_taxon_code2, $main_taxon_code, $main_taxon_code2, $channel, $order_translation_name, $locale_code_for_order_translation_name, $order_code, $order_created_at, $image_filter, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductApi->syliusApiAdminProductGetCollection: ', $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] |
| **code** | **string**|  | [optional] |
| **translations_name** | **string**|  | [optional] |
| **product_taxons_taxon_code** | **string**|  | [optional] |
| **product_taxons_taxon_code2** | [**string[]**](../Model/string.md)|  | [optional] |
| **main_taxon_code** | **string**|  | [optional] |
| **main_taxon_code2** | [**string[]**](../Model/string.md)|  | [optional] |
| **channel** | **string**|  | [optional] |
| **order_translation_name** | **string**|  | [optional] |
| **locale_code_for_order_translation_name** | **string**|  | [optional] |
| **order_code** | **string**|  | [optional] [default to &#39;&#39;] |
| **order_created_at** | **string**|  | [optional] [default to &#39;&#39;] |
| **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\SyliusApiAdminProductGetCollection200Response**](../Model/SyliusApiAdminProductGetCollection200Response.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)

## `syliusApiAdminProductPost()`

```php
syliusApiAdminProductPost($product_sylius_admin_product_create, $accept_language): \Sylius\Model\ProductJsonldSyliusAdminProductShow
```

Creates a Product resource.

Creates a Product 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\ProductApi(
    // 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
);
$product_sylius_admin_product_create = new \Sylius\Model\ProductSyliusAdminProductCreate(); // \Sylius\Model\ProductSyliusAdminProductCreate | The new Product 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->syliusApiAdminProductPost($product_sylius_admin_product_create, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductApi->syliusApiAdminProductPost: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **product_sylius_admin_product_create** | [**\Sylius\Model\ProductSyliusAdminProductCreate**](../Model/ProductSyliusAdminProductCreate.md)| The new Product 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\ProductJsonldSyliusAdminProductShow**](../Model/ProductJsonldSyliusAdminProductShow.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)

## `syliusApiAdminProductProductImagePost()`

```php
syliusApiAdminProductProductImagePost($code, $accept_language, $variant_selection_method, $product_taxons, $channels, $main_taxon, $reviews, $average_rating, $images, $id, $code2, $attributes, $variants, $options, $associations, $created_at, $updated_at, $enabled, $translations, $current_locale, $fallback_locale, $bundle, $product_type, $is_bundle, $variant_selection_method_choice, $variant_selection_method_label, $taxons, $short_description, $translation, $name, $description, $slug, $descriptor, $meta_keywords, $meta_description, $enabled_variants, $simple, $configurable): \Sylius\Model\ProductJsonldSyliusAdminProductImageShow
```

Creates a Product resource.

Creates a Product 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\ProductApi(
    // 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 | Product 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.
$variant_selection_method = 'choice'; // string
$product_taxons = array('product_taxons_example'); // string[]
$channels = array('channels_example'); // string[]
$main_taxon = 'main_taxon_example'; // string
$reviews = new \Sylius\Model\Collection(); // \Sylius\Model\Collection
$average_rating = 0; // float
$images = array('images_example'); // string[]
$id = 56; // int
$code2 = 'code_example'; // string
$attributes = array('attributes_example'); // string[]
$variants = array('variants_example'); // string[]
$options = array('options_example'); // string[]
$associations = array('associations_example'); // string[]
$created_at = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime
$updated_at = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime
$enabled = true; // bool
$translations = array('key' => new \stdClass); // object
$current_locale = 'current_locale_example'; // string
$fallback_locale = 'fallback_locale_example'; // string
$bundle = 'bundle_example'; // string
$product_type = new \Sylius\Model\ProductType(); // \Sylius\Model\ProductType
$is_bundle = True; // bool
$variant_selection_method_choice = True; // bool
$variant_selection_method_label = 'variant_selection_method_label_example'; // string
$taxons = new \Sylius\Model\Collection(); // \Sylius\Model\Collection
$short_description = 'short_description_example'; // string
$translation = array(new \Sylius\Model\\Sylius\Model\TranslationInterface()); // \Sylius\Model\TranslationInterface[]
$name = 'name_example'; // string
$description = 'description_example'; // string
$slug = 'slug_example'; // string
$descriptor = 'descriptor_example'; // string
$meta_keywords = 'meta_keywords_example'; // string
$meta_description = 'meta_description_example'; // string
$enabled_variants = new \Sylius\Model\Collection(); // \Sylius\Model\Collection
$simple = True; // bool
$configurable = True; // bool

try {
    $result = $apiInstance->syliusApiAdminProductProductImagePost($code, $accept_language, $variant_selection_method, $product_taxons, $channels, $main_taxon, $reviews, $average_rating, $images, $id, $code2, $attributes, $variants, $options, $associations, $created_at, $updated_at, $enabled, $translations, $current_locale, $fallback_locale, $bundle, $product_type, $is_bundle, $variant_selection_method_choice, $variant_selection_method_label, $taxons, $short_description, $translation, $name, $description, $slug, $descriptor, $meta_keywords, $meta_description, $enabled_variants, $simple, $configurable);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductApi->syliusApiAdminProductProductImagePost: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| Product 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] |
| **variant_selection_method** | **string**|  | [optional] [default to &#39;choice&#39;] |
| **product_taxons** | [**string[]**](../Model/string.md)|  | [optional] |
| **channels** | [**string[]**](../Model/string.md)|  | [optional] |
| **main_taxon** | **string**|  | [optional] |
| **reviews** | [**\Sylius\Model\Collection**](../Model/Collection.md)|  | [optional] |
| **average_rating** | **float**|  | [optional] [default to 0] |
| **images** | [**string[]**](../Model/string.md)|  | [optional] |
| **id** | **int**|  | [optional] |
| **code2** | **string**|  | [optional] |
| **attributes** | [**string[]**](../Model/string.md)|  | [optional] |
| **variants** | [**string[]**](../Model/string.md)|  | [optional] |
| **options** | [**string[]**](../Model/string.md)|  | [optional] |
| **associations** | [**string[]**](../Model/string.md)|  | [optional] |
| **created_at** | **\DateTime**|  | [optional] |
| **updated_at** | **\DateTime**|  | [optional] |
| **enabled** | **bool**|  | [optional] [default to true] |
| **translations** | [**object**](../Model/object.md)|  | [optional] |
| **current_locale** | **string**|  | [optional] |
| **fallback_locale** | **string**|  | [optional] |
| **bundle** | **string**|  | [optional] |
| **product_type** | [**\Sylius\Model\ProductType**](../Model/ProductType.md)|  | [optional] |
| **is_bundle** | **bool**|  | [optional] |
| **variant_selection_method_choice** | **bool**|  | [optional] |
| **variant_selection_method_label** | **string**|  | [optional] |
| **taxons** | [**\Sylius\Model\Collection**](../Model/Collection.md)|  | [optional] |
| **short_description** | **string**|  | [optional] |
| **translation** | [**\Sylius\Model\TranslationInterface[]**](../Model/\Sylius\Model\TranslationInterface.md)|  | [optional] |
| **name** | **string**|  | [optional] |
| **description** | **string**|  | [optional] |
| **slug** | **string**|  | [optional] |
| **descriptor** | **string**|  | [optional] |
| **meta_keywords** | **string**|  | [optional] |
| **meta_description** | **string**|  | [optional] |
| **enabled_variants** | [**\Sylius\Model\Collection**](../Model/Collection.md)|  | [optional] |
| **simple** | **bool**|  | [optional] |
| **configurable** | **bool**|  | [optional] |

### Return type

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

## `syliusApiAdminProductPut()`

```php
syliusApiAdminProductPut($code, $product_sylius_admin_product_update, $accept_language): \Sylius\Model\ProductJsonldSyliusAdminProductShow
```

Replaces the Product resource.

Replaces the Product 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\ProductApi(
    // 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 | Product identifier
$product_sylius_admin_product_update = new \Sylius\Model\ProductSyliusAdminProductUpdate(); // \Sylius\Model\ProductSyliusAdminProductUpdate | The updated Product 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->syliusApiAdminProductPut($code, $product_sylius_admin_product_update, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductApi->syliusApiAdminProductPut: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| Product identifier | |
| **product_sylius_admin_product_update** | [**\Sylius\Model\ProductSyliusAdminProductUpdate**](../Model/ProductSyliusAdminProductUpdate.md)| The updated Product 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\ProductJsonldSyliusAdminProductShow**](../Model/ProductJsonldSyliusAdminProductShow.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)

## `syliusApiShopProductGet()`

```php
syliusApiShopProductGet($code, $image_filter, $accept_language): \Sylius\Model\ProductJsonldSyliusShopProductShow
```

Retrieves a Product resource.

Retrieves a Product 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\ProductApi(
    // 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 | Product 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->syliusApiShopProductGet($code, $image_filter, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductApi->syliusApiShopProductGet: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| Product 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\ProductJsonldSyliusShopProductShow**](../Model/ProductJsonldSyliusShopProductShow.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)

## `syliusApiShopProductGetBySlug()`

```php
syliusApiShopProductGetBySlug($slug, $image_filter, $accept_language): \Sylius\Model\ProductJsonldSyliusShopProductShow
```

Retrieves a Product resource.

Retrieves a Product 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\ProductApi(
    // 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 | Product 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->syliusApiShopProductGetBySlug($slug, $image_filter, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductApi->syliusApiShopProductGetBySlug: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **slug** | **string**| Product 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\ProductJsonldSyliusShopProductShow**](../Model/ProductJsonldSyliusShopProductShow.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)

## `syliusApiShopProductGetCollection()`

```php
syliusApiShopProductGetCollection($page, $items_per_page, $translations_name, $product_taxons_taxon_code, $product_taxons_taxon_code2, $order_code, $order_created_at, $order_price, $order_translation_name, $locale_code_for_order_translation_name, $taxon, $association_type_code, $association_owner_code, $image_filter, $accept_language): \Sylius\Model\SyliusApiShopProductGetCollection200Response
```

Retrieves the collection of Product resources.

Retrieves the collection of Product 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\ProductApi(
    // 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
$translations_name = 'translations_name_example'; // string | 
$product_taxons_taxon_code = 'product_taxons_taxon_code_example'; // string | 
$product_taxons_taxon_code2 = array('product_taxons_taxon_code_example'); // string[] | 
$order_code = ''; // string | 
$order_created_at = ''; // string | 
$order_price = 'order_price_example'; // string | 
$order_translation_name = 'order_translation_name_example'; // string | 
$locale_code_for_order_translation_name = 'locale_code_for_order_translation_name_example'; // string | 
$taxon = 'taxon_example'; // string | 
$association_type_code = 'association_type_code_example'; // string | Filter by association type code.
$association_owner_code = 'association_owner_code_example'; // string | Filter by association owner code.
$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->syliusApiShopProductGetCollection($page, $items_per_page, $translations_name, $product_taxons_taxon_code, $product_taxons_taxon_code2, $order_code, $order_created_at, $order_price, $order_translation_name, $locale_code_for_order_translation_name, $taxon, $association_type_code, $association_owner_code, $image_filter, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductApi->syliusApiShopProductGetCollection: ', $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] |
| **translations_name** | **string**|  | [optional] |
| **product_taxons_taxon_code** | **string**|  | [optional] |
| **product_taxons_taxon_code2** | [**string[]**](../Model/string.md)|  | [optional] |
| **order_code** | **string**|  | [optional] [default to &#39;&#39;] |
| **order_created_at** | **string**|  | [optional] [default to &#39;&#39;] |
| **order_price** | **string**|  | [optional] |
| **order_translation_name** | **string**|  | [optional] |
| **locale_code_for_order_translation_name** | **string**|  | [optional] |
| **taxon** | **string**|  | [optional] |
| **association_type_code** | **string**| Filter by association type code. | [optional] |
| **association_owner_code** | **string**| Filter by association owner code. | [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\SyliusApiShopProductGetCollection200Response**](../Model/SyliusApiShopProductGetCollection200Response.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)
