Subscription - First debit made

“Subscription - First debit made”

(TP49735)

Purpose

  • "Send information email to customer when they buy a product"

  • As a system administrator, I should be able to set up BRP so that a subscription user for which a subscription is created and debited (first debit) are sent an email within an hour.

  • Raw HTML should be supported for the template (not edited in BRP, but just pasted) so that basically any content can be sent out

Available parameters for the template

  • Subscription product name - productname

  • Subscription facility - businessunitname

  • Subscription number - subscriptionnumber

  • Customer name (user) - customerfirstname, customerlastname

  • Customer number (user) - customernumber

  • Customer name (payer) -payerfirstname, payerlastname

  • Customer number (payer) - payernumber

  • Paying organization - payerorganization

  • Subscription start date - subscriptionstart

  • Subscription debited until - subscriptiondebiteduntil

  • Subscription bound until - subscriptionbounduntil

  • Subscription price guarantee - subscriptionpriceguarantee

  • Subscription amount (incl VAT) - am

Configuration

“maxMinutes”

Messages will only be send out for first subscription debits made within the last x minutes, if no message was already sent for that subscription.

The purpose is to set a limit, so that email/SMS for old subscriptions are not sent out

Example: maxMinutes=1440 only sends messages for subscriptions that were sold and debited in the last 24 hours.

How often emails/SMS are sent

 

The scheduel task to be used is: “Process automatic follow up”

Set the interval for the follow up point scheduled task so that it matches the interval in this follow up point.

  • How often the scheduled task runs (for example every 30 minutes)

  • The frequency configured on the follow up point (for example every 10 minutes)

    • “Interval between runs”

  • How often information is sent to customers

    • If this example, when the scheduled task runs, the messages are sent out if the last time they were sent out was more than 10 minutes ago, and since the scheduled task only runs once every 30 minutes, the messages cannot be sent out more frequently than that. So, if the frequency is set to 1 or 10 minutes, the result will be the same regardless.

To send out messages more often, run the scheduled task every 5 or 10 minutes.

Template

See for example template.