# Canadian Marketplace Fee Estimator (`mettahometech/ca-marketplace-fees`) Actor

Estimate selling fees per Canadian channel (Amazon.ca FBA, Walmart.ca WFS, eBay.ca, Shopify Payments) from dated fee tables. Every result carries the date the rates were verified. No scraping.

- **URL**: https://apify.com/mettahometech/ca-marketplace-fees.md
- **Developed by:** [Metta Distribution](https://apify.com/mettahometech) (community)
- **Categories:** E-commerce, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 fee estimates

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 Marketplace Fee Estimator

Fee and profit estimates for selling in Canada on **Amazon.ca (FBA)**, **Walmart.ca (WFS)**,
**eBay.ca** and **Shopify Payments**, line by line: referral / final value fees, fulfilment,
storage, per-order fees, card fees, ads, plan share and sales tax effects.

Every rate comes from the official fee pages, recorded with the date it was verified; each
result lists `rates_verified_on` and the `sources` it used. Fees change -- check the date.

### Input

```json
{"items": [
  {"channel": "all", "price": 34.99, "item_cost": 10, "weight_lb": 1.8, "length_in": 12, "width_in": 9,
   "height_in": 4, "shipping_charged": 12, "ship_cost": 11, "buyer_province": "ON"},
  {"channel": "amazon_ca_fba", "price": 29.99, "category": "toys_games", "tier": "standard",
   "ship_weight_g": 820, "length_cm": 30, "width_cm": 23, "height_cm": 10}
]}
```

`channel`: `walmart_ca_wfs`, `amazon_ca_fba`, `ebay_ca`, `shopify_ca` or `all` (one estimate per channel).

### Output (one item per item per channel)

`total_fees`, `profit`, `margin_pct`, `roi_pct`, `lines` (each fee with its label), `warnings`,
`rates_verified_on`, `sources`, `currency` (CAD).

### Use from an AI agent (MCP)

Agents can call this Actor as an MCP tool through Apify's MCP server. You pay the same per-event
prices as a normal run; you need an Apify account and API token (Console -> Settings -> API & Integrations).

Claude Code:

```
claude mcp add --transport http ca-marketplace-fees "https://mcp.apify.com/?tools=mettahometech/ca-marketplace-fees" --header "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Claude Desktop (`claude_desktop_config.json`):

```json
{"mcpServers": {"ca-marketplace-fees": {"command": "npx", "args": ["-y", "@apify/actors-mcp-server", "--actors", "mettahometech/ca-marketplace-fees"],
  "env": {"APIFY_TOKEN": "YOUR_APIFY_TOKEN"}}}}
```

Worked call -- ask the agent "What would I net selling a $34.99 toy (cost $10, 1.8 lb, 12x9x4 in) on Walmart.ca WFS?". It calls the tool with:

```json
{"items": [{"channel": "walmart_ca_wfs", "price": 34.99, "item_cost": 10, "weight_lb": 1.8, "length_in": 12, "width_in": 9, "height_in": 4}]}
```

and gets back one estimate with `total_fees`, `profit`, `margin_pct`, each fee line and `rates_verified_on`. Cost: 1 x $0.01.

More reseller tools for Canada: https://sellerfee.ca/tools

### Pricing (pay per event)

- $0.01 per fee estimate (an item on `all` channels is 4 estimates). Errors are not charged.

Estimates only, not advice; the marketplace's own invoice is final. Privacy: the Actor does not fetch any website and keeps nothing beyond your own run's dataset and key-value store.

# Actor input Schema

## `items` (type: `array`):

One object per item. channel: walmart_ca_wfs, amazon_ca_fba, ebay_ca, shopify_ca or all. Common fields: price, item_cost, category, buyer_province. Walmart: weight_lb, length_in, width_in, height_in, storage_months. Amazon: tier, ship_weight_g, length_cm, width_cm, height_cm. eBay: shipping_charged, store_tier, ad_rate_pct. Shopify: plan, card, orders_per_month. See README.

## Actor input object example

```json
{
  "items": [
    {
      "channel": "all",
      "price": 34.99,
      "item_cost": 10,
      "weight_lb": 1.8,
      "length_in": 12,
      "width_in": 9,
      "height_in": 4,
      "shipping_charged": 12,
      "ship_cost": 11,
      "buyer_province": "ON"
    }
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

One fee estimate per item per channel, with the date rates were verified

# 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 = {
    "items": [
        {
            "channel": "all",
            "price": 34.99,
            "item_cost": 10,
            "weight_lb": 1.8,
            "length_in": 12,
            "width_in": 9,
            "height_in": 4,
            "shipping_charged": 12,
            "ship_cost": 11,
            "buyer_province": "ON"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mettahometech/ca-marketplace-fees").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 = { "items": [{
            "channel": "all",
            "price": 34.99,
            "item_cost": 10,
            "weight_lb": 1.8,
            "length_in": 12,
            "width_in": 9,
            "height_in": 4,
            "shipping_charged": 12,
            "ship_cost": 11,
            "buyer_province": "ON",
        }] }

# Run the Actor and wait for it to finish
run = client.actor("mettahometech/ca-marketplace-fees").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 '{
  "items": [
    {
      "channel": "all",
      "price": 34.99,
      "item_cost": 10,
      "weight_lb": 1.8,
      "length_in": 12,
      "width_in": 9,
      "height_in": 4,
      "shipping_charged": 12,
      "ship_cost": 11,
      "buyer_province": "ON"
    }
  ]
}' |
apify call mettahometech/ca-marketplace-fees --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mettahometech/ca-marketplace-fees"
        }
    }
}
```

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/tMnHgW841jbesWbcq/builds/KMo6T7HY0H7EdtNtD/openapi.json
