# Vendor Bank Detail Change Review (`afkdigital/vendor-bank-detail-change-review`) Actor

Compare two vendor CSV snapshots and export a masked bank-detail change review queue.

- **URL**: https://apify.com/afkdigital/vendor-bank-detail-change-review.md
- **Developed by:** [AFK Digital](https://apify.com/afkdigital) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.10 / 1,000 vendor revieweds

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

## Vendor Bank Detail Change Review

Compare two vendor master snapshots and hand accounts payable a masked review queue. Start with an empty input to see seven synthetic findings. For real snapshots, upload two UTF-8, comma-delimited CSV files with a header and preserve leading zeros when exporting.

### Run with your files

1. In Apify Console, create two dedicated private key-value stores, one per snapshot. Upload each file as the record named `SNAPSHOT.csv` in its respective store.
2. In Actor input, select those stores under **Previous vendor CSV store** and **Current vendor CSV store**. With the API, pass the two storage IDs as `previousVendorFile` and `currentVendorFile`.
3. Set `compareFields` to the bank fields in both exports. Supported fields are `iban`, `account_number`, and `routing_number`. The default compares all three. Use `columnMapping` for custom headers. Each side maps canonical field names to exact CSV header text. For example, `{"previous":{"vendor_id":"Supplier ID","iban":"Old IBAN"},"current":{"vendor_id":"Vendor Code","iban":"IBAN"}}` with `compareFields: ["iban"]`.
4. Open the masked Dataset for JSON or download `REVIEW.csv` from the run's key-value store. Use `review_status = needs_review` for the human review queue. Evidence lists the one-based source line where each CSV record starts, including the header in the line count.

Vendor IDs are matched exactly after trimming surrounding whitespace, with case and leading zeros preserved. Duplicate IDs on either side yield one ambiguous finding. Missing IDs yield separate findings. New and removed indicate presence in only one snapshot. They do not establish whether the vendor is active in any source system.

Bank fields ignore ASCII spaces, tabs and hyphens used as grouping separators. IBAN also ignores ASCII case. Domestic account values retain case. The Actor performs basic character and length checks. It does not validate bank-specific formats or checksums. A missing or malformed value requires review. A format-only difference and an unchanged record have separate statuses. The vendor cap applies to the union of IDs and rejects the entire comparison if exceeded. Each file is limited to 8 MiB and 100,000 CSV records.

### Data access and retention

Upload the originals only into private Apify key-value stores that you control. The Actor uses limited permissions and requests read access to the two selected stores. It fetches records over Apify's authenticated API and compares them in memory. It writes only masked results to the run's default Dataset and key-value store. No raw snapshot is copied into run storage. The Actor uses per-run pseudonyms for vendor IDs, even when a bank identifier has accidentally been mapped as an ID. Masked bank values appear as REDACTED, with no suffix. A missing value appears as null.

Source uploads remain in your source stores until you delete them or Apify retention applies. Named stores can persist indefinitely. Run storage retention depends on your Apify plan and storage settings. Review access and retention in Console, avoid sharing source stores or their links, and delete source records and run outputs when no longer needed. See [Apify storage](https://docs.apify.com/storage) and [storage permissions](https://docs.apify.com/storage/share).

This is a snapshot comparison for manual review. It does not verify account ownership, initiate payments, contact vendors, or modify vendor records.

### Paid pricing unit

One `vendor-reviewed` event per successfully reviewed unique vendor. The listing price is displayed per 1,000 vendors and scales with the actual event count. Completed unchanged, format-only, changed, new and removed vendors count once each when their required bank fields are present and pass basic checks. Synthetic demo, duplicates, missing IDs, and incomplete or malformed records do not generate a charge. There is no additional charge per field. A run with an insufficient charge limit stops before producing exports.

# Actor input Schema

## `previousVendorFile` (type: `string`):

Select a private key-value store containing the uploaded SNAPSHOT.csv record. Leave both empty for the demo.

## `currentVendorFile` (type: `string`):

Select a private key-value store containing the uploaded SNAPSHOT.csv record. Leave both empty for the demo.

## `columnMapping` (type: `object`):

Optional previous and current objects mapping canonical fields to exact CSV headers.

## `compareFields` (type: `array`):

Select the fields present in both files.

## `maxVendors` (type: `integer`):

Rejects the whole run if the union of vendor IDs exceeds this limit.

## Actor input object example

```json
{
  "columnMapping": {},
  "compareFields": [
    "iban",
    "account_number",
    "routing_number"
  ],
  "maxVendors": 10000
}
```

# Actor output Schema

## `json` (type: `string`):

No description

## `csv` (type: `string`):

No description

# 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("afkdigital/vendor-bank-detail-change-review").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("afkdigital/vendor-bank-detail-change-review").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 afkdigital/vendor-bank-detail-change-review --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,afkdigital/vendor-bank-detail-change-review"
        }
    }
}
```

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/fnhvcVmsft5Xhk8BX/builds/OQZam6LgVSdTQmwss/openapi.json
