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

getPageableCustomers

Method that gets paginated list of customers for Assisted Service Module

This method sends a POST request to the getPageableCustomers endpoint of the Alokai Middleware. In turn, it exchanges data with the getPageableCustomers endpoint exposed by the SAP OCC API Customers Controller.

Signature

export declare function getPageableCustomers<Res extends CustomerSearchPage = CustomerSearchPage>(
	props?: GetPageableCustomersProps,
	options?: MethodOptions
): Promise<Res>;

Parameters

NameRequiredTypeDescription
propsOptionalGetPageableCustomersPropsParameter object which can be used with this method. Refer to its type definition to learn about possible properties.
optionsOptionalMethodOptionsOptions that can be passed to additionally configure the request or customize the logic in a plugin.

Returns

Returns page of customers

Referenced Types

Examples

Requesting a customer page

const getPageableCustomers = await sdk.commerce.getPageableCustomers({
  currentPage: 1,
  customerListId: "asmInstoreCustomerList",
  pageSize: 5,
});

On this page