CPA 005 EFT File Export: Canada EFT vendor payments and PAD debits (RBC, TD, BMO, CIBC)
by Aerya IT Solutions https://aerya.net$ 53.69
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
CPA 005 EFT File Export: Canada EFT vendor payments and PAD debits (RBC, TD, BMO, CIBC)
Pay vendors and collect pre-authorized debits by uploading CPA Standard 005 files to your Canadian bank, from Odoo Community or Enterprise. Bank profiles, test files and the returns imported back.
PAD agreement checked before every debit
Test file first, production creation numbers untouched
One price, no subscription
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
on each of the four versions: file records, control totals, bank variants, dates, PAD rules, returns, access rights and browser
no warnings
written and read back without a database, checked against the field tables of Standard 005
The file, field by field
Taken from the file the module wrote for the demo company. Every record has 1464 characters; a credit or debit record holds up to six items of 240 characters. Positions are those of Payments Canada Standard 005.
Header record (A)
| Positions | Size | Field | In the demo file |
| 1 | 1 | Record type | A |
| 2-10 | 9 | Record count | 000000001 |
| 11-20 | 10 | Originator ID | 0314159265 |
| 21-24 | 4 | File creation number | 0042 |
| 25-30 | 6 | Creation date, 0YYDDD | 026311 |
| 31-35 | 5 | Destination data centre | 00220 |
| 56-58 | 3 | Currency | CAD |
A credit, first segment of a C record
| Positions | Size | Field | In the demo file |
| 25-27 | 3 | Transaction code (Standard 007) | 460 |
| 28-37 | 10 | Amount in cents | 0000148000 |
| 38-43 | 6 | Date funds are available, 0YYDDD | 026314 |
| 44-52 | 9 | Payee institution: 0, bank, transit | 000100152 |
| 53-64 | 12 | Payee account | 4004777 |
| 90-104 | 15 | Originator short name | MAPLE LEAF |
| 105-134 | 30 | Payee name | NORTHERN LIGHTS ELECTRIC LTD |
| 135-164 | 30 | Originator long name | MAPLE LEAF SUPPLY INC. |
| 175-193 | 19 | Cross reference (comes back with returns) | EFT000000008 |
| 194-202 | 9 | Institution for returns | 000220020 |
| 203-214 | 12 | Account for returns | 4829103 |
| 215-229 | 15 | Sundry information | NLE 20533 |
Trailer record (Z)
| Positions | Size | Field | In the demo file |
| 25-38 | 14 | Total of debits, cents | 00000000087500 |
| 39-46 | 8 | Number of debits | 00000001 |
| 47-60 | 14 | Total of credits, cents | 00000000157215 |
| 61-68 | 8 | Number of credits | 00000002 |
No bank has certified the file. Ask your bank for its EFT specification, send a first test file and confirm the data centre, originator ID and record separator. The account numbers shown are from a fictitious company.
Pick the payments, get the file
Register payments as usual on your bank journal. In Accounting > Canada EFT, create a file, add the payments (vendor payments go out as credits, customer payments as pre-authorized debits) and generate it. Up to six items share one 1464-character record, as the standard says.
A weekend payment date shows a warning: the bank moves it to the next business day.

A draft you can check, and a test file first
Every item shows its payee, bank account, CPA code and cross reference. Generate a test file with your bank's test creation number to try your bank's validation: nothing is reserved, the payments stay free and your production file numbers are untouched.

The file, with its trail
The generated file stays on the record with its SHA-256, creation number, who generated it and when. The module reads the file back and compares its own control totals before saving it. A payment on a generated file cannot be canceled until the file is.

Returns reopen the bill
Import the bank's return file (CPA-005 record types I and J) or record a return by hand from your bank's report. The item is matched by its cross reference, the payment is canceled so the bill or invoice is open again, and the payee account is blocked when the reason says not to try again (account not found or closed, no debit allowed, PAD dispute).

Pre-authorized debits with their agreement
A debit needs the account holder's PAD agreement date on the bank account, and cannot go before it (Payments Canada Rule H1). Business PADs use the 700 series codes, personal PADs another code you choose on the journal.







Odoo 19 Enterprise screenshots.
Bank profiles
| BMO (001) | Credits and debits in one file; records end with a carriage return only; funds dates up to 100 days; the layout of BMO's client manual (zero-filled reserved areas). |
| RBC (003) | Separate files for credits and debits; test files carry the creation number TEST; return fields left empty; the seven RBC data centres are listed on the journal. |
| TD (004) | Data centre 00420 proposed; separate files as a precaution; check the test number and the record separator with TD. |
| Scotiabank (002) | Data centre 00220 proposed; credits and debits in one file; test number 0000; dates up to 60 days. |
| CIBC (010) | Another originator ID for debits, separate files, creation numbers from 0100 and the CIBC file name pattern. |
| Desjardins (815) | Data centre 81510 proposed; records end with CR and LF; dashes allowed in account numbers. |
Sources: Payments Canada Standards 005 and 007 (2024 and 2026), the BMO EFT client manual, the RBC ACH CPA-005 file description (April 2021), the Desjardins direct deposits guide (2012); TD, Scotiabank and CIBC values come from public third-party guides. Every value is a field you can change. Each bank confirms the details in its own service agreement.
Everything it includes
Community and Enterprise
Works on Community and Enterprise with the core accounting app.
Credits and debits
Vendor payments (C records) and pre-authorized debits (D records) from one screen.
CPA transaction codes
The full Standard 007 list; government, internal and return codes are refused.
CAD or USD files
One currency per journal, checked on every payment.
Institution and transit checks
3 digit institution, 5 digit transit and a clean account number on every payee.
Multi-company, per-user rights
Billing users prepare files, accounting managers generate and import returns.
How you work with it
Once: the bank profile, data centre, originator ID and names on the bank journal; institution, transit and account on each payee.
Each run: register the payments, add them to an EFT file, generate a test file the first time, then the production file.
At the bank: upload the file, mark it as sent.
Afterwards: import the returns your bank sends back.
Compatibility
| Versions | Odoo 17, 18, 19 and 20 |
| Editions | Community and Enterprise |
| Requires | Odoo Accounting or Invoicing (account) |
| Format | CPA Standard 005, 1464-character records (ASCII) |
| Currency | Canadian or US dollars at Canadian banks |
| Languages | English, Canadian French |
What it does not do
It stops with a clear message instead of writing a doubtful file: payments in another currency than the journal's file currency, amounts of zero or above 99,999,999.99, institution, transit or account numbers that are not valid, government and internal transaction codes, a debit without a PAD agreement or before it, a blocked bank account, a payment date in the past or beyond your bank's limit, and credits mixed with debits when your bank wants separate files.
Not in this version: a connection to your bank (you upload the file), EBCDIC files, error corrections and notices of change, the 80 and 105 character bank formats, ISO 20022, and payroll calculation. It is not legal advice on Payments Canada rules.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 19, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Developed in the European Union by Aerya IT Solutions, Odoo implementation and development. aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 2633 |
| Technical Name |
aerya_ca_eft |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module