Alokai
You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x

autoComplete

Retrieve autocomplete information on customers based on the customer query

This method exchanges data with the autoComplete endpoint exposed by the SAP OCC API Customer Controller.

Signature

export declare function autoComplete(
	context: SapccIntegrationContext,
	props: AutoCompleteProps
): Promise<CustomerSuggestion[]>;

Parameters

NameRequiredTypeDescription
contextRequiredSapccIntegrationContext
propsRequiredAutoCompletePropsParameter object which can be used with this method. Refer to its type definition to learn about possible properties.

Returns

Returns array of customer suggestions

Referenced Types

Examples

Requesting autocomplete information on customers based on the customer query

import { sdk } from '~/sdk';

const result = await sdk.commerce.autoComplete({ customerQuery: 'john'});

On this page