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
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | SetupContext | Automatically injected context. Refer to SetupContext |
params | Required | SetDefaultBillingAddressParams | User and address information |
customQuery | Optional | CustomQuery | Custom queries included in the request |
responseOptions | Optional | ResponseOptions |
Returns
Customer data