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

# setDefaultBillingAddress() function

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: Context, params: SetDefaultBillingAddressParams, customQuery?: CustomQuery): Promise<SetDefaultBillingAddressResponse>;

# Parameters

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

Returns:

Promise<SetDefaultBillingAddressResponse>

Customer data