The administrator receives error emails when an invoice isn't created
Symptom
The WordPress site’s administrator email address (admin_email) automatically receives an email
when something goes wrong generating or transmitting an invoice, without anyone having explicitly
requested it.
Cause
This isn’t an optional add-on you enable: it’s a behavior built into the POP plugin, always
active, designed to flag problems immediately without having to check the logs manually. The emails
are sent to the site’s admin address (get_bloginfo('admin_email')) in these cases:
- Account setup not completed — if the wizard hasn’t been completed (the link to the POP account is missing) and the site still tries to generate a document, a “Complete Your Account Setup” email arrives with the steps to complete the configuration.
- POP API error — any error response from the generation/send-document calls generates an email with the subject and technical context of the error.
- Overquota — if the account has run out of available credits, a dedicated “POP API overquota block” email arrives.
- Rejection by SDI — if a rejection notification (type
NS) arrives for an invoice sent to the SDI, an email arrives with the subject “POP - SDI Reject Notification” and the order details.
Fix
There’s nothing to “enable”: these notifications are automatic. If you receive them, act on the cause stated in the body of the email:
- Account setup not completed → go to
POP → Electronic Invoice - Settings, tab General, and complete/link the account (or restart the wizard). - Generic API error or overquota → check the technical message included in the email: it states the status code and the context of the failed call; check the account’s plan and remaining credits.
- SDI rejection → open the invoice indicated and check the rejection details before correcting and resending.
If you don’t want to receive these emails at that address, the only lever is to change the
WordPress site’s admin_email (a general WordPress setting, not a POP option): there is no dedicated
toggle in POP to disable them individually.
Related configuration
For the checklist to follow when an SDI invoice is rejected see sdi-invoice-rejected.