Your platform can pay suppliers without anyone retyping the transfers, with one limit: the final signature stays at the bank, which alone holds your signatories' mandates. The system picks the approved invoices that are due, gets the payment proposal approved, then generates a payment file in the format your bank requires. The file goes to the bank through its corporate portal or a file transmission channel, the authorised signatories approve it under the mandates registered with the bank, and the execution report comes back into the system for matching.
While transfers are keyed in one at a time on the bank portal, every payment gets decided twice, once in the ERP and once at the keyboard, with nothing that proves the two agree. A swapped digit in an amount or an account number reaches the supplier before anyone notices. Locking supplier bank details in the ERP also stops protecting you, because whoever types into the portal can enter any account they like. And the statement comes back with no invoice reference, which means accounting matches payments by hand and finds duplicate payments only when a supplier points them out.
What share of your supplier payments does the system not produce itself?
Take last month's supplier transfers from your bank statements and sort them by origin: a file the ERP generated and sent unchanged, a file prepared or edited in a spreadsheet, or a transfer keyed in on the portal. Treasury knows where each batch came from, and the sorting doesn't take long. Then divide the last two categories by the total. That gives you the share of payments your system does not produce itself, the KPI to track during the project.
A file edited in a spreadsheet counts as retyping. Nothing proves that the lines sent are the lines that were approved.
What actually happens between an approved invoice and a debited account?
An invoice becomes payable once it is matched to its purchase order and goods receipt, or linked to an active contract, as described in our article on invoices without a purchase order. On a fixed day, say every Tuesday, the system proposes a payment run: the payable invoices that are due, each with the paying bank and the validated destination account. The treasurer pulls anything to be deferred, even if it is due, then a second approver signs the run off.
The file is generated only after that approval. The signatories approve it at the bank, which executes it and sends back an execution report, and the next statement confirms the debits. Each step changes the invoices' status in the system (proposed, approved, sent, executed or rejected), so an invoice never sits in two runs at once.
Which channel and which file format does your bank accept?
There are two ways to send the file. The simplest is to upload the ERP's file to the bank's corporate portal; Attijariwafa bank's 2021 brochure, for example, lists bulk supplier transfers among the operations on its portal. The other is file transmission, where the company's system and the bank's system exchange files directly, and for bulk transfers the same brochure names EBICS, SwiftNet and CFT. SwiftNet stands apart because it gives a company one channel to all the banks it uses.
The format is the bank's call. Ask each bank for its payment file specification and test files, and ask whether it accepts the ISO 20022 international standard, where the pain.001 message initiates credit transfers, or only a format of its own. Don't assume that a format built for France or the SEPA zone will work with a Moroccan bank. Beneficiary accounts use the 24-digit Moroccan RIB, which identifies the bank, the branch and the account, and ends with a two-digit check key.
Which controls belong between the ERP and the bank?
The eight controls below can be configured in the ERP or in a payment application connected to it. Finance sets the values in the third column; they are parameters you agree internally.
| Control | What the system checks | Parameter you set | If the check fails |
|---|---|---|---|
| 1. Payable invoice | Successful match or active contract, approved for payment | Matching rules per spend category | Invoice left out of the run |
| 2. Duplicate | Same supplier and invoice number, or same amount, already paid or in an open run | Look-back window in days | Line blocked, reason shown |
| 3. Locked account | Account validated on the supplier record, 24-digit RIB with a correct check key | Bank detail validation workflow | Line blocked, sent to the bank detail workflow |
| 4. Dual approval | Run approver different from the preparer | Threshold requiring two approvers | File cannot be generated |
| 5. File integrity | Number of orders, total and file hash fixed at generation, checked again before sending | Fixed rule | Sending refused, treasury alerted |
| 6. Transmission | Folder reserved for the technical account, or the bank channel, never email | Folder permissions | Sending blocked, incident logged |
| 7. Bank signature | Signatories and limits registered with the bank consistent with the ERP matrix | Review at every departure or role change | Run held at the bank |
| 8. Bank return | Every order executed or rejected, statement debits matched to the run | Alert delay with no return | Run flagged to the treasurer |
Controls 3 and 5 come down to one requirement to copy as written into the requirements document: "The system refuses to send to the bank any payment file whose number of orders, total amount or hash differs from the approved run, or which contains an order to an account not validated on the supplier record." Control 3 relies on the workflow set out in our article on locking supplier bank details. If your ERP can't carry these rules, a business application sitting between the ERP and the bank, or a systems integration project, can add them.
Who signs, the system or the bank?
Both do, because the two signatures attest different things. Approval in the ERP says the run is correct, while the signature at the bank commits the account, and the bank accepts it only from people authorised under the mandates it holds. When it launched Attijari Ebics in December 2021, Attijariwafa bank said operations sent through it are approved online on its portals "en respectant la matrice des signataires paramétrée à cet effet" (in line with the signatory matrix set up for that purpose).
That second signature is also the last check. When signing, the signatory compares the number of orders and the total shown by the bank with those of the approved run. If they differ, the file changed on the way.
What do you do with what the bank sends back?
The execution report says which orders went through, which were rejected and why (closed account, wrong RIB, insufficient funds). The statement then confirms the debits; Attijariwafa bank's 2021 brochure, for instance, listed statements in AMB 120 and MT 940 formats. Your system needs to read both, and if your bank works with ISO 20022, the pain.002 message exists to report the status of payment orders.
Automatic matching depends on a reference. Put the run number and the invoice number in each transfer's reference field, and each debit finds its invoice with no manual work. A rejected order puts its invoice back on the payable list; when the reason concerns the supplier's account, the system opens a request in the bank detail validation workflow instead of allowing a direct edit. A run with no return after the agreed delay raises an alert.
Several banks, several currencies: what gets harder?
Each bank has its own format, channel and processing cut-offs. A group paying from four banks maintains four file templates, and a rule has to say which account each payment leaves from, based on the supplier's bank or on balancing cash across accounts. Foreign currency transfers abroad also fall under Morocco's foreign exchange regulations, with supporting documents a domestic file doesn't carry. Treat them as a separate flow in the requirements.
What will stay manual, and why write it down?
Before you sign with an integrator, name the steps that will stay human: the signature at the bank, the treasurer's call on each run, the analysis of rejections and the urgent payment outside the run. That last one sometimes gets keyed in on the portal; require that it be recorded in the system within a delay you set, and count it in the KPI. Opening the channel also takes time on the bank's side (the file transmission agreement, certificates, test files the bank accepts before go-live). Write down who does what, integrator, bank or your own teams, so none of those steps falls between two contracts.
Does changing banks mean rebuilding the connector?
It doesn't, as long as the format is kept apart from everything else. The payment logic (selection, approval, controls, statuses) depends on no bank at all; only the translation of the run into the bank's format does. Require that translation to be a module configured per bank, documented, delivered with its test files, and with code or configuration you own. A new bank then means a new template to test, with the controls left alone.
How does a consumer goods manufacturer get out of retyping?
A manufacturer of detergents and hygiene products pays 600 supplier transfers a month from two banks. The company and the figures are invented for illustration. The first day's sort finds 330 transfers keyed in one by one on the portal, 150 sent in a file prepared in a spreadsheet from an ERP extract, and 120 sent in a file the ERP already generates for the first bank. The KPI stands at 480 out of 600, or 80%. At three minutes of typing per transfer, an assumption made for this example, the 330 manual entries take 16.5 hours a month.
After the project, the company moves to one run per week per bank, which makes eight files in a four-week month. The first bank carries 420 payments a month and the second 180, which gives runs of about 105 and 45 orders. Urgent payments keyed in on the portal drop to 18 a month, all recorded afterwards in the ERP, and the 18 remaining entries take 54 minutes a month. The KPI falls to 18 out of 600, or 3%.
One week, a clerk opens the 105-order file to fix a line before it goes out. The number of orders doesn't change, but the total and the hash no longer match the approved run, and control 5 refuses to send it. The file is regenerated from the run and sent. The execution report shows 103 orders executed and 2 rejected, one for a closed account and one for a wrong RIB. Both invoices go back on the payable list, and since both rejections concern the supplier's account, each opens a request in the bank detail workflow: the wrong RIB had been validated on the supplier record with a correct check key, but no longer matched the real account. The next day's statement matches the 103 debits to the run with nobody touching them.
FAQ
- Do we need file transmission, or is uploading to the portal enough?
Uploading is enough to stop retyping, since the file's content comes from the system. File transmission adds unattended sending and the automatic return of execution reports and statements, which matters most as volumes or the number of banks grow. You can start with uploads and move to file transmission once the controls have bedded in.
- Can our ERP produce our bank's file?
If the ERP offers a generic format, check it field by field against your bank's specification and have the bank validate it on a test file. If it doesn't, a generation module can be built separately, configured per bank, without changing the core of the ERP.
- Can payroll go through the same chain?
The mechanism is the same, and bank portals offer bulk transfers for salaries as well as suppliers. Keep the two flows apart all the same, with separate runs, separate access rights, and the payroll file open only to payroll and treasury. Individual salaries are confidential.
Sources
- Attijariwafa bank, launch of Attijari Ebics (press release, 13 December 2021, in French)
- Attijariwafa bank, "Plan cash management et paiements" brochure (2021, in French)
- HSBC Malaysia, notice on payments to Morocco
- ISO 20022, message catalogue, Payments Initiation, pain.001 and pain.002
Last verified: 2 November 2026.
Track, every month, the share of supplier transfers your system doesn't produce itself, urgent payments included; our free audit can work that number out with you and find the control still missing between your ERP and your bank.





