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

getShippingMethods

Endpoints for fetching shipping methods available for the given cart. By default, it uses the getShippingMethodsDefaultQuery GraphQL query

Signature

export declare function getShippingMethods(
	context: SetupContext,
	cartId?: string,
	customQuery?: CustomQuery,
	responseOptions?: ResponseOptions
): Promise<any>;

Parameters

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
cartIdOptionalstringUser cart ID
customQueryOptionalCustomQueryCustom queries included in the request
responseOptionsOptionalResponseOptions

Returns

  • Shipping methods data

Referenced Types

On this page