docs/CustomerApi.md in ultracart_api-3.1.0 vs docs/CustomerApi.md in ultracart_api-3.1.1

- old
+ new

@@ -4,10 +4,11 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**delete_customer**](CustomerApi.md#delete_customer) | **DELETE** /customer/customers/{customer_profile_oid} | Delete a customer [**get_customer**](CustomerApi.md#get_customer) | **GET** /customer/customers/{customer_profile_oid} | Retrieve a customer +[**get_customer_by_email**](CustomerApi.md#get_customer_by_email) | **GET** /customer/customers/by_email/{email} | Retrieve a customer by Email [**get_customers**](CustomerApi.md#get_customers) | **GET** /customer/customers | Retrieve customers [**get_customers_by_query**](CustomerApi.md#get_customers_by_query) | **POST** /customer/customers/query | Retrieve customers by query [**get_customers_for_data_tables**](CustomerApi.md#get_customers_for_data_tables) | **POST** /customer/customers/dataTables | Retrieve customers for DataTables plugin [**get_editor_values**](CustomerApi.md#get_editor_values) | **GET** /customer/editor_values | Retrieve values needed for a customer profile editor [**get_email_lists**](CustomerApi.md#get_email_lists) | **GET** /customer/email_lists | Retrieve all email lists across all storefronts @@ -101,9 +102,63 @@ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_profile_oid** | **Integer**| The customer oid to retrieve. | + **_expand** | **String**| The object expansion to perform on the result. See documentation for examples | [optional] + +### Return type + +[**CustomerResponse**](CustomerResponse.md) + +### Authorization + +[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **get_customer_by_email** +> CustomerResponse get_customer_by_email(email, opts) + +Retrieve a customer by Email + +Retrieves a single customer using the specified customer email address. + +### Example +```ruby +# load the gem +require 'ultracart_api' + +# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key +simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00' +api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false) + + +email = 'email_example' # String | The email address of the customer to retrieve. + +opts = { + _expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples +} + +begin + #Retrieve a customer by Email + result = api_instance.get_customer_by_email(email, opts) + p result +rescue UltracartClient::ApiError => e + puts "Exception when calling CustomerApi->get_customer_by_email: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **email** | **String**| The email address of the customer to retrieve. | **_expand** | **String**| The object expansion to perform on the result. See documentation for examples | [optional] ### Return type [**CustomerResponse**](CustomerResponse.md)