# Sylius\ShippingMethodApi

Resource &#39;ShippingMethod&#39; operations.

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

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**syliusApiAdminShippingMethodDelete()**](ShippingMethodApi.md#syliusApiAdminShippingMethodDelete) | **DELETE** /api/v2/admin/shipping-methods/{code} | Removes the ShippingMethod resource. |
| [**syliusApiAdminShippingMethodGet()**](ShippingMethodApi.md#syliusApiAdminShippingMethodGet) | **GET** /api/v2/admin/shipping-methods/{code} | Retrieves a ShippingMethod resource. |
| [**syliusApiAdminShippingMethodGetCollection()**](ShippingMethodApi.md#syliusApiAdminShippingMethodGetCollection) | **GET** /api/v2/admin/shipping-methods | Retrieves the collection of ShippingMethod resources. |
| [**syliusApiAdminShippingMethodPatchArchive()**](ShippingMethodApi.md#syliusApiAdminShippingMethodPatchArchive) | **PATCH** /api/v2/admin/shipping-methods/{code}/archive | Updates the ShippingMethod resource. |
| [**syliusApiAdminShippingMethodPatchRestore()**](ShippingMethodApi.md#syliusApiAdminShippingMethodPatchRestore) | **PATCH** /api/v2/admin/shipping-methods/{code}/restore | Updates the ShippingMethod resource. |
| [**syliusApiAdminShippingMethodPost()**](ShippingMethodApi.md#syliusApiAdminShippingMethodPost) | **POST** /api/v2/admin/shipping-methods | Creates a ShippingMethod resource. |
| [**syliusApiAdminShippingMethodPut()**](ShippingMethodApi.md#syliusApiAdminShippingMethodPut) | **PUT** /api/v2/admin/shipping-methods/{code} | Replaces the ShippingMethod resource. |
| [**syliusApiShopOrderShipmentShippingMethodGetCollection()**](ShippingMethodApi.md#syliusApiShopOrderShipmentShippingMethodGetCollection) | **GET** /api/v2/shop/orders/{tokenValue}/shipments/{shipmentId}/methods | Retrieves the collection of ShippingMethod resources. |
| [**syliusApiShopShippingMethodGet()**](ShippingMethodApi.md#syliusApiShopShippingMethodGet) | **GET** /api/v2/shop/shipping-methods/{code} | Retrieves a ShippingMethod resource. |
| [**syliusApiShopShippingMethodGetCollection()**](ShippingMethodApi.md#syliusApiShopShippingMethodGetCollection) | **GET** /api/v2/shop/shipping-methods | Retrieves the collection of ShippingMethod resources. |


## `syliusApiAdminShippingMethodDelete()`

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

Removes the ShippingMethod resource.

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

### Parameters

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

## `syliusApiAdminShippingMethodGet()`

```php
syliusApiAdminShippingMethodGet($code, $accept_language): \Sylius\Model\ShippingMethodJsonldSyliusAdminShippingMethodShow
```

Retrieves a ShippingMethod resource.

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

### Parameters

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

## `syliusApiAdminShippingMethodGetCollection()`

```php
syliusApiAdminShippingMethodGetCollection($page, $items_per_page, $exists_archived_at, $order_code, $order_translation_name, $locale_code_for_order_translation_name, $accept_language): \Sylius\Model\SyliusApiAdminShippingMethodGetCollection200Response
```

Retrieves the collection of ShippingMethod resources.

Retrieves the collection of ShippingMethod 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\ShippingMethodApi(
    // 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
$exists_archived_at = True; // bool | 
$order_code = ''; // string | 
$order_translation_name = 'order_translation_name_example'; // string | 
$locale_code_for_order_translation_name = 'locale_code_for_order_translation_name_example'; // string | 
$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->syliusApiAdminShippingMethodGetCollection($page, $items_per_page, $exists_archived_at, $order_code, $order_translation_name, $locale_code_for_order_translation_name, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ShippingMethodApi->syliusApiAdminShippingMethodGetCollection: ', $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] |
| **exists_archived_at** | **bool**|  | [optional] |
| **order_code** | **string**|  | [optional] [default to &#39;&#39;] |
| **order_translation_name** | **string**|  | [optional] |
| **locale_code_for_order_translation_name** | **string**|  | [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\SyliusApiAdminShippingMethodGetCollection200Response**](../Model/SyliusApiAdminShippingMethodGetCollection200Response.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)

## `syliusApiAdminShippingMethodPatchArchive()`

```php
syliusApiAdminShippingMethodPatchArchive($code, $accept_language): \Sylius\Model\ShippingMethodJsonldSyliusAdminShippingMethodShow
```

Updates the ShippingMethod resource.

Updates the ShippingMethod 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\ShippingMethodApi(
    // 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 | ShippingMethod 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->syliusApiAdminShippingMethodPatchArchive($code, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ShippingMethodApi->syliusApiAdminShippingMethodPatchArchive: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

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

## `syliusApiAdminShippingMethodPatchRestore()`

```php
syliusApiAdminShippingMethodPatchRestore($code, $accept_language): \Sylius\Model\ShippingMethodJsonldSyliusAdminShippingMethodShow
```

Updates the ShippingMethod resource.

Updates the ShippingMethod 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\ShippingMethodApi(
    // 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 | ShippingMethod 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->syliusApiAdminShippingMethodPatchRestore($code, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ShippingMethodApi->syliusApiAdminShippingMethodPatchRestore: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

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

## `syliusApiAdminShippingMethodPost()`

```php
syliusApiAdminShippingMethodPost($shipping_method_sylius_admin_shipping_method_create, $accept_language): \Sylius\Model\ShippingMethodJsonldSyliusAdminShippingMethodShow
```

Creates a ShippingMethod resource.

Creates a ShippingMethod resource.   Allowed rule types: `total_weight_greater_than_or_equal`, `total_weight_less_than_or_equal`, `order_total_greater_than_or_equal`, `order_total_less_than_or_equal`    Allowed calculators: `flat_rate`, `per_unit_rate`

### 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\ShippingMethodApi(
    // 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
);
$shipping_method_sylius_admin_shipping_method_create = new \Sylius\Model\ShippingMethodSyliusAdminShippingMethodCreate(); // \Sylius\Model\ShippingMethodSyliusAdminShippingMethodCreate | The new ShippingMethod 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->syliusApiAdminShippingMethodPost($shipping_method_sylius_admin_shipping_method_create, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ShippingMethodApi->syliusApiAdminShippingMethodPost: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **shipping_method_sylius_admin_shipping_method_create** | [**\Sylius\Model\ShippingMethodSyliusAdminShippingMethodCreate**](../Model/ShippingMethodSyliusAdminShippingMethodCreate.md)| The new ShippingMethod 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\ShippingMethodJsonldSyliusAdminShippingMethodShow**](../Model/ShippingMethodJsonldSyliusAdminShippingMethodShow.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)

## `syliusApiAdminShippingMethodPut()`

```php
syliusApiAdminShippingMethodPut($code, $shipping_method_sylius_admin_shipping_method_update, $accept_language): \Sylius\Model\ShippingMethodJsonldSyliusAdminShippingMethodShow
```

Replaces the ShippingMethod resource.

Replaces the ShippingMethod resource.   Allowed rule types: `total_weight_greater_than_or_equal`, `total_weight_less_than_or_equal`, `order_total_greater_than_or_equal`, `order_total_less_than_or_equal`    Allowed calculators: `flat_rate`, `per_unit_rate`

### 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\ShippingMethodApi(
    // 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 | ShippingMethod identifier
$shipping_method_sylius_admin_shipping_method_update = new \Sylius\Model\ShippingMethodSyliusAdminShippingMethodUpdate(); // \Sylius\Model\ShippingMethodSyliusAdminShippingMethodUpdate | The updated ShippingMethod 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->syliusApiAdminShippingMethodPut($code, $shipping_method_sylius_admin_shipping_method_update, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ShippingMethodApi->syliusApiAdminShippingMethodPut: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **code** | **string**| ShippingMethod identifier | |
| **shipping_method_sylius_admin_shipping_method_update** | [**\Sylius\Model\ShippingMethodSyliusAdminShippingMethodUpdate**](../Model/ShippingMethodSyliusAdminShippingMethodUpdate.md)| The updated ShippingMethod 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\ShippingMethodJsonldSyliusAdminShippingMethodShow**](../Model/ShippingMethodJsonldSyliusAdminShippingMethodShow.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)

## `syliusApiShopOrderShipmentShippingMethodGetCollection()`

```php
syliusApiShopOrderShipmentShippingMethodGetCollection($token_value, $shipment_id, $page, $items_per_page, $accept_language): \Sylius\Model\SyliusApiShopOrderShipmentShippingMethodGetCollection200Response
```

Retrieves the collection of ShippingMethod resources.

Retrieves the collection of ShippingMethod 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\ShippingMethodApi(
    // 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
);
$token_value = 'token_value_example'; // string | ShippingMethod identifier
$shipment_id = 'shipment_id_example'; // string | ShippingMethod 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->syliusApiShopOrderShipmentShippingMethodGetCollection($token_value, $shipment_id, $page, $items_per_page, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ShippingMethodApi->syliusApiShopOrderShipmentShippingMethodGetCollection: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **token_value** | **string**| ShippingMethod identifier | |
| **shipment_id** | **string**| ShippingMethod 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\SyliusApiShopOrderShipmentShippingMethodGetCollection200Response**](../Model/SyliusApiShopOrderShipmentShippingMethodGetCollection200Response.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)

## `syliusApiShopShippingMethodGet()`

```php
syliusApiShopShippingMethodGet($code, $accept_language): \Sylius\Model\ShippingMethodJsonldSyliusShopShippingMethodShow
```

Retrieves a ShippingMethod resource.

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

### Parameters

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

## `syliusApiShopShippingMethodGetCollection()`

```php
syliusApiShopShippingMethodGetCollection($accept_language): \Sylius\Model\SyliusApiShopShippingMethodGetCollection200Response
```

Retrieves the collection of ShippingMethod resources.

Retrieves the collection of ShippingMethod 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\ShippingMethodApi(
    // 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
);
$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->syliusApiShopShippingMethodGetCollection($accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ShippingMethodApi->syliusApiShopShippingMethodGetCollection: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

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