Skip to main content

customerTypeCreate Mutation

Creates a new customer type.

Added in Saleor 3.23.

Requires the MANAGE_CUSTOMER_TYPES_AND_ATTRIBUTESpermission.

Triggers the following webhook events:

  • CUSTOMER_TYPE_CREATED (async): A new customer type was created.
customerTypeCreate(
input: CustomerTypeCreateInput!
): CustomerTypeCreate
Details
type CustomerTypeCreate {
errors: [CustomerTypeCreateError!]!
customerType: CustomerType
}

Arguments​

input ● CustomerTypeCreateInput!​

Fields required to create a customer type.

Type​

CustomerTypeCreate​

Creates a new customer type.

Added in Saleor 3.23.

Requires the MANAGE_CUSTOMER_TYPES_AND_ATTRIBUTESpermission.

Triggers the following webhook events:

  • CUSTOMER_TYPE_CREATED (async): A new customer type was created.