Auto-Approve: caps, brake and hand-over
The short answer
Auto-Approve has three limits of its own. The daily cap limits how many requests it approves in a day. The error brake pauses it after repeated failures. A request it approved but cannot finish goes to your team, with an email. Dry-run mode lets you watch the decisions before any of this matters.
How it works
Daily cap, error brake and hand-over
The cap and the brake work per store view and are set in Stores → Configuration → MageMe Extensions → EU Withdrawal, group Auto-Approval. A stop in one store view does not stop the others.
The daily cap
- Daily Auto-Action Cap is the most requests Auto-Approve approves in a store view per day, with or without a credit memo. The default is 50, and 0 means no limit.
- The day starts at 00:00 UTC, not at midnight in your store's time zone.
- Over the cap, a request that a rule would approve goes to your team instead. It stays Pending, and in Auto-Approval History its Action taken is Routed to manual. It is not tried again the next day, and no email goes out.
- Send to staff and No rule matched decisions do not count toward the cap.
- The cap is a soft limit: when two runs overlap, Auto-Approve can go slightly over it.
The error brake
- Error Brake Threshold is how many failures in 15 minutes stop Auto-Approve in a store view. The default is 10. Failures are actions that failed and approved requests handed over after an error.
- When the brake trips, Auto-Approve skips that store view, dry-run previews included. If it trips during a run, the rest of that run's requests for the store view wait.
- The brake lifts by itself once those failures are more than 15 minutes old. To lift it at once, click Reset Error Brake; only failures after that count again. Resetting needs the Auto-Approval → Activation & Brake Management permission.
- The brake cannot be switched off. A value below 1 counts as 10.
- An action that fails before the request is approved is tried again on later runs. After five attempts the request goes to your team and stays Pending.
Hand-over to staff
Auto-Approve never takes back an approval and never decides an approved request again. When it has approved a request but cannot finish it, it hands the request over:
- the credit memo could not be created, for example because the order already has one;
- the action stopped with an error after the approval, so a credit memo may or may not exist;
- a run was interrupted, and it could not resume within 24 hours or tell what it had decided;
- the credit memo was created, but the run stopped before it was known whether the customer was told;
- the approved request still was not finished after five attempts.
Auto-Approve resumes an interrupted run on a later run, at least 15 minutes after it stopped.
The handed-over request stays Approved, and Action taken shows Routed to manual. Your team gets the hand-over email: it says why and asks staff to check the credit memos of the order before refunding. It is always sent, once per request, and tried again later if sending fails. Who receives it: Auto-Approve: staff notifications.
Dry-run before going live
In dry-run mode Auto-Approve changes no request, creates no credit memo and sends no Send to staff email. Previews do not count toward the daily cap, but the error brake still applies. When you turn dry-run off, the previewed requests that are still Pending are decided again, for real. See Auto-Approve: dry-run mode and Auto-Approval History.
What this means for you
- Set the daily cap to what your team is ready to see approved without a look. Requests over it wait for your team; they are not carried over.
- When the brake has stopped Auto-Approve, find the cause in Auto-Approval History before you reset it. Otherwise the next failures stop it again.
- For a handed-over request, check the order's credit memos before you refund, so the customer is not refunded twice.
What's next
- Settings: Auto-Approval: the cap, the brake and the staff emails.
- Auto-Approve: staff notifications: who gets the hand-over email.
- Auto-Approve: dry-run mode and Auto-Approval History: read each decision.
- Roles and permissions: who can reset the brake.