Skip to main content

customerDeleteAccount

Remove login credentials from an existing customer while preserving their profile data.

Key Features

  • Account Removal: Removes login credentials from customer
  • Profile Preservation: Customer profile data remains intact
  • Access Revocation: Customer can no longer log in to the system
  • Clean Deactivation: Gracefully handles account deactivation

Business Rules

  • Customer must exist and have login credentials
  • Customer profile data is preserved
  • Login access is immediately revoked
  • Customer can be reactivated by creating new account

Error Scenarios

  • CUSTOMER_NOT_FOUND_ERROR: Customer with the specified ID does not exist
  • CUSTOMER_DELETE_ACCOUNT_ERROR: System error occurred during account deletion
  • CUSTOMER_FETCH_ERROR: Error occurred while retrieving customer data

Use Cases

  • Customer account deactivation
  • Temporary access suspension
  • Account security management
  • Customer service operations

Note: Customer profile data remains intact and can be reactivated later.

AUTH: Role=[user.OWNER]

customerDeleteAccount(
id: Int!
): Boolean!

Arguments

customerDeleteAccount.id ● Int! non-null scalar

Unique internal identifier for the customer used for system operations and data relationships

Type

Boolean scalar

The Boolean scalar type represents true or false.