Alokai
You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current

getInventory

Endpoint for checking inventory for given product SKUs. By default, it uses the getInventoryDefaultQuery GraphQL query

Signature

export declare function getInventory(
	context: SetupContext,
	params?: GetInventoryParams,
	customQuery?: CustomQuery,
	responseOptions?: ResponseOptions
): Promise<GetInventoryResponse>;

Parameters

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
paramsOptionalGetInventoryParamsInventory search parameters
customQueryOptionalCustomQueryCustom queries included in the request
responseOptionsOptionalResponseOptions

Returns

Inventory data

Referenced Types

On this page