Alokai

deleteShippingAddress

Delete shipping address for the current user.

By default, it uses the deleteShippingAddressDefaultQuery GraphQL query

Signature

declare function deleteShippingAddress(
	context: CommercetoolsIntegrationContext,
	params: DeleteShippingAddressParams,
	customQuery?: CustomQuery
): Promise<DeleteShippingAddressResponse>;

Parameters

NameRequiredTypeDescription
contextRequiredCommercetoolsIntegrationContext
paramsRequiredDeleteShippingAddressParams
customQueryOptionalCustomQuery

Referenced Types

Examples

Deleting a shipping address for the current user

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

On this page