Skip to main content

triggerCustomerSendWelcomeEmailEvent

Trigger a welcome email event for a specific customer.

Key Features

  • **Email Triggering**: Initiates welcome email sending process
  • **Event Processing**: Handles email event asynchronously
  • **Customer Validation**: Ensures customer exists before triggering event
  • **Email Integration**: Integrates with email service for delivery

Business Rules

  • Customer must exist in the system
  • Email event is processed asynchronously
  • Welcome email content is generated based on customer data
  • Event processing may be delayed based on system load

Error Scenarios

  • **CUSTOMER_NOT_FOUND_ERROR**: Customer with the specified ID does not exist
  • **TRIGGER_CUSTOMER_SEND_WELCOME_EMAIL_EVENT_ERROR**: System error occurred while triggering email event
  • **CUSTOMER_FETCH_ERROR**: Error occurred while retrieving customer data

Use Cases

  • Customer onboarding automation
  • Welcome email campaigns
  • Customer communication workflows
  • Marketing automation triggers

AUTH: Role=[user.OWNER,user.EDITOR,user.VIEWER] OR (('user is authenticated') AND ('customerId if present in input matches JWT'))

triggerCustomerSendWelcomeEmailEvent(
input: TriggerCustomerSendWelcomeEmailEventInput!
): Boolean!

Arguments

triggerCustomerSendWelcomeEmailEvent.input ● TriggerCustomerSendWelcomeEmailEventInput! non-null input

Customer welcome email event trigger data

Type

Boolean scalar

The Boolean scalar type represents true or false.