Skip to main content

customerTypeDelete Mutation

Deletes a customer type. Users of the deleted customer type are reassigned to the default customer type.

Added in Saleor 3.23.

Requires the MANAGE_CUSTOMER_TYPES_AND_ATTRIBUTESpermission.

Triggers the following webhook events:

  • CUSTOMER_TYPE_DELETED (async): A customer type was deleted.
customerTypeDelete(
id: ID!
): CustomerTypeDelete
Details
type CustomerTypeDelete {
errors: [CustomerTypeDeleteError!]!
customerType: CustomerType
}

Arguments

id ● ID!

ID of the customer type to delete.

Type

CustomerTypeDelete

Deletes a customer type. Users of the deleted customer type are reassigned to the default customer type.

Added in Saleor 3.23.

Requires the MANAGE_CUSTOMER_TYPES_AND_ATTRIBUTESpermission.

Triggers the following webhook events:

  • CUSTOMER_TYPE_DELETED (async): A customer type was deleted.