Home > @vsf-enterprise/commercetools-api > setDefaultShippingAddress

# setDefaultShippingAddress() function

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

Signature:

export declare function setDefaultShippingAddress(context: Context, params: SetDefaultShippingAddressParams, customQuery?: CustomQuery): Promise<SetDefaultShippingAddressResponse>;

# Parameters

Parameter Type Description
context Context Automatically injected context. Refer to Context
params SetDefaultShippingAddressParams User and address information
customQuery CustomQuery Custom queries included in the request

Returns:

Promise<SetDefaultShippingAddressResponse>

Customer data