CartThrob 10 documentation for ExpressionEngine commerce teams Visit CartThrob.com
CartThrob.com

Notifications

When CartThrob Subscriptions is installed, it adds Subscription events to CartThrob’s notifications. Map an ExpressionEngine template to an event to send an email when that event occurs. See Notifications in the CartThrob Control Panel reference for how to create and map notifications.

Registered Notification Events

Event Sent when
rebill_success The rebill command successfully charges a renewal.
rebill_failure The gateway declines a renewal and the Subscription is placed on Hold to be retried.
rebill_final_failure A declined renewal reaches Maximum Rebill Attempts and the Subscription is closed.
rebill_hold The rebill command places a Subscription on Hold without a more specific notification reason. Expiry and exhaustion use their own events; a declined payment sends rebill_failure instead.
subscription_exhausted The final payment allowed by Total Occurrences has been collected, or the rebill command finds a Subscription that cannot renew and has already reached its retry limit.
subscription_expired The rebill command finds an elapsed End Date with a saved card still attached and places the Subscription on Hold.
subscription_cancel A customer or administrator cancels a Subscription that keeps access through a paid period, or cancels a free trial.
subscription_update_success A customer replaces the saved card for a Subscription with update_subscription_form. Editing a Subscription’s name or description does not send it.
manual_bill An administrator charges a Subscription with Charge Next Billing Now, or charges a member with Subscribers > One-Time Charge, in the Control Panel.
token_missing Registered for compatibility. Subscriptions’ own rebilling doesn’t send it; removing a renewal card (for example on cancellation) is normal and doesn’t trigger it.

The rebill command sends at most one event per Subscription in each run. A renewal that cannot be calculated or prepared is placed on Hold without sending a notification. Watch the Subscriptions list (Payments > Overdue and Status: Hold) and the logs for those cases.

subscription_cancel is sent when a free trial, a paid trial, or a paid term without a refund is cancelled, including a refund request when nothing is refundable. It is not sent for a cancellation with a refund, or for cancelling a Subscription that is behind on payments, with or without a balance charge.

Who receives a notification

Each notice above is only sent if you have mapped a template to that event. These are Subscription lifecycle emails, not the ordinary checkout receipt a shopper gets when they first place an order — map a separate template for each event you want to send.

Subscription lifecycle notices are addressed to the member’s current email address at the time the event is processed. Renewal, cancellation and card-update notices therefore follow the member’s present contact details rather than reusing the address saved on the original order. Map the recipient with the {customer_email} variable in the notification’s To field.

If the member’s current email cannot be read — the member record is missing, or its email is blank — the notice falls back to the email saved on the Subscription’s most recent paid order so the message is still delivered, and a warning is written to the logs. The warning records that a fallback recipient was used and why (a missing member, or a blank member email), with the Subscription, member and order IDs; it does not contain the email address and does not mark the notification as failed. Treat it as a prompt to check that member’s profile, not as a delivery error.

If neither a current member email nor a saved order email is available, no notification is sent: the email is refused and logged rather than delivered to an empty address. An explicitly configured administrator recipient still sends even when the member’s details are blank.

The Reply-To address and name are optional. When left blank, replies fall back to the notification’s From address. A notification whose required To field resolves to an empty value at send time is refused and logged, the same as above.

Change the email used for renewal notices

Because lifecycle notices use the member’s current email, update the address in ExpressionEngine’s native member email settings (Members > the member > Email, or the member’s own account page):

  1. Edit the member’s email address and save it.
  2. The next renewal, cancellation or card-update notice for that member’s Subscriptions uses the new address.

Editing the address saved on an older order does not change who receives future notices, and changing the member email does not rewrite past orders or resend their receipts. These are separate records: a member’s current contact address drives new notices, while historical order receipts keep the address they were sent to.

Note that an ordinary checkout uses the email submitted on the checkout form for that order. If Save Member Data (or a mapped member-email field) is enabled, that checkout can also update the member’s stored email, which then becomes the address used for later Subscription notices. Checkout does not always leave the member email unchanged — review your checkout’s member-data settings if you need the two to stay distinct.

Notification Variables

Notification templates can use all variables provided by the subscriptions tag for the affected Subscription.