Alokai

deleteBillingAddress

Delete billing address for the current user.

By default, it uses the deleteBillingAddressDefaultQuery GraphQL query

Signature

declare function deleteBillingAddress(
	context: CommercetoolsIntegrationContext,
	params: DeleteBillingAddressParams,
	customQuery?: CustomQuery
): Promise<DeleteBillingAddressResponse>;

Parameters

NameRequiredTypeDescription
contextRequiredCommercetoolsIntegrationContext
paramsRequiredDeleteBillingAddressParams
customQueryOptionalCustomQuery

Referenced Types

Examples

Deleting a billing address for the current user

const { user } = await sdk.commerce.deleteBillingAddress({
  address: { id: "1" },
  user: { version: "1" },
});

On this page