Using Revenue Recovery¶
What happens automatically¶
Scans¶
While the extension is enabled, it checks on every request Paymenter handles whether a scan is due. This includes Paymenter's scheduled tasks, so scans also run when nobody visits the site, as long as your Paymenter cron job is set up. A scan runs at most once per Scan interval (minutes), and only one scan runs at a time.
Each scan does two things:
- It updates existing pending records: if the invoice has been paid, the record becomes
recovered; if the invoice has been cancelled, the record becomescancelled. - It looks for invoices that have status
pending, a due date at least Days after invoice due date days ago, and no recovery record yet.
Invoices with a total of zero or less, and invoices whose customer has no e-mail address, are skipped.
For each invoice found¶
- A coupon is created in Paymenter with a code of the form
RECOVER-<invoice number>-<6 random characters>. It is a percentage coupon with the configured Discount percentage, applies to the price, covers the first billing cycle only, can be used once, and expires after Discount validity (days). If the invoice contains services, the coupon is limited to the products of those services. If it contains none, the coupon has no product restriction. - A recovery record with status
pendingis stored. It holds the invoice total at that moment and the discount amount calculated from it. - The reminder e-mail is sent to the customer's e-mail address.
Each invoice gets one record and one reminder. There are no follow-up reminders.
Reminders are sent directly during the scan and do not use Paymenter's notification templates.
When an invoice is paid or cancelled¶
- When Paymenter marks an invoice as paid, a pending record for it becomes
recoveredimmediately. The recovered amount is the invoice total at that time. This happens whether or not the customer used the reactivation link. - When an invoice is cancelled, its record becomes
cancelledat the next scan, or when the customer opens the reactivation link. - When an invoice is deleted, its record is deleted with it.
What the customer sees¶
The customer receives one e-mail with the subject and body from your settings. With the default template it shows the invoice number, the discount, the coupon code, a Reactivate Invoice button and the expiry date.
When the customer opens the reactivation link:
- If the invoice is still pending, the discount is applied to the invoice: line item prices are lowered, one item after another, until the discount amount is used up. The customer is then sent to the invoice page to pay the reduced amount.
- If the invoice is already paid, nothing changes and the customer is sent to the invoice page.
- If the invoice is cancelled, nothing is discounted and the customer is sent to their invoice list.
- If the discount cannot be applied, the invoice is left unchanged and the customer is sent to the invoice page.
The link itself works without a login. The invoice page it leads to requires the customer to be logged in.
The discount is applied once per invoice. Opening the link again does not reduce the invoice further.
The discount amount is the configured percentage of the sum of the invoice's line items at the time the record was created.
Note
The coupon code in the e-mail is a regular Paymenter coupon. It is separate from the reactivation link: the link discounts the overdue invoice, the code can be entered in the cart for a new order. If you only want to offer the invoice discount, remove the coupon code from the e-mail body.
After the validity period the link is rejected and the coupon has expired.
The admin page¶
Open Revenue Recovery in the Sales group of the admin navigation.
Statistics¶
| Figure | Meaning |
|---|---|
| Lost Revenue | Sum of the original totals of all records that are not recovered (pending and cancelled) |
| Recovered Revenue | Sum of the recovered amounts of all recovered records |
| Recovery Rate | Recovered records as a percentage of all records, with the counts below it |
The figures refresh every 60 seconds. Amounts are added up as plain numbers without currency conversion, so they are only meaningful as totals if all your invoices use one currency.
Record list¶
| Column | Content |
|---|---|
| Invoice | Invoice number, or # and the invoice ID if there is no number |
| Customer | The customer's e-mail address |
| Discount Code | The coupon code created for the invoice |
| Status | pending, recovered or cancelled |
| Original Total | Invoice total when the record was created |
| Discount | The discount amount. Once the customer has used the link, this is the amount actually taken off the invoice. |
| Recovered | Invoice total at the time of payment |
| Reminder Sent | When the reminder e-mail was sent. Empty if it was not sent. |
| Recovered At | When the record was marked as recovered |
| Created | When the record was created. Hidden by default; switch it on in the column selector. |
You can search by invoice number, customer e-mail and discount code, filter by status, and sort by the amount and date columns. The newest records are listed first. Clicking a row opens the invoice in Paymenter's invoice editor.
Records cannot be created, edited or deleted on this page.
Run a scan by hand¶
Click Run Recovery Scan at the top of the page. The scan runs immediately, regardless of the scan interval, and the message Recovery scan completed appears when it is done. If another scan is running at that moment, the manual scan does nothing but the message still appears.