The Vue Storefront Essentials Course is now available! Learn More
DeleteCustomerAddress

DeleteCustomerAddress

Implements DeleteCustomerAddress Unified Method.

Source

import { assertAuthorized, defineApi } from "@vsf-enterprise/unified-api-sapcc";

export const deleteCustomerAddress = defineApi.deleteCustomerAddress(async (context, args) => {
  assertAuthorized(context);
  const { id } = args;

  await context.api.deleteAddress({ addressId: id });
});