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

setDefaultBillingAddress

Endpoint for setting default billing address of the currently logged user based on provided ID. By default, it uses the setDefaultBillingAddressDefaultQuery GraphQL query

Signature

export declare function setDefaultBillingAddress(
	context: SetupContext,
	params: SetDefaultBillingAddressParams,
	customQuery?: CustomQuery,
	responseOptions?: ResponseOptions
): Promise<SetDefaultBillingAddressResponse>;

Parameters

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
paramsRequiredSetDefaultBillingAddressParamsUser and address information
customQueryOptionalCustomQueryCustom queries included in the request
responseOptionsOptionalResponseOptions

Returns

Customer data

Referenced Types

On this page