# Flows

EasyCoupon comes with its own flows and actions that usually don't need to be customized.

# neti_easy_coupon.coupon.activate

Sends an email to the buyer after the voucher has been activated (= payment).

  • Triggered by payment status change (subscriber to "state_machine.order_transaction.state_changed").
  • Mail template used: NetiEasyCoupon_ActivateCoupon

# neti_easy_coupon.requested_delivery.send

Feature: Desired delivery

Sends the voucher to the recipient specified by the buyer. The mail will only be sent when the voucher purchase has been paid for and the desired date has been reached (if specified).

Initiated by:

  • Payment status change (subscriber to "state_machine.order_transaction.state_changed")
  • Button in voucher management
  • Scheduled task "neti.easy_coupon.requested_delivery" -Command "neti:easy_coupon:deliver_vouchers"

Mail template used: NetiEasyCoupon_VoucherDelivery

# neti_easy_coupon.successful_delivery.send

Feature: Desired delivery

Notification to the buyer about successful delivery to the desired recipient. Attention: "Successful" only means that all data (and possibly the PDF) are available and the flow "neti_easy_coupon.requested_delivery.send" could be triggered. If the flow has been deleted/deactivated/modified, it is still possible that the mail was not sent to the desired recipient.

Initiated by: see "neti_easy_coupon.requested_delivery.send"

Mail template used: NetiEasyCoupon_VoucherDelivery_Successful

# neti_easy_coupon.unsuccessful_delivery.send_to_host

Feature: Desired delivery

Notification to the shop operator (e-mail address from the basic settings) about a failed delivery attempt to the desired recipient. The e-mail contains a technical error message that can indicate the cause. Possible reasons can be:

  • PDF could not be rendered in advance (if EasyCoupon Designs is used)
  • Removed PDF (if EasyCoupon Designs is used)
  • Requested delivery e-mail could not be sent due to a technical problem
  • Delivery information to the buyer could not be sent due to a technical problem
  • Order with voucher purchase was not found
  • Order with voucher purchase has not yet been paid for
  • ...

Initiated by: see "neti_easy_coupon.requested_delivery.send"

Mail template used: NetiEasyCoupon_VoucherDelivery_Unsuccessful_ToHost

# neti_easy_coupon.unsuccessful_delivery.send_to_customer

Feature: Desired delivery

Notification to the buyer about a failed delivery attempt to the intended recipient. The mail does not contain any error details. Possible reasons can be:

  • PDF not available (if EasyCoupon Designs is used)
  • Requested delivery e-mail could not be sent due to a technical problem
  • ...

Initiated by: see "neti_easy_coupon.requested_delivery.send"

Mail template used: NetiEasyCoupon_VoucherDelivery_Unsuccessful_ToCustomer

# neti_easy_coupon_designs.voucher_pdf.send

Feature: EasyCouponDesigns

Sends the voucher PDF to the buyer once the voucher purchase has been paid and the PDF has been rendered successfully.

Initiated by:

  • Scheduled task "neti.easy_coupon_designs.mail"
  • Command "neti:easy_coupon_designs:task:mail"

Mail template used: NetiEasyCouponDesigns_SendVoucherPdf