# Sylius\ProductOptionValueApi

Resource &#39;ProductOptionValue&#39; operations.

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

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**syliusApiAdminProductOptionProductOptionValueGet()**](ProductOptionValueApi.md#syliusApiAdminProductOptionProductOptionValueGet) | **GET** /api/v2/admin/product-options/{optionCode}/values/{code} | Retrieves a ProductOptionValue resource. |
| [**syliusApiAdminProductOptionProductOptionValueGetCollection()**](ProductOptionValueApi.md#syliusApiAdminProductOptionProductOptionValueGetCollection) | **GET** /api/v2/admin/product-options/{code}/values | Retrieves the collection of ProductOptionValue resources. |
| [**syliusApiShopProductOptionProductOptionValueGet()**](ProductOptionValueApi.md#syliusApiShopProductOptionProductOptionValueGet) | **GET** /api/v2/shop/product-options/{optionCode}/values/{code} | Retrieves a ProductOptionValue resource. |
| [**syliusApiShopProductOptionValueGetCollection()**](ProductOptionValueApi.md#syliusApiShopProductOptionValueGetCollection) | **GET** /api/v2/shop/product-option-values | Retrieves the collection of ProductOptionValue resources. |


## `syliusApiAdminProductOptionProductOptionValueGet()`

```php
syliusApiAdminProductOptionProductOptionValueGet($option_code, $code, $accept_language): \Sylius\Model\ProductOptionValueJsonldSyliusAdminProductOptionValueShow
```

Retrieves a ProductOptionValue resource.

Retrieves a ProductOptionValue 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\ProductOptionValueApi(
    // 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
);
$option_code = 'option_code_example'; // string | ProductOptionValue identifier
$code = 'code_example'; // string | ProductOptionValue 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->syliusApiAdminProductOptionProductOptionValueGet($option_code, $code, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductOptionValueApi->syliusApiAdminProductOptionProductOptionValueGet: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **option_code** | **string**| ProductOptionValue identifier | |
| **code** | **string**| ProductOptionValue 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\ProductOptionValueJsonldSyliusAdminProductOptionValueShow**](../Model/ProductOptionValueJsonldSyliusAdminProductOptionValueShow.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)

## `syliusApiAdminProductOptionProductOptionValueGetCollection()`

```php
syliusApiAdminProductOptionProductOptionValueGetCollection($code, $page, $items_per_page, $accept_language): \Sylius\Model\SyliusApiAdminProductOptionProductOptionValueGetCollection200Response
```

Retrieves the collection of ProductOptionValue resources.

Retrieves the collection of ProductOptionValue 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\ProductOptionValueApi(
    // 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 | ProductOptionValue identifier
$page = 1; // int | The collection page number
$items_per_page = 30; // int | The number of items per page
$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->syliusApiAdminProductOptionProductOptionValueGetCollection($code, $page, $items_per_page, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductOptionValueApi->syliusApiAdminProductOptionProductOptionValueGetCollection: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| ProductOptionValue identifier | |
| **page** | **int**| The collection page number | [optional] [default to 1] |
| **items_per_page** | **int**| The number of items per page | [optional] [default to 30] |
| **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\SyliusApiAdminProductOptionProductOptionValueGetCollection200Response**](../Model/SyliusApiAdminProductOptionProductOptionValueGetCollection200Response.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)

## `syliusApiShopProductOptionProductOptionValueGet()`

```php
syliusApiShopProductOptionProductOptionValueGet($option_code, $code, $accept_language): \Sylius\Model\ProductOptionValueJsonldSyliusShopProductOptionValueShow
```

Retrieves a ProductOptionValue resource.

Retrieves a ProductOptionValue 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\ProductOptionValueApi(
    // 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
);
$option_code = 'option_code_example'; // string | ProductOptionValue identifier
$code = 'code_example'; // string | ProductOptionValue 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->syliusApiShopProductOptionProductOptionValueGet($option_code, $code, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductOptionValueApi->syliusApiShopProductOptionProductOptionValueGet: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **option_code** | **string**| ProductOptionValue identifier | |
| **code** | **string**| ProductOptionValue 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\ProductOptionValueJsonldSyliusShopProductOptionValueShow**](../Model/ProductOptionValueJsonldSyliusShopProductOptionValueShow.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)

## `syliusApiShopProductOptionValueGetCollection()`

```php
syliusApiShopProductOptionValueGetCollection($page, $items_per_page, $product_code, $accept_language): \Sylius\Model\SyliusApiShopProductOptionValueGetCollection200Response
```

Retrieves the collection of ProductOptionValue resources.

Retrieves the collection of ProductOptionValue 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\ProductOptionValueApi(
    // 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
$product_code = 'product_code_example'; // string | Filter product option values by product code.
$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->syliusApiShopProductOptionValueGetCollection($page, $items_per_page, $product_code, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductOptionValueApi->syliusApiShopProductOptionValueGetCollection: ', $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] |
| **product_code** | **string**| Filter product option values by product code. | [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\SyliusApiShopProductOptionValueGetCollection200Response**](../Model/SyliusApiShopProductOptionValueGetCollection200Response.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)
