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

getOrders

Endpoint for fetching filtered, sorted, and paginated user orders. By default, it uses the getOrdersDefaultQuery GraphQL query

Signature

export declare function getOrders(
	context: SetupContext,
	params: GetOrdersParams,
	customQuery?: CustomQuery,
	responseOptions?: ResponseOptions
): Promise<any>;

Parameters

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
paramsRequiredGetOrdersParamsSearch and pagination options
customQueryOptionalCustomQueryCustom queries included in the request
responseOptionsOptionalResponseOptions

Returns

User orders data

Referenced Types

On this page