# Canadian CPA-005 EFT Direct Deposit File Generator (1464) (`finops_studio/canada-cpa005-eft-generator`) Actor

Convert CSV, Excel rows, or JSON into strict 1464-character Canadian Payments Association Standard 005 (CPA-005) EFT Direct Deposit & PAD files for RBC, TD, BMO, Scotiabank, and CIBC.

- **URL**: https://apify.com/finops_studio/canada-cpa005-eft-generator.md
- **Developed by:** [FinOps Studio](https://apify.com/finops_studio) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 cpa-005 eft payment segment generateds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Canadian `CPA-005` (1464-Byte) EFT Direct Deposit & PAD File Generator

Convert **CSV spreadsheets, Excel pastes, or JSON payloads** into strict **1464-character Payments Canada Standard 005 (`CPA-005`)** Electronic Funds Transfer files for **RBC Express, TD Commercial Banking, BMO Online Banking for Business, Scotiabank ScotiaConnect, CIBC Cash Management, and National Bank**.

Explore sample documents & `n8n` workflows at **[FinOps Studio](https://geornaden.github.io/finops-studio/)**.

***

### Built-In Payments Canada CPA-005 Rules

- **Exact 1464-Byte Logical Record Packing:** Generates Record `A` (Header), Record `C` (6 × 240-byte transaction segments packed into each 1464-byte logical record), and Record `Z` (Control Trailer).
- **9-Digit `0IIITTTTT` Institution + Transit Formatting:** Validates 3-digit Institution (`003` RBC, `004` TD, `001` BMO, `002` Scotiabank, `010` CIBC) and 5-digit Branch Transit numbers plus `0YYDDD` Julian dates.

> **Disclaimer:** Technical 1464-byte CPA-005 formatting utility provided "as-is". Verify institution/transit numbers and CAD totals inside your Canadian corporate banking portal before transmitting.

# Actor input Schema

## `originatorId` (type: `string`):

10-character Originator ID assigned by your Canadian bank (RBC, TD, BMO, Scotiabank, CIBC).

## `originatorShortName` (type: `string`):

Short company name displayed on recipient Canadian bank statements (up to 15 chars).

## `originatorLongName` (type: `string`):

Full company legal name (up to 30 chars).

## `destinationDataCentre` (type: `string`):

5-digit Canadian bank Processing Data Centre (e.g. 00300 RBC, 00400 TD, 00100 BMO, 00200 Scotiabank, 01000 CIBC).

## `fileCreationNumber` (type: `string`):

Sequential 4-digit file creation number required by Canadian EFT gateways to prevent duplicate batch uploads.

## `returnInstitution` (type: `string`):

Your company 3-digit Canadian Institution ID (e.g. 003 for RBC, 004 for TD).

## `returnTransit` (type: `string`):

Your company 5-digit Canadian branch transit number.

## `returnAccount` (type: `string`):

Your company CAD bank account number for EFT returns.

## `dueDate` (type: `string`):

Settlement date in YYYY-MM-DD format (converted to CPA 0YYDDD Julian date).

## `transactions` (type: `array`):

Array of Canadian EFT payees ({ name, institution, transit, accountNumber, amount, cpaCode, reference }).

## `csvTransactions` (type: `string`):

Optional CSV paste with headers: name,institution,transit,accountNumber,amount,reference.

## Actor input object example

```json
{
  "originatorId": "MAPLETECH1",
  "originatorShortName": "MAPLE TECH INC",
  "originatorLongName": "MAPLE TECH SOLUTIONS INC",
  "destinationDataCentre": "00300",
  "fileCreationNumber": "0001",
  "returnInstitution": "003",
  "returnTransit": "00012",
  "returnAccount": "1004589"
}
```

# Actor output Schema

## `eftFile` (type: `string`):

Ready-to-upload 1464-character Canadian Payments Association Standard 005 EFT file.

## `summaryDataset` (type: `string`):

JSON summary of CAD credit totals, logical record count, and payee rows.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("finops_studio/canada-cpa005-eft-generator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("finops_studio/canada-cpa005-eft-generator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call finops_studio/canada-cpa005-eft-generator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,finops_studio/canada-cpa005-eft-generator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/oJSPUHDPTsrKqD3I6/builds/BlTa1IeTG6shmUyNS/openapi.json
