Amazon FBA Fee Calculator
FBA size tier, fulfillment fee, surcharges, referral and closing fees for 13 Amazon marketplaces (US, CA, MX, BR, UK, DE, FR, IT, ES, JP, AU, IN, AE) from dimensions, weight, price and category. Free for signed-in users.
/v1 /amazon /fba /feesAPI data samples
Inspect the request body and complete response shape used by this endpoint.
{
"length": 12.6,
"width": 6.6,
"height": 5.5,
"dimensionUnit": "in",
"weight": 3.35,
"weightUnit": "lb",
"price": 29.99,
"category": "home-kitchen",
"dangerousGoods": false,
"period": "2027-offpeak"
}{
"request_id": "6d0f2a8e-31c4-4b7a-9f15-2c8e7a4b9d10",
"data": {
"marketplace": "US",
"currency": "USD",
"fees_include_tax": false,
"rate_card": {
"id": "2027-offpeak",
"start": "2027-01-15",
"end": "2027-10-14",
"peak": false,
"rates_checked": "2026-12-01"
},
"size_tier": "largeStandard",
"dimensional_weight": 3.29,
"shipping_weight": 3.35,
"weight_unit": "lb",
"fee_table": "standard",
"price_band": "10_to_50",
"low_price_rate": false,
"fulfillment_fee": 7.32,
"fuel_surcharge": 0.26,
"referral_fee": 4.5,
"other_fees": [],
"total_fees": 12.08,
"net_proceeds": 17.91,
"notes": [],
"dimensional_weight_lb": 3.29,
"shipping_weight_lb": 3.35
}
}Availability: Available
This endpoint is active in the v1 gateway, OpenAPI, and subscription catalog. It is free: calls need an API key from a signed-in account but consume no billing units.
POST /v1/amazon/fba/fees
The request and response fields below match the current public contract.
MCP
| Item | Value |
|---|---|
| MCP Code | amazon_fba_fees |
Quick call
First create an API key, then store it in a server-side environment variable:
export ECOMMERCE_DATA_API_KEY="your_api_key"curl --request POST \
--url https://ecommercedataapi.com/v1/amazon/fba/fees \
--header "Content-Type: application/json" \
--header "X-API-Key: ${ECOMMERCE_DATA_API_KEY}" \
--data '{
"length": 12.6,
"width": 6.6,
"height": 5.5,
"dimensionUnit": "in",
"weight": 3.35,
"weightUnit": "lb",
"price": 29.99,
"category": "home-kitchen",
"dangerousGoods": false,
"period": "2027-offpeak"
}'Integrate with an AI CLI
Copy for your AI CLI
Paste this task into Codex, Claude Code, Gemini CLI, or another coding agent.
Integrate the "Amazon FBA Fee Calculator" endpoint from Ecommerce Data API into the current repository. Make the changes directly instead of only returning sample code.
API documentation: https://ecommercedataapi.com/en/docs/amazon/fba/fees
Endpoint: POST https://ecommercedataapi.com/v1/amazon/fba/fees
API key environment variable: ECOMMERCE_DATA_API_KEY
Example request:
{
"length": 12.6,
"width": 6.6,
"height": 5.5,
"dimensionUnit": "in",
"weight": 3.35,
"weightUnit": "lb",
"price": 29.99,
"category": "home-kitchen",
"dangerousGoods": false,
"period": "2027-offpeak"
}
Requirements:
1. Read the API documentation first, then inspect the repository's language, framework, HTTP client, directory structure, and environment-variable conventions.
2. Reuse the existing API client and error-handling patterns. If none exist, add the smallest reusable Ecommerce Data API client and an endpoint-specific wrapper.
3. Read the key from the server-side ECOMMERCE_DATA_API_KEY environment variable and send Content-Type: application/json plus the X-API-Key header. Never write a real key into source code, browser code, logs, test snapshots, or Git.
4. If the environment variable is missing, tell me to configure ECOMMERCE_DATA_API_KEY myself. Do not request, print, or invent the real key, and continue implementing code and tests that do not require a live request.
5. Implement request and response types from the documentation. Handle non-2xx responses, request_id, error.code, error.message, and 429 rate limits.
6. Add a minimal usage example or test that follows the repository's conventions. Run one minimal live request only when the key is already configured and external requests are allowed; otherwise use mocks or static validation.
7. Run the relevant formatter, type checker, and tests. Report changed files, usage, verification results, and any environment variable I still need to configure.Open this request in Postman
Download the preconfigured collection for this endpoint, then import it into Postman.
Node.js example
const response = await fetch(
'https://ecommercedataapi.com/v1/amazon/fba/fees',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ECOMMERCE_DATA_API_KEY,
},
body: JSON.stringify({
length: 12.6,
width: 6.6,
height: 5.5,
dimensionUnit: 'in',
weight: 3.35,
weightUnit: 'lb',
price: 29.99,
category: 'home-kitchen',
dangerousGoods: false,
period: '2027-offpeak',
}),
}
);
const result = await response.json();
if (!response.ok) {
throw new Error(`${result.error?.code}: ${result.error?.message}`);
}
console.log(result.data);Python example
import os
import requests
response = requests.post(
"https://ecommercedataapi.com/v1/amazon/fba/fees",
headers={
"Content-Type": "application/json",
"X-API-Key": os.environ["ECOMMERCE_DATA_API_KEY"],
},
json={
"length": 12.6,
"width": 6.6,
"height": 5.5,
"dimensionUnit": "in",
"weight": 3.35,
"weightUnit": "lb",
"price": 29.99,
"category": "home-kitchen",
"dangerousGoods": False,
"period": "2027-offpeak",
},
timeout=30,
)
response.raise_for_status()
print(response.json()["data"])Request body
Send the fields below directly in the JSON body without an extra wrapper. Undefined fields are rejected.
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
marketplace | String | No | Marketplace: US, CA, MX, BR, UK, DE, FR, IT, ES, JP, AU, IN, AE. Default US. Amounts are in that marketplace's currency. | US |
length | Number | Yes | Packaged length, in dimensionUnit. | 12.6 |
width | Number | Yes | Packaged width, in dimensionUnit. | 6.6 |
height | Number | Yes | Packaged height, in dimensionUnit. | 5.5 |
dimensionUnit | String | No | Unit of length, width and height: in or cm. Default in, whatever the marketplace. | in |
weight | Number | Yes | Packaged unit weight, in weightUnit. | 3.35 |
weightUnit | String | No | Unit of weight: lb, oz, kg or g. Default lb, whatever the marketplace. | lb |
price | Number | Yes | Selling price in the marketplace currency, as the buyer pays it (VAT or GST included where the marketplace shows prices with tax). Picks the price band and the referral fee. | 29.99 |
category | String | No | Referral fee category id of the marketplace (e.g. home-kitchen); amazon.fba.rates lists them under categories. Default: the marketplace's catch-all category. | home-kitchen |
dangerousGoods | Boolean | No | Dangerous goods (hazmat). US uses its dangerous goods table; EU adds the per-unit surcharge; other marketplaces note it only. | false |
period | String | No | Rate card id of the marketplace (e.g. 2027-offpeak for US); amazon.fba.rates lists them under rate_cards. Defaults to the rate card in force on date. | 2027-offpeak |
date | String | No | Date (YYYY-MM-DD) whose rate card to use when period is not set. Default today (UTC). | 2027-01-15 |
zone | String | No | IN only: shipping zone for the weight handling fee: local, regional, national or ixd. Default national. | national |
stepLevel | String | No | IN only: seller STEP level: premium, advanced, standard or basic. Default standard. | standard |
Response structure
| Field | Type | Description |
|---|---|---|
request_id | String | Unique identifier for this request. |
data | Object | Endpoint business data. |
The fields below are inside data. For array endpoints they describe one array item; for paginated endpoints they describe one record in items[].
Response fields
| Field | Type | Description | Example |
|---|---|---|---|
data.marketplace | String | Marketplace. | US |
data.currency | String | Currency of every amount. | USD |
data.fees_include_tax | Boolean | Whether the fee amounts include VAT, GST or consumption tax. | false |
data.rate_card.id | String | Rate card used. | 2027-offpeak |
data.rate_card.start | String | First day the rate card applies. | 2027-01-15 |
data.rate_card.end | String | Last day the rate card applies; null when no end is announced. | 2027-10-14 |
data.rate_card.peak | Boolean | Whether it is a peak-season rate card. | false |
data.rate_card.rates_checked | String | When the rates were last checked against Amazon's pages. | 2026-12-01 |
data.size_tier | String | Size tier id of the marketplace, e.g. smallStandard, largeStandard (US) or standardParcel. | largeStandard |
data.dimensional_weight | Number | Dimensional weight in weight_unit; null where the marketplace does not use one. | 3.29 |
data.shipping_weight | Number | Weight the fee is charged on, in weight_unit. | 3.35 |
data.weight_unit | String | lb (US) or kg. | lb |
data.dimensional_weight_lb | Number | US only, same as dimensional_weight. | 3.29 |
data.shipping_weight_lb | Number | US only, same as shipping_weight. | 3.35 |
data.fee_table | String | Fee table used, e.g. standard, apparel or dangerous (US). | standard |
data.price_band | String | Price band id of the marketplace, e.g. under_10, 10_to_50 or over_50 (US). | 10_to_50 |
data.low_price_rate | Boolean | Whether the marketplace's low-price FBA rate applies. | false |
data.fulfillment_fee | Number | FBA fulfillment fee per unit, before the surcharge. | 7.32 |
data.fulfillment_breakdown[] | Array | Parts of fulfillment_fee where the marketplace charges it in parts (IN: pick & pack, weight handling): code, label, amount. | - |
data.fuel_surcharge | Number | Fuel and logistics surcharge on the fulfillment fee (0 where none applies). | 0.26 |
data.referral_fee | Number | Referral fee per unit. | 4.5 |
data.other_fees[] | Array | Other per-unit fees: closing fees, dangerous goods surcharges. code, label, amount. | - |
data.total_fees | Number | fulfillment_fee + fuel_surcharge + referral_fee + other_fees. | 12.08 |
data.net_proceeds | Number | Price minus total_fees, before product cost, storage and ads. | 17.91 |
data.notes[] | Array | Assumptions and caveats for this quote, in English. | - |
Response example
{
"request_id": "6d0f2a8e-31c4-4b7a-9f15-2c8e7a4b9d10",
"data": {
"marketplace": "US",
"currency": "USD",
"fees_include_tax": false,
"rate_card": {
"id": "2027-offpeak",
"start": "2027-01-15",
"end": "2027-10-14",
"peak": false,
"rates_checked": "2026-12-01"
},
"size_tier": "largeStandard",
"dimensional_weight": 3.29,
"shipping_weight": 3.35,
"weight_unit": "lb",
"fee_table": "standard",
"price_band": "10_to_50",
"low_price_rate": false,
"fulfillment_fee": 7.32,
"fuel_surcharge": 0.26,
"referral_fee": 4.5,
"other_fees": [],
"total_fees": 12.08,
"net_proceeds": 17.91,
"notes": [],
"dimensional_weight_lb": 3.29,
"shipping_weight_lb": 3.35
}
}See Errors and rate limits for error payloads, request tracing, and rate-limit headers.
Amazon Seller Research
Request parameters, response fields, and the public endpoint for Amazon Seller Research.
Amazon FBA Rate Card
FBA rate cards as JSON for 13 Amazon marketplaces, current or archived, with size tiers, fulfillment fee tables, low-price rules, surcharges, referral and closing fees. Free for signed-in users.