# Sylius\OrderApi

Resource &#39;Order&#39; operations.

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

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**syliusApiAdminOrderGet()**](OrderApi.md#syliusApiAdminOrderGet) | **GET** /api/v2/admin/orders/{tokenValue} | Retrieves a Order resource. |
| [**syliusApiAdminOrderGetCollection()**](OrderApi.md#syliusApiAdminOrderGetCollection) | **GET** /api/v2/admin/orders | Retrieves the collection of Order resources. |
| [**syliusApiAdminOrderPatchCancel()**](OrderApi.md#syliusApiAdminOrderPatchCancel) | **PATCH** /api/v2/admin/orders/{tokenValue}/cancel | Updates the Order resource. |
| [**syliusApiAdminOrderPostResendConfirmationEmail()**](OrderApi.md#syliusApiAdminOrderPostResendConfirmationEmail) | **POST** /api/v2/admin/orders/{tokenValue}/resend-confirmation-email | Creates a Order resource. |
| [**syliusApiShopOrderAddProductBundle()**](OrderApi.md#syliusApiShopOrderAddProductBundle) | **PATCH** /api/v2/shop/orders/{tokenValue}/product-bundle | Updates the Order resource. |
| [**syliusApiShopOrderDelete()**](OrderApi.md#syliusApiShopOrderDelete) | **DELETE** /api/v2/shop/orders/{tokenValue} | Removes the Order resource. |
| [**syliusApiShopOrderGet()**](OrderApi.md#syliusApiShopOrderGet) | **GET** /api/v2/shop/orders/{tokenValue} | Retrieves a Order resource. |
| [**syliusApiShopOrderGetCollection()**](OrderApi.md#syliusApiShopOrderGetCollection) | **GET** /api/v2/shop/orders | Retrieves the collection of Order resources. |
| [**syliusApiShopOrderOrderItemDelete()**](OrderApi.md#syliusApiShopOrderOrderItemDelete) | **DELETE** /api/v2/shop/orders/{tokenValue}/items/{orderItemId} | Removes the Order resource. |
| [**syliusApiShopOrderOrderItemPatch()**](OrderApi.md#syliusApiShopOrderOrderItemPatch) | **PATCH** /api/v2/shop/orders/{tokenValue}/items/{orderItemId} | Updates the Order resource. |
| [**syliusApiShopOrderOrderItemPost()**](OrderApi.md#syliusApiShopOrderOrderItemPost) | **POST** /api/v2/shop/orders/{tokenValue}/items | Creates a Order resource. |
| [**syliusApiShopOrderPatchComplete()**](OrderApi.md#syliusApiShopOrderPatchComplete) | **PATCH** /api/v2/shop/orders/{tokenValue}/complete | Updates the Order resource. |
| [**syliusApiShopOrderPaymentGetConfiguration()**](OrderApi.md#syliusApiShopOrderPaymentGetConfiguration) | **GET** /api/v2/shop/orders/{tokenValue}/payments/{paymentId}/configuration | Retrieves a Order resource. |
| [**syliusApiShopOrderPaymentPatch()**](OrderApi.md#syliusApiShopOrderPaymentPatch) | **PATCH** /api/v2/shop/orders/{tokenValue}/payments/{paymentId} | Updates the Order resource. |
| [**syliusApiShopOrderPaymentPatchAccount()**](OrderApi.md#syliusApiShopOrderPaymentPatchAccount) | **PATCH** /api/v2/shop/account/orders/{tokenValue}/payments/{paymentId} | Updates the Order resource. |
| [**syliusApiShopOrderPost()**](OrderApi.md#syliusApiShopOrderPost) | **POST** /api/v2/shop/orders | Creates a Order resource. |
| [**syliusApiShopOrderPut()**](OrderApi.md#syliusApiShopOrderPut) | **PUT** /api/v2/shop/orders/{tokenValue} | Replaces the Order resource. |
| [**syliusApiShopOrderShipmentPatch()**](OrderApi.md#syliusApiShopOrderShipmentPatch) | **PATCH** /api/v2/shop/orders/{tokenValue}/shipments/{shipmentId} | Updates the Order resource. |


## `syliusApiAdminOrderGet()`

```php
syliusApiAdminOrderGet($token_value, $accept_language): \Sylius\Model\OrderJsonldSyliusAdminOrderShow
```

Retrieves a Order resource.

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

### Parameters

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

## `syliusApiAdminOrderGetCollection()`

```php
syliusApiAdminOrderGetCollection($page, $items_per_page, $channel_code, $currency_code, $currency_code2, $customer_id, $customer_id2, $items_product_name, $items_product_name2, $shipments_method_code, $shipments_method_code2, $items_variant_translations_name, $items_variant_translations_name2, $checkout_completed_at_before, $checkout_completed_at_strictly_before, $checkout_completed_at_after, $checkout_completed_at_strictly_after, $total_between, $total_gt, $total_gte, $total_lt, $total_lte, $order_number, $accept_language): \Sylius\Model\SyliusApiAdminOrderGetCollection200Response
```

Retrieves the collection of Order resources.

Retrieves the collection of Order 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\OrderApi(
    // 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
$channel_code = 'channel_code_example'; // string | 
$currency_code = 'currency_code_example'; // string | 
$currency_code2 = array('currency_code_example'); // string[] | 
$customer_id = 56; // int | 
$customer_id2 = array(56); // int[] | 
$items_product_name = 'items_product_name_example'; // string | 
$items_product_name2 = array('items_product_name_example'); // string[] | 
$shipments_method_code = 'shipments_method_code_example'; // string | 
$shipments_method_code2 = array('shipments_method_code_example'); // string[] | 
$items_variant_translations_name = 'items_variant_translations_name_example'; // string | 
$items_variant_translations_name2 = array('items_variant_translations_name_example'); // string[] | 
$checkout_completed_at_before = 'checkout_completed_at_before_example'; // string | 
$checkout_completed_at_strictly_before = 'checkout_completed_at_strictly_before_example'; // string | 
$checkout_completed_at_after = 'checkout_completed_at_after_example'; // string | 
$checkout_completed_at_strictly_after = 'checkout_completed_at_strictly_after_example'; // string | 
$total_between = 'total_between_example'; // string | 
$total_gt = 'total_gt_example'; // string | 
$total_gte = 'total_gte_example'; // string | 
$total_lt = 'total_lt_example'; // string | 
$total_lte = 'total_lte_example'; // string | 
$order_number = ''; // 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->syliusApiAdminOrderGetCollection($page, $items_per_page, $channel_code, $currency_code, $currency_code2, $customer_id, $customer_id2, $items_product_name, $items_product_name2, $shipments_method_code, $shipments_method_code2, $items_variant_translations_name, $items_variant_translations_name2, $checkout_completed_at_before, $checkout_completed_at_strictly_before, $checkout_completed_at_after, $checkout_completed_at_strictly_after, $total_between, $total_gt, $total_gte, $total_lt, $total_lte, $order_number, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderApi->syliusApiAdminOrderGetCollection: ', $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] |
| **channel_code** | **string**|  | [optional] |
| **currency_code** | **string**|  | [optional] |
| **currency_code2** | [**string[]**](../Model/string.md)|  | [optional] |
| **customer_id** | **int**|  | [optional] |
| **customer_id2** | [**int[]**](../Model/int.md)|  | [optional] |
| **items_product_name** | **string**|  | [optional] |
| **items_product_name2** | [**string[]**](../Model/string.md)|  | [optional] |
| **shipments_method_code** | **string**|  | [optional] |
| **shipments_method_code2** | [**string[]**](../Model/string.md)|  | [optional] |
| **items_variant_translations_name** | **string**|  | [optional] |
| **items_variant_translations_name2** | [**string[]**](../Model/string.md)|  | [optional] |
| **checkout_completed_at_before** | **string**|  | [optional] |
| **checkout_completed_at_strictly_before** | **string**|  | [optional] |
| **checkout_completed_at_after** | **string**|  | [optional] |
| **checkout_completed_at_strictly_after** | **string**|  | [optional] |
| **total_between** | **string**|  | [optional] |
| **total_gt** | **string**|  | [optional] |
| **total_gte** | **string**|  | [optional] |
| **total_lt** | **string**|  | [optional] |
| **total_lte** | **string**|  | [optional] |
| **order_number** | **string**|  | [optional] [default to &#39;&#39;] |
| **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\SyliusApiAdminOrderGetCollection200Response**](../Model/SyliusApiAdminOrderGetCollection200Response.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)

## `syliusApiAdminOrderPatchCancel()`

```php
syliusApiAdminOrderPatchCancel($token_value, $accept_language): \Sylius\Model\OrderJsonldSyliusAdminOrderShow
```

Updates the Order resource.

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

### Parameters

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

## `syliusApiAdminOrderPostResendConfirmationEmail()`

```php
syliusApiAdminOrderPostResendConfirmationEmail($token_value, $order_resend_order_confirmation_email, $accept_language)
```

Creates a Order resource.

Creates a Order 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\OrderApi(
    // 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 | Order identifier
$order_resend_order_confirmation_email = new \Sylius\Model\OrderResendOrderConfirmationEmail(); // \Sylius\Model\OrderResendOrderConfirmationEmail | The new Order 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 {
    $apiInstance->syliusApiAdminOrderPostResendConfirmationEmail($token_value, $order_resend_order_confirmation_email, $accept_language);
} catch (Exception $e) {
    echo 'Exception when calling OrderApi->syliusApiAdminOrderPostResendConfirmationEmail: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **token_value** | **string**| Order identifier | |
| **order_resend_order_confirmation_email** | [**\Sylius\Model\OrderResendOrderConfirmationEmail**](../Model/OrderResendOrderConfirmationEmail.md)| The new Order 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

void (empty response body)

### Authorization

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

### HTTP request headers

- **Content-Type**: `application/ld+json`, `application/json`
- **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)

## `syliusApiShopOrderAddProductBundle()`

```php
syliusApiShopOrderAddProductBundle($token_value, $order_add_product_bundle_to_cart_dto_shop_cart_add_product_bundle_json_merge_patch, $accept_language): \Sylius\Model\OrderJsonldSyliusShopCartShow
```

Updates the Order resource.

Updates the Order 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\OrderApi(
    // 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 | Order identifier
$order_add_product_bundle_to_cart_dto_shop_cart_add_product_bundle_json_merge_patch = new \Sylius\Model\OrderAddProductBundleToCartDtoShopCartAddProductBundleJsonMergePatch(); // \Sylius\Model\OrderAddProductBundleToCartDtoShopCartAddProductBundleJsonMergePatch | The updated Order 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->syliusApiShopOrderAddProductBundle($token_value, $order_add_product_bundle_to_cart_dto_shop_cart_add_product_bundle_json_merge_patch, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderApi->syliusApiShopOrderAddProductBundle: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **token_value** | **string**| Order identifier | |
| **order_add_product_bundle_to_cart_dto_shop_cart_add_product_bundle_json_merge_patch** | [**\Sylius\Model\OrderAddProductBundleToCartDtoShopCartAddProductBundleJsonMergePatch**](../Model/OrderAddProductBundleToCartDtoShopCartAddProductBundleJsonMergePatch.md)| The updated Order 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\OrderJsonldSyliusShopCartShow**](../Model/OrderJsonldSyliusShopCartShow.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: `application/merge-patch+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)

## `syliusApiShopOrderDelete()`

```php
syliusApiShopOrderDelete($token_value, $accept_language)
```

Removes the Order resource.

Removes the Order 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\OrderApi(
    // 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 | Order 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->syliusApiShopOrderDelete($token_value, $accept_language);
} catch (Exception $e) {
    echo 'Exception when calling OrderApi->syliusApiShopOrderDelete: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **token_value** | **string**| Order 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)

## `syliusApiShopOrderGet()`

```php
syliusApiShopOrderGet($token_value, $accept_language): \Sylius\Model\OrderJsonldSyliusShopCartShow
```

Retrieves a Order resource.

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

### Parameters

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

## `syliusApiShopOrderGetCollection()`

```php
syliusApiShopOrderGetCollection($page, $items_per_page, $accept_language): \Sylius\Model\SyliusApiShopOrderGetCollection200Response
```

Retrieves the collection of Order resources.

Retrieves the collection of Order 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\OrderApi(
    // 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
$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->syliusApiShopOrderGetCollection($page, $items_per_page, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderApi->syliusApiShopOrderGetCollection: ', $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] |
| **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\SyliusApiShopOrderGetCollection200Response**](../Model/SyliusApiShopOrderGetCollection200Response.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)

## `syliusApiShopOrderOrderItemDelete()`

```php
syliusApiShopOrderOrderItemDelete($token_value, $order_item_id, $accept_language)
```

Removes the Order resource.

Removes the Order 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\OrderApi(
    // 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 | Order identifier
$order_item_id = 'order_item_id_example'; // string | Order 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->syliusApiShopOrderOrderItemDelete($token_value, $order_item_id, $accept_language);
} catch (Exception $e) {
    echo 'Exception when calling OrderApi->syliusApiShopOrderOrderItemDelete: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **token_value** | **string**| Order identifier | |
| **order_item_id** | **string**| Order 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)

## `syliusApiShopOrderOrderItemPatch()`

```php
syliusApiShopOrderOrderItemPatch($token_value, $order_item_id, $order_change_item_quantity_in_cart_sylius_shop_cart_change_quantity_json_merge_patch, $accept_language): \Sylius\Model\OrderJsonldSyliusShopCartShow
```

Updates the Order resource.

Updates the Order 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\OrderApi(
    // 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 | Order identifier
$order_item_id = 'order_item_id_example'; // string | Order identifier
$order_change_item_quantity_in_cart_sylius_shop_cart_change_quantity_json_merge_patch = new \Sylius\Model\OrderChangeItemQuantityInCartSyliusShopCartChangeQuantityJsonMergePatch(); // \Sylius\Model\OrderChangeItemQuantityInCartSyliusShopCartChangeQuantityJsonMergePatch | The updated Order 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->syliusApiShopOrderOrderItemPatch($token_value, $order_item_id, $order_change_item_quantity_in_cart_sylius_shop_cart_change_quantity_json_merge_patch, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderApi->syliusApiShopOrderOrderItemPatch: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **token_value** | **string**| Order identifier | |
| **order_item_id** | **string**| Order identifier | |
| **order_change_item_quantity_in_cart_sylius_shop_cart_change_quantity_json_merge_patch** | [**\Sylius\Model\OrderChangeItemQuantityInCartSyliusShopCartChangeQuantityJsonMergePatch**](../Model/OrderChangeItemQuantityInCartSyliusShopCartChangeQuantityJsonMergePatch.md)| The updated Order 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\OrderJsonldSyliusShopCartShow**](../Model/OrderJsonldSyliusShopCartShow.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: `application/merge-patch+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)

## `syliusApiShopOrderOrderItemPost()`

```php
syliusApiShopOrderOrderItemPost($token_value, $order_add_item_to_cart_sylius_shop_cart_add_item, $accept_language): \Sylius\Model\OrderJsonldSyliusShopCartShow
```

Creates a Order resource.

Creates a Order 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\OrderApi(
    // 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 | Order identifier
$order_add_item_to_cart_sylius_shop_cart_add_item = new \Sylius\Model\OrderAddItemToCartSyliusShopCartAddItem(); // \Sylius\Model\OrderAddItemToCartSyliusShopCartAddItem | The new Order 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->syliusApiShopOrderOrderItemPost($token_value, $order_add_item_to_cart_sylius_shop_cart_add_item, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderApi->syliusApiShopOrderOrderItemPost: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **token_value** | **string**| Order identifier | |
| **order_add_item_to_cart_sylius_shop_cart_add_item** | [**\Sylius\Model\OrderAddItemToCartSyliusShopCartAddItem**](../Model/OrderAddItemToCartSyliusShopCartAddItem.md)| The new Order 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\OrderJsonldSyliusShopCartShow**](../Model/OrderJsonldSyliusShopCartShow.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)

## `syliusApiShopOrderPatchComplete()`

```php
syliusApiShopOrderPatchComplete($token_value, $order_complete_order_sylius_shop_cart_complete_json_merge_patch, $accept_language): \Sylius\Model\OrderJsonldSyliusShopCartShow
```

Updates the Order resource.

Updates the Order 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\OrderApi(
    // 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 | Order identifier
$order_complete_order_sylius_shop_cart_complete_json_merge_patch = new \Sylius\Model\OrderCompleteOrderSyliusShopCartCompleteJsonMergePatch(); // \Sylius\Model\OrderCompleteOrderSyliusShopCartCompleteJsonMergePatch | The updated Order 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->syliusApiShopOrderPatchComplete($token_value, $order_complete_order_sylius_shop_cart_complete_json_merge_patch, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderApi->syliusApiShopOrderPatchComplete: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **token_value** | **string**| Order identifier | |
| **order_complete_order_sylius_shop_cart_complete_json_merge_patch** | [**\Sylius\Model\OrderCompleteOrderSyliusShopCartCompleteJsonMergePatch**](../Model/OrderCompleteOrderSyliusShopCartCompleteJsonMergePatch.md)| The updated Order 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\OrderJsonldSyliusShopCartShow**](../Model/OrderJsonldSyliusShopCartShow.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: `application/merge-patch+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)

## `syliusApiShopOrderPaymentGetConfiguration()`

```php
syliusApiShopOrderPaymentGetConfiguration($token_value, $payment_id, $accept_language): \Sylius\Model\OrderJsonld
```

Retrieves a Order resource.

Retrieves a Order 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\OrderApi(
    // 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 | Order identifier
$payment_id = 'payment_id_example'; // string | Order 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->syliusApiShopOrderPaymentGetConfiguration($token_value, $payment_id, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderApi->syliusApiShopOrderPaymentGetConfiguration: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **token_value** | **string**| Order identifier | |
| **payment_id** | **string**| Order 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\OrderJsonld**](../Model/OrderJsonld.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)

## `syliusApiShopOrderPaymentPatch()`

```php
syliusApiShopOrderPaymentPatch($token_value, $payment_id, $order_choose_payment_method_sylius_shop_cart_select_payment_method_json_merge_patch, $accept_language): \Sylius\Model\OrderJsonldSyliusShopCartShow
```

Updates the Order resource.

Updates the Order 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\OrderApi(
    // 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 | Order identifier
$payment_id = 'payment_id_example'; // string | Order identifier
$order_choose_payment_method_sylius_shop_cart_select_payment_method_json_merge_patch = new \Sylius\Model\OrderChoosePaymentMethodSyliusShopCartSelectPaymentMethodJsonMergePatch(); // \Sylius\Model\OrderChoosePaymentMethodSyliusShopCartSelectPaymentMethodJsonMergePatch | The updated Order 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->syliusApiShopOrderPaymentPatch($token_value, $payment_id, $order_choose_payment_method_sylius_shop_cart_select_payment_method_json_merge_patch, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderApi->syliusApiShopOrderPaymentPatch: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **token_value** | **string**| Order identifier | |
| **payment_id** | **string**| Order identifier | |
| **order_choose_payment_method_sylius_shop_cart_select_payment_method_json_merge_patch** | [**\Sylius\Model\OrderChoosePaymentMethodSyliusShopCartSelectPaymentMethodJsonMergePatch**](../Model/OrderChoosePaymentMethodSyliusShopCartSelectPaymentMethodJsonMergePatch.md)| The updated Order 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\OrderJsonldSyliusShopCartShow**](../Model/OrderJsonldSyliusShopCartShow.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: `application/merge-patch+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)

## `syliusApiShopOrderPaymentPatchAccount()`

```php
syliusApiShopOrderPaymentPatchAccount($token_value, $payment_id, $order_change_payment_method_sylius_shop_order_account_change_payment_method_json_merge_patch, $accept_language): \Sylius\Model\OrderJsonldSyliusShopOrderAccountShow
```

Updates the Order resource.

Updates the Order 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\OrderApi(
    // 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 | Order identifier
$payment_id = 'payment_id_example'; // string | Order identifier
$order_change_payment_method_sylius_shop_order_account_change_payment_method_json_merge_patch = new \Sylius\Model\OrderChangePaymentMethodSyliusShopOrderAccountChangePaymentMethodJsonMergePatch(); // \Sylius\Model\OrderChangePaymentMethodSyliusShopOrderAccountChangePaymentMethodJsonMergePatch | The updated Order 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->syliusApiShopOrderPaymentPatchAccount($token_value, $payment_id, $order_change_payment_method_sylius_shop_order_account_change_payment_method_json_merge_patch, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderApi->syliusApiShopOrderPaymentPatchAccount: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **token_value** | **string**| Order identifier | |
| **payment_id** | **string**| Order identifier | |
| **order_change_payment_method_sylius_shop_order_account_change_payment_method_json_merge_patch** | [**\Sylius\Model\OrderChangePaymentMethodSyliusShopOrderAccountChangePaymentMethodJsonMergePatch**](../Model/OrderChangePaymentMethodSyliusShopOrderAccountChangePaymentMethodJsonMergePatch.md)| The updated Order 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\OrderJsonldSyliusShopOrderAccountShow**](../Model/OrderJsonldSyliusShopOrderAccountShow.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: `application/merge-patch+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)

## `syliusApiShopOrderPost()`

```php
syliusApiShopOrderPost($body, $accept_language): \Sylius\Model\OrderJsonldSyliusShopCartShow
```

Creates a Order resource.

Creates a Order 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\OrderApi(
    // 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
);
$body = array('key' => new \stdClass); // object | The new Order 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->syliusApiShopOrderPost($body, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderApi->syliusApiShopOrderPost: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **body** | **object**| The new Order 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\OrderJsonldSyliusShopCartShow**](../Model/OrderJsonldSyliusShopCartShow.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)

## `syliusApiShopOrderPut()`

```php
syliusApiShopOrderPut($token_value, $order_update_cart_sylius_shop_cart_update, $accept_language): \Sylius\Model\OrderJsonldSyliusShopCartShow
```

Replaces the Order resource.

Replaces the Order 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\OrderApi(
    // 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 | Order identifier
$order_update_cart_sylius_shop_cart_update = new \Sylius\Model\OrderUpdateCartSyliusShopCartUpdate(); // \Sylius\Model\OrderUpdateCartSyliusShopCartUpdate | The updated Order 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->syliusApiShopOrderPut($token_value, $order_update_cart_sylius_shop_cart_update, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderApi->syliusApiShopOrderPut: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **token_value** | **string**| Order identifier | |
| **order_update_cart_sylius_shop_cart_update** | [**\Sylius\Model\OrderUpdateCartSyliusShopCartUpdate**](../Model/OrderUpdateCartSyliusShopCartUpdate.md)| The updated Order 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\OrderJsonldSyliusShopCartShow**](../Model/OrderJsonldSyliusShopCartShow.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)

## `syliusApiShopOrderShipmentPatch()`

```php
syliusApiShopOrderShipmentPatch($token_value, $shipment_id, $order_choose_shipping_method_sylius_shop_cart_select_shipping_method_json_merge_patch, $accept_language): \Sylius\Model\OrderJsonldSyliusShopCartShow
```

Updates the Order resource.

Updates the Order 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\OrderApi(
    // 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 | Order identifier
$shipment_id = 'shipment_id_example'; // string | Order identifier
$order_choose_shipping_method_sylius_shop_cart_select_shipping_method_json_merge_patch = new \Sylius\Model\OrderChooseShippingMethodSyliusShopCartSelectShippingMethodJsonMergePatch(); // \Sylius\Model\OrderChooseShippingMethodSyliusShopCartSelectShippingMethodJsonMergePatch | The updated Order 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->syliusApiShopOrderShipmentPatch($token_value, $shipment_id, $order_choose_shipping_method_sylius_shop_cart_select_shipping_method_json_merge_patch, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderApi->syliusApiShopOrderShipmentPatch: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **token_value** | **string**| Order identifier | |
| **shipment_id** | **string**| Order identifier | |
| **order_choose_shipping_method_sylius_shop_cart_select_shipping_method_json_merge_patch** | [**\Sylius\Model\OrderChooseShippingMethodSyliusShopCartSelectShippingMethodJsonMergePatch**](../Model/OrderChooseShippingMethodSyliusShopCartSelectShippingMethodJsonMergePatch.md)| The updated Order 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\OrderJsonldSyliusShopCartShow**](../Model/OrderJsonldSyliusShopCartShow.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: `application/merge-patch+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)
