# Sylius\CustomerApi

Resource &#39;Customer&#39; operations.

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

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**postCustomerCredentialsItem()**](CustomerApi.md#postCustomerCredentialsItem) | **POST** /api/v2/shop/customers/token | Retrieves the JWT token. |
| [**syliusApiAdminCustomerDelete()**](CustomerApi.md#syliusApiAdminCustomerDelete) | **DELETE** /api/v2/admin/customers/{id}/user | Removes the Customer resource. |
| [**syliusApiAdminCustomerGet()**](CustomerApi.md#syliusApiAdminCustomerGet) | **GET** /api/v2/admin/customers/{id} | Retrieves a Customer resource. |
| [**syliusApiAdminCustomerGetCollection()**](CustomerApi.md#syliusApiAdminCustomerGetCollection) | **GET** /api/v2/admin/customers | Retrieves the collection of Customer resources. |
| [**syliusApiAdminCustomerGetStatistics()**](CustomerApi.md#syliusApiAdminCustomerGetStatistics) | **GET** /api/v2/admin/customers/{id}/statistics | Retrieves a Customer resource. |
| [**syliusApiAdminCustomerPost()**](CustomerApi.md#syliusApiAdminCustomerPost) | **POST** /api/v2/admin/customers | Creates a Customer resource. |
| [**syliusApiAdminCustomerPut()**](CustomerApi.md#syliusApiAdminCustomerPut) | **PUT** /api/v2/admin/customers/{id} | Replaces the Customer resource. |
| [**syliusApiShopCustomerGet()**](CustomerApi.md#syliusApiShopCustomerGet) | **GET** /api/v2/shop/customers/{id} | Retrieves a Customer resource. |
| [**syliusApiShopCustomerPatchResetPassword()**](CustomerApi.md#syliusApiShopCustomerPatchResetPassword) | **PATCH** /api/v2/shop/customers/reset-password/{token} | Updates the Customer resource. |
| [**syliusApiShopCustomerPatchVerify()**](CustomerApi.md#syliusApiShopCustomerPatchVerify) | **PATCH** /api/v2/shop/customers/verify/{token} | Updates the Customer resource. |
| [**syliusApiShopCustomerPost()**](CustomerApi.md#syliusApiShopCustomerPost) | **POST** /api/v2/shop/customers | Creates a Customer resource. |
| [**syliusApiShopCustomerPostResetPassword()**](CustomerApi.md#syliusApiShopCustomerPostResetPassword) | **POST** /api/v2/shop/customers/reset-password | Creates a Customer resource. |
| [**syliusApiShopCustomerPostVerify()**](CustomerApi.md#syliusApiShopCustomerPostVerify) | **POST** /api/v2/shop/customers/verify | Creates a Customer resource. |
| [**syliusApiShopCustomerPut()**](CustomerApi.md#syliusApiShopCustomerPut) | **PUT** /api/v2/shop/customers/{id} | Replaces the Customer resource. |
| [**syliusApiShopCustomerPutPassword()**](CustomerApi.md#syliusApiShopCustomerPutPassword) | **PUT** /api/v2/shop/customers/{id}/password | Replaces the Customer resource. |


## `postCustomerCredentialsItem()`

```php
postCustomerCredentialsItem($customer_shop_customer_token_create): \Sylius\Model\CustomerShopCustomerTokenRead
```

Retrieves the JWT token.

### 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\CustomerApi(
    // 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
);
$customer_shop_customer_token_create = new \Sylius\Model\CustomerShopCustomerTokenCreate(); // \Sylius\Model\CustomerShopCustomerTokenCreate | Retrieves the JWT token.

try {
    $result = $apiInstance->postCustomerCredentialsItem($customer_shop_customer_token_create);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->postCustomerCredentialsItem: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **customer_shop_customer_token_create** | [**\Sylius\Model\CustomerShopCustomerTokenCreate**](../Model/CustomerShopCustomerTokenCreate.md)| Retrieves the JWT token. | [optional] |

### Return type

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

### Authorization

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

### HTTP request headers

- **Content-Type**: `application/json`
- **Accept**: `application/json`

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

## `syliusApiAdminCustomerDelete()`

```php
syliusApiAdminCustomerDelete($id, $accept_language)
```

Removes the Customer resource.

Removes the Customer 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\CustomerApi(
    // 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
);
$id = 'id_example'; // string | Customer 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->syliusApiAdminCustomerDelete($id, $accept_language);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->syliusApiAdminCustomerDelete: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **id** | **string**| Customer 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)

## `syliusApiAdminCustomerGet()`

```php
syliusApiAdminCustomerGet($id, $accept_language): \Sylius\Model\CustomerJsonldSyliusAdminCustomerShow
```

Retrieves a Customer resource.

Retrieves a Customer 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\CustomerApi(
    // 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
);
$id = 'id_example'; // string | Customer 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->syliusApiAdminCustomerGet($id, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->syliusApiAdminCustomerGet: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

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

## `syliusApiAdminCustomerGetCollection()`

```php
syliusApiAdminCustomerGetCollection($page, $items_per_page, $email, $first_name, $last_name, $group_name, $group_name2, $order_created_at, $order_email, $order_first_name, $order_last_name, $accept_language): \Sylius\Model\SyliusApiAdminCustomerGetCollection200Response
```

Retrieves the collection of Customer resources.

Retrieves the collection of Customer 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\CustomerApi(
    // 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
$email = 'email_example'; // string | 
$first_name = 'first_name_example'; // string | 
$last_name = 'last_name_example'; // string | 
$group_name = 'group_name_example'; // string | 
$group_name2 = array('group_name_example'); // string[] | 
$order_created_at = ''; // string | 
$order_email = ''; // string | 
$order_first_name = ''; // string | 
$order_last_name = ''; // 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->syliusApiAdminCustomerGetCollection($page, $items_per_page, $email, $first_name, $last_name, $group_name, $group_name2, $order_created_at, $order_email, $order_first_name, $order_last_name, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->syliusApiAdminCustomerGetCollection: ', $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] |
| **email** | **string**|  | [optional] |
| **first_name** | **string**|  | [optional] |
| **last_name** | **string**|  | [optional] |
| **group_name** | **string**|  | [optional] |
| **group_name2** | [**string[]**](../Model/string.md)|  | [optional] |
| **order_created_at** | **string**|  | [optional] [default to &#39;&#39;] |
| **order_email** | **string**|  | [optional] [default to &#39;&#39;] |
| **order_first_name** | **string**|  | [optional] [default to &#39;&#39;] |
| **order_last_name** | **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\SyliusApiAdminCustomerGetCollection200Response**](../Model/SyliusApiAdminCustomerGetCollection200Response.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)

## `syliusApiAdminCustomerGetStatistics()`

```php
syliusApiAdminCustomerGetStatistics($id, $accept_language): \Sylius\Model\CustomerJsonldSyliusAdminCustomerStatisticsShow
```

Retrieves a Customer resource.

Retrieves a Customer 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\CustomerApi(
    // 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
);
$id = 'id_example'; // string | Customer 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->syliusApiAdminCustomerGetStatistics($id, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->syliusApiAdminCustomerGetStatistics: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

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

## `syliusApiAdminCustomerPost()`

```php
syliusApiAdminCustomerPost($customer_sylius_admin_customer_create, $accept_language): \Sylius\Model\CustomerJsonldSyliusAdminCustomerShow
```

Creates a Customer resource.

Creates a Customer 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\CustomerApi(
    // 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
);
$customer_sylius_admin_customer_create = new \Sylius\Model\CustomerSyliusAdminCustomerCreate(); // \Sylius\Model\CustomerSyliusAdminCustomerCreate | The new Customer 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->syliusApiAdminCustomerPost($customer_sylius_admin_customer_create, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->syliusApiAdminCustomerPost: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **customer_sylius_admin_customer_create** | [**\Sylius\Model\CustomerSyliusAdminCustomerCreate**](../Model/CustomerSyliusAdminCustomerCreate.md)| The new Customer 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\CustomerJsonldSyliusAdminCustomerShow**](../Model/CustomerJsonldSyliusAdminCustomerShow.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)

## `syliusApiAdminCustomerPut()`

```php
syliusApiAdminCustomerPut($id, $customer_sylius_admin_customer_update, $accept_language): \Sylius\Model\CustomerJsonldSyliusAdminCustomerShow
```

Replaces the Customer resource.

Replaces the Customer 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\CustomerApi(
    // 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
);
$id = 'id_example'; // string | Customer identifier
$customer_sylius_admin_customer_update = new \Sylius\Model\CustomerSyliusAdminCustomerUpdate(); // \Sylius\Model\CustomerSyliusAdminCustomerUpdate | The updated Customer 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->syliusApiAdminCustomerPut($id, $customer_sylius_admin_customer_update, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->syliusApiAdminCustomerPut: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **id** | **string**| Customer identifier | |
| **customer_sylius_admin_customer_update** | [**\Sylius\Model\CustomerSyliusAdminCustomerUpdate**](../Model/CustomerSyliusAdminCustomerUpdate.md)| The updated Customer 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\CustomerJsonldSyliusAdminCustomerShow**](../Model/CustomerJsonldSyliusAdminCustomerShow.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)

## `syliusApiShopCustomerGet()`

```php
syliusApiShopCustomerGet($id, $accept_language): \Sylius\Model\CustomerJsonldSyliusShopCustomerShow
```

Retrieves a Customer resource.

Retrieves a Customer 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\CustomerApi(
    // 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
);
$id = 'id_example'; // string | Customer 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->syliusApiShopCustomerGet($id, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->syliusApiShopCustomerGet: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

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

## `syliusApiShopCustomerPatchResetPassword()`

```php
syliusApiShopCustomerPatchResetPassword($token, $customer_sylius_shop_reset_password_update_json_merge_patch, $accept_language)
```

Updates the Customer resource.

Updates the Customer 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\CustomerApi(
    // 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 = 'token_example'; // string | Customer identifier
$customer_sylius_shop_reset_password_update_json_merge_patch = new \Sylius\Model\CustomerSyliusShopResetPasswordUpdateJsonMergePatch(); // \Sylius\Model\CustomerSyliusShopResetPasswordUpdateJsonMergePatch | The updated Customer 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->syliusApiShopCustomerPatchResetPassword($token, $customer_sylius_shop_reset_password_update_json_merge_patch, $accept_language);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->syliusApiShopCustomerPatchResetPassword: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **token** | **string**| Customer identifier | |
| **customer_sylius_shop_reset_password_update_json_merge_patch** | [**\Sylius\Model\CustomerSyliusShopResetPasswordUpdateJsonMergePatch**](../Model/CustomerSyliusShopResetPasswordUpdateJsonMergePatch.md)| The updated Customer 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/merge-patch+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)

## `syliusApiShopCustomerPatchVerify()`

```php
syliusApiShopCustomerPatchVerify($token, $body, $accept_language)
```

Updates the Customer resource.

Updates the Customer 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\CustomerApi(
    // 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 = 'token_example'; // string | Customer identifier
$body = array('key' => new \stdClass); // object | The updated Customer 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->syliusApiShopCustomerPatchVerify($token, $body, $accept_language);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->syliusApiShopCustomerPatchVerify: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **token** | **string**| Customer identifier | |
| **body** | **object**| The updated Customer 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/merge-patch+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)

## `syliusApiShopCustomerPost()`

```php
syliusApiShopCustomerPost($customer_register_shop_user_sylius_shop_customer_create, $accept_language)
```

Creates a Customer resource.

Creates a Customer 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\CustomerApi(
    // 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
);
$customer_register_shop_user_sylius_shop_customer_create = new \Sylius\Model\CustomerRegisterShopUserSyliusShopCustomerCreate(); // \Sylius\Model\CustomerRegisterShopUserSyliusShopCustomerCreate | The new Customer 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->syliusApiShopCustomerPost($customer_register_shop_user_sylius_shop_customer_create, $accept_language);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->syliusApiShopCustomerPost: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **customer_register_shop_user_sylius_shop_customer_create** | [**\Sylius\Model\CustomerRegisterShopUserSyliusShopCustomerCreate**](../Model/CustomerRegisterShopUserSyliusShopCustomerCreate.md)| The new Customer 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)

## `syliusApiShopCustomerPostResetPassword()`

```php
syliusApiShopCustomerPostResetPassword($customer_request_reset_password_token_sylius_shop_reset_password_create, $accept_language)
```

Creates a Customer resource.

Creates a Customer 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\CustomerApi(
    // 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
);
$customer_request_reset_password_token_sylius_shop_reset_password_create = new \Sylius\Model\CustomerRequestResetPasswordTokenSyliusShopResetPasswordCreate(); // \Sylius\Model\CustomerRequestResetPasswordTokenSyliusShopResetPasswordCreate | The new Customer 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->syliusApiShopCustomerPostResetPassword($customer_request_reset_password_token_sylius_shop_reset_password_create, $accept_language);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->syliusApiShopCustomerPostResetPassword: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **customer_request_reset_password_token_sylius_shop_reset_password_create** | [**\Sylius\Model\CustomerRequestResetPasswordTokenSyliusShopResetPasswordCreate**](../Model/CustomerRequestResetPasswordTokenSyliusShopResetPasswordCreate.md)| The new Customer 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)

## `syliusApiShopCustomerPostVerify()`

```php
syliusApiShopCustomerPostVerify($body, $accept_language)
```

Creates a Customer resource.

Creates a Customer 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\CustomerApi(
    // 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 Customer 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->syliusApiShopCustomerPostVerify($body, $accept_language);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->syliusApiShopCustomerPostVerify: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **body** | **object**| The new Customer 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)

## `syliusApiShopCustomerPut()`

```php
syliusApiShopCustomerPut($id, $customer_sylius_shop_customer_update, $accept_language): \Sylius\Model\CustomerJsonldSyliusShopCustomerShow
```

Replaces the Customer resource.

Replaces the Customer 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\CustomerApi(
    // 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
);
$id = 'id_example'; // string | Customer identifier
$customer_sylius_shop_customer_update = new \Sylius\Model\CustomerSyliusShopCustomerUpdate(); // \Sylius\Model\CustomerSyliusShopCustomerUpdate | The updated Customer 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->syliusApiShopCustomerPut($id, $customer_sylius_shop_customer_update, $accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->syliusApiShopCustomerPut: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **id** | **string**| Customer identifier | |
| **customer_sylius_shop_customer_update** | [**\Sylius\Model\CustomerSyliusShopCustomerUpdate**](../Model/CustomerSyliusShopCustomerUpdate.md)| The updated Customer 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\CustomerJsonldSyliusShopCustomerShow**](../Model/CustomerJsonldSyliusShopCustomerShow.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)

## `syliusApiShopCustomerPutPassword()`

```php
syliusApiShopCustomerPutPassword($id, $customer_change_shop_user_password_sylius_shop_customer_password_update, $accept_language)
```

Replaces the Customer resource.

Replaces the Customer 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\CustomerApi(
    // 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
);
$id = 'id_example'; // string | Customer identifier
$customer_change_shop_user_password_sylius_shop_customer_password_update = new \Sylius\Model\CustomerChangeShopUserPasswordSyliusShopCustomerPasswordUpdate(); // \Sylius\Model\CustomerChangeShopUserPasswordSyliusShopCustomerPasswordUpdate | The updated Customer 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->syliusApiShopCustomerPutPassword($id, $customer_change_shop_user_password_sylius_shop_customer_password_update, $accept_language);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->syliusApiShopCustomerPutPassword: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **id** | **string**| Customer identifier | |
| **customer_change_shop_user_password_sylius_shop_customer_password_update** | [**\Sylius\Model\CustomerChangeShopUserPasswordSyliusShopCustomerPasswordUpdate**](../Model/CustomerChangeShopUserPasswordSyliusShopCustomerPasswordUpdate.md)| The updated Customer 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)
