Home > @vsf-enterprise/epcc-api > CustomerEndpoints > getCustomer

# CustomerEndpoints.getCustomer() method

Get a customer by id.

Signature:

getCustomer(context: ElasticPathIntegrationContext, params: GetCustomerParams): Promise<User>;

# Parameters

Parameter Type Description
context ElasticPathIntegrationContext An auto-generated value prepended to the method as a first parameter.
params GetCustomerParams An object which contains necessary properties for retrieving the data of the current customer.

Returns:

Promise<User>