# Compare major customers of Japanese companies: customer share of revenue from the major customers note of annual reports via API

Pull the major customers note of Japanese annual reports by API and line up the main customers of five auto parts makers in JavaScript, with each customer's share of revenue. Covers dividing by full-year revenue for the same period, the difference between the notes and the sales-by-customer table, unnamed, prior-only and below-10% rows, and why customer names do not match across companies.

In the [previous part of this deep-dive series](https://zenithcode.net/en/docs/cookbook/applied/deep-cross-holdings), we compared cross-shareholdings of competing companies: which holdings went up or down and which were mutual. This time we look at the sales side. The notes to the Japanese annual securities report (*yuho*) name the customers that account for 10% or more of revenue and give the revenue from each. The share of revenue is often not stated, though, and the scope of a customer (one company, or the customer and its group companies) differs from filer to filer. ZENITH Code returns this disclosure from [`/stable/main-customers`](https://zenithcode.net/en/docs/main-customers), one call per company, and the revenue you need for the share from [`/stable/income-statement`](https://zenithcode.net/en/docs/income-statement).

This guide builds five things in Node.js:

- Which table each company's customers were read from (the notes or the sales-by-customer table)
- Full-year revenue by fiscal period, used as the denominator
- Each customer row's share of revenue, for the current and prior year
- Counts of unnamed rows, current-only, prior-only and below-10% rows
- A name key for customer names, and the names that still do not match

The examples are five auto parts makers: Denso (6902), Aisin (7259), Toyota Boshoku (3116), Musashi Seimitsu Industry (7220) and F.C.C. (7296), using annual reports for the fiscal year ended March 2026. Every figure is from API responses retrieved at 19:09 Japan time on November 9, 2026.

Customer names come back in Japanese, as filed, with a machine-translated `customerEn` alongside. The guide adds English glosses where it helps.

## What the major customers disclosure contains

Major customers appear in two places in the annual report. One is the notes to the consolidated financial statements: "information by major customer" under Japanese GAAP, "information about major customers" under IFRS. The other is the table of sales by main customer in the production, orders and sales section or in management's discussion and analysis (MD&A). `main-customers` reads the notes first, and falls back to the sales table only when the notes give no customer and amount.

| Where in the response | Contents |
|---|---|
| `fiscalPeriod`, `docId` | Fiscal period and the document ID of the annual report read |
| `sourceTag` | Tag of the table read. The notes are `InformationForEachOfMainCustomersTextBlock` (Japanese GAAP) or `InformationAboutMajorCustomersIFRSTextBlock` (IFRS) |
| `priorSourceTag` | Present only when the prior-year rows were added from the sales table |
| `customers[].period` | `current` or `prior` |
| `customers[].customer` | Customer name, as filed. null for rows without a name |
| `customers[].customerEn` | Machine-translated name (listed in `machineTranslatedFields`) |
| `customers[].revenue` | Revenue from that customer (JPY) |
| `customers[].segment` | Related segments, joined with 、 when there are several |
| `customers[].notes` | The reason for an unnamed row, and so on |

Customer revenue is in yen and no share is included. To get a share you need revenue for the same period. `main-customers` and `income-statement` are both available on the Free plan at 1 token per call (as of November 9, 2026). Five companies take 10 calls.

## Step 1: fetch the API, one company at a time

Create an API key after [signing up](https://zenithcode.net/en/sign-up) and put it in the `ZENITH_API_KEY` environment variable so it never sits in your code. Node.js 18 and later ship `fetch`, so no packages are needed. Save the file as `main-customers.mjs`.

```js
// main-customers.mjs — line up main customers and their share of revenue (Node.js 18+)
const BASE_URL = "https://api.zenithcode.net/stable";
const API_KEY = process.env.ZENITH_API_KEY;
if (!API_KEY) throw new Error("Set your API key in the ZENITH_API_KEY environment variable");
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));

async function get(path, params) {
  const url = `${BASE_URL}${path}?${new URLSearchParams(params)}`;
  const res = await fetch(url, { headers: { "x-api-key": API_KEY, Accept: "application/json" } });
  if (res.status === 404) return { notFound: await res.json().catch(() => ({})) }; // nothing to show; the body may carry a reason
  if (!res.ok) throw new Error(`${path} ${res.status}`);
  return res.json();
}

// One company. Fetch the income statement (annual, 3 years) only when there are customer rows
async function fetchCompany(symbol) {
  const mc = await get("/main-customers", { symbol }); // an array with one annual report
  if (mc.notFound) return { symbol, report: null, notFound: mc.notFound, income: [] };
  const report = mc[0];
  let income = [];
  if (report.customers.length > 0) {
    await sleep(1000);
    const is = await get("/income-statement", { symbol, period: "annual", limit: 3 });
    income = is.notFound ? [] : is;
  }
  return { symbol, report, notFound: null, income };
}
```

A 404 is not an error here; it means "no customer rows". The body may carry a `reason`, so the code keeps it. Without `fiscalPeriod`, `main-customers` returns the latest annual report; pass a fiscal period such as `fiscalPeriod: "2025-03"` for an earlier year.

## Step 2: check which table was read

Even within one annual report, the notes and the sales table can cover customers differently. Some companies write the customer and its group companies as one row in the notes, while the sales table has one row per company. Before comparing, check where each company's rows came from.

```js
// Which table the customers were read from: notes, or the sales-by-main-customer table
function customerSource(tag) {
  if (!tag) return null;
  return /InformationForEachOfMainCustomers|InformationAboutMajorCustomers/.test(tag) ? "notes" : "sales";
}
```

| Company | Fiscal period | Document ID | Table read | Note format | Prior-year rows from the sales table |
|---|---|---|---|---|---|
| Denso | 2026-03 | S100Y9T1 | Notes | IFRS | No |
| Aisin | 2026-03 | S100YAWO | Notes | IFRS | No |
| Toyota Boshoku | 2026-03 | S100Y9AH | Notes | IFRS | No |
| Musashi Seimitsu | 2026-03 | S100YGX6 | Notes | Japanese GAAP | No |
| F.C.C. | 2026-03 | S100YFKQ | Notes | IFRS | No |

All five were read from the notes, so the source is consistent. When the companies you compare split between the notes and the sales table, do not line up their shares as they are.

## Step 3: look up full-year revenue by fiscal period

The denominator is full-year revenue for the same fiscal period. Current-year rows are divided by revenue for the current period (fiscal year ended March 2026), and prior-year rows by revenue for the period 12 months earlier (fiscal year ended March 2025).

```js
// 12 months before "2026-03" is "2025-03"
function addMonths(fiscalPeriod, months) {
  const [y, m] = fiscalPeriod.split("-").map(Number);
  const d = new Date(Date.UTC(y, m - 1 + months, 1));
  return `${d.getUTCFullYear()}-${String(d.getUTCMonth() + 1).padStart(2, "0")}`;
}

// Full-year (FY) revenue, looked up by fiscal period
function revenueByPeriod(income) {
  const map = new Map();
  for (const r of income) if (r.period === "FY" && Number.isFinite(r.revenue)) map.set(r.fiscalPeriod, r.revenue);
  return map;
}
```

`revenue` is the headline figure the company reports first; for IFRS filers it is revenue under IFRS. Results for the five companies (million yen):

| Company | 2024-03 | 2025-03 | 2026-03 |
|---|---:|---:|---:|
| Denso | 7,144,733 | 7,161,777 | 7,539,975 |
| Aisin | 4,909,557 | 4,896,104 | 5,117,764 |
| Toyota Boshoku | 1,953,625 | 1,954,218 | 2,037,063 |
| Musashi Seimitsu | 349,917 | 347,196 | 347,200 |
| F.C.C. | 240,283 | 256,619 | 260,836 |

## Step 4: add a share to each customer row

For each customer row, map the period to a fiscal period and divide by revenue for that period.

```js
// Add each customer's share of full-year revenue for the same fiscal period
function customerRows(report, income) {
  const target = { current: report.fiscalPeriod, prior: addMonths(report.fiscalPeriod, -12) };
  const revenue = revenueByPeriod(income);
  return report.customers.map((c) => {
    const fiscalPeriod = target[c.period] ?? null;
    const base = fiscalPeriod ? revenue.get(fiscalPeriod) ?? null : null;
    const amount = Number.isFinite(c.revenue) ? c.revenue : null;
    const share = amount !== null && base > 0 ? amount / base : null;
    const row = { period: c.period, fiscalPeriod, customer: c.customer, customerEn: c.customerEn ?? null, notes: c.notes ?? [], segment: c.segment, amount, revenue: base, share };
    if (share !== null && share > 1) return { ...row, amount: null, share: null, reason: "exceeds revenue (check the unit in the filing)" };
    if (share === null) return { ...row, reason: base === null ? "no revenue for the same period" : "no amount" };
    return { ...row, reason: null };
  });
}
```

Three rules apply:

- Current-year rows are divided by full-year revenue for the same fiscal period; prior-year rows by revenue for the period 12 months earlier.
- If there is no revenue for that period, the row is not divided (a company that changed its fiscal year end, a period before listing, and so on).
- A share above 100% suggests the unit does not match the filing, so neither the amount nor the share is shown.

The results for all five are in "Results" below. For example, Toyota Boshoku's current year is 1,489,792 million yen ÷ 2,037,063 million yen = 73.1%.

## Step 5: count the row shapes

Customer rows include unnamed rows, current-only and prior-only rows, and rows below 10%. Count them before comparing.

```js
// Count the row shapes: unnamed rows, current only, prior only, below 10%
function rowShapes(rows) {
  const label = (r) => r.customer ?? r.notes.join(" ");
  const cur = new Set(rows.filter((r) => r.period === "current").map(label));
  const pri = new Set(rows.filter((r) => r.period === "prior").map(label));
  return {
    current: cur.size, prior: pri.size,
    unnamed: rows.filter((r) => r.customer === null).length,
    currentOnly: [...cur].filter((n) => !pri.has(n)),
    priorOnly: [...pri].filter((n) => !cur.has(n)),
    below10: rows.filter((r) => r.share !== null && r.share < 0.1).map((r) => `${label(r)}(${r.period})`),
  };
}
```

| Company | Customers, current | Customers, prior | Unnamed | Current only | Prior only | Rows below 10% |
|---|---:|---:|---:|---|---|---|
| Denso | 1 | 1 | 0 | — | — | — |
| Aisin | 1 | 1 | 0 | — | — | — |
| Toyota Boshoku | 1 | 1 | 0 | — | — | — |
| Musashi Seimitsu | 1 | 0 | 0 | 本田技研工業株式会社 (Honda Motor Co., Ltd.) | — | 本田技研工業株式会社 (current) |
| F.C.C. | 3 | 3 | 0 | — | — | ゼネラルモーターズ (General Motors), prior and current |

Musashi Seimitsu has no prior-year row. The Japanese-GAAP notes table covers the current year only; prior-year rows are added only when the sales table's current-year customers and amounts match the notes (and then `priorSourceTag` is set). Musashi Seimitsu's current-year share is 6.3%, below 10%. F.C.C.'s General Motors is also below 10% once divided by revenue: 9.3% (prior) and 9.2% (current). The API returns the rows in the notes as filed and does not cut them at 10%.

## Step 6: normalize customer names and compare

The five companies' customers split into the Toyota side and the Honda side. It is tempting to group them by customer, but each filer writes the name differently. Try the key from part 3.

```js
// Name key (same as part 3 of this series)
function companyKey(name) {
  return String(name ?? "").normalize("NFKC")
    .replace(/株式会社|\(株\)/g, "")
    .replace(/[\s・,.、]/g, "")
    .toUpperCase();
}
```

```text
6902 トヨタグループ -> トヨタグループ
7259 トヨタ自動車㈱及びそのグループ会社 -> トヨタ自動車及びそのグループ会社
3116 トヨタ自動車（株）グループ -> トヨタ自動車グループ
7220 本田技研工業株式会社 -> 本田技研工業
7296 本田技研工業㈱及び同グループ -> 本田技研工業及び同グループ
7296 Ford及び同グループ -> FORD及び同グループ
7296 ゼネラルモーターズ -> ゼネラルモーターズ
```

Even after the key, the three Toyota names and the two Honda names stay different. "Group" (グループ), "and its group companies" (及びそのグループ会社) and "and its group" (及び同グループ) are not spelling variants; they describe different scopes. 本田技研工業株式会社 is Honda Motor Co., Ltd. alone, while 本田技研工業㈱及び同グループ includes its group companies. To total by customer, use your own mapping table rather than automatic name matching. `customerEn` is machine-translated and does not settle the scope either.

## Step 7: print and line them up

Finally, call the functions above and print the results.

```js
const mil = (v) => (v === null || v === undefined ? "—" : Math.round(v / 1e6).toLocaleString("en-US")); // million yen
const pct = (v) => (v === null || v === undefined ? "—" : `${(v * 100).toFixed(1)}%`);

// Object.keys sorts numeric keys, so keep the order in an array
const symbols = process.argv.length > 2 ? process.argv.slice(2) : ["6902", "7259", "3116", "7220", "7296"];
const companies = [];
for (const s of symbols) { companies.push(await fetchCompany(s)); await sleep(1000); }

console.log("## Source and row shapes");
for (const c of companies) {
  if (!c.report) { console.log(c.symbol, "404", c.notFound.reason ?? "", c.notFound.reasonDetail ?? ""); continue; }
  const k = rowShapes(customerRows(c.report, c.income));
  console.log(c.symbol, c.report.fiscalPeriod, c.report.docId, customerSource(c.report.sourceTag),
    c.report.priorSourceTag ? "prior year from the sales table" : "",
    `current ${k.current} / prior ${k.prior} / unnamed ${k.unnamed}`,
    `current only [${k.currentOnly.join(", ")}] prior only [${k.priorOnly.join(", ")}] below 10% [${k.below10.join(", ")}]`);
}

console.log("\n## Full-year revenue (million yen)");
for (const c of companies) console.log(c.symbol, [...revenueByPeriod(c.income)].map(([p, v]) => `${p} ${mil(v)}`).join(" / "));

console.log("\n## Customers and share (million yen)");
for (const c of companies.filter((x) => x.report)) {
  for (const r of customerRows(c.report, c.income)) {
    console.log(c.symbol, r.period, r.fiscalPeriod, r.customer ?? `(no name: ${r.notes.join(" ")})`, `(${r.customerEn ?? "—"})`,
      mil(r.amount), "/", mil(r.revenue), "=", pct(r.share), r.reason ?? "");
  }
}

console.log("\n## Name keys");
const seen = new Set();
for (const c of companies.filter((x) => x.report)) {
  for (const r of c.report.customers) {
    if (r.customer === null || seen.has(r.customer)) continue;
    seen.add(r.customer);
    console.log(c.symbol, r.customer, "->", companyKey(r.customer));
  }
}
```

Run `ZENITH_API_KEY=... node main-customers.mjs` for the five companies, or pass securities codes such as `node main-customers.mjs 7282 6995` to run it for others. Each company takes 1 or 2 calls (only the `main-customers` call when there are no customer rows).

The customer lines for Musashi Seimitsu and F.C.C. from the output:

```text
7220 current 2026-03 本田技研工業株式会社 (HONDA MOTOR CO., LTD.) 21,931 / 347,200 = 6.3%
7296 prior 2025-03 本田技研工業㈱及び同グループ (Honda Motor Co., Ltd. and its group) 94,933 / 256,619 = 37.0%
7296 current 2026-03 本田技研工業㈱及び同グループ (Honda Motor Co., Ltd. and its group) 92,676 / 260,836 = 35.5%
7296 prior 2025-03 Ford及び同グループ (Ford and its group) 51,659 / 256,619 = 20.1%
7296 current 2026-03 Ford及び同グループ (Ford and its group) 52,574 / 260,836 = 20.2%
7296 prior 2025-03 ゼネラルモーターズ (General Motors) 23,747 / 256,619 = 9.3%
7296 current 2026-03 ゼネラルモーターズ (General Motors) 24,089 / 260,836 = 9.2%
```

## Results

Customers of the five companies and their share of revenue. Amounts are in million yen; shares are of revenue (revenue under IFRS for IFRS filers).

| Company | Customer (as filed) | Related segments | Prior | Current | Share (prior → current) |
|---|---|---|---:|---:|---|
| Denso | トヨタグループ (Toyota Group) | Japan, North America, Europe, Asia, Other | 3,903,121 | 4,134,582 | 54.5% → 54.8% |
| Aisin | トヨタ自動車㈱及びそのグループ会社 (Toyota Motor Corporation and its group companies) | — | 2,870,025 | 3,112,449 | 58.6% → 60.8% |
| Toyota Boshoku | トヨタ自動車（株）グループ (Toyota Motor Corporation Group) | Japan, the Americas, China, Asia, Europe and Africa | 1,422,366 | 1,489,792 | 72.8% → 73.1% |
| Musashi Seimitsu | 本田技研工業株式会社 (Honda Motor Co., Ltd.) | Japan | — | 21,931 | — → 6.3% |
| F.C.C. | 本田技研工業㈱及び同グループ (Honda Motor Co., Ltd. and its group) | Motorcycle Business, Automobile Business | 94,933 | 92,676 | 37.0% → 35.5% |
| F.C.C. | Ford及び同グループ (Ford and its group) | Automobile Business | 51,659 | 52,574 | 20.1% → 20.2% |
| F.C.C. | ゼネラルモーターズ (General Motors) | Automobile Business | 23,747 | 24,089 | 9.3% → 9.2% |

From this table alone, Musashi Seimitsu's share of sales to Honda looks small. But its customer is Honda Motor Co., Ltd. alone, while the other four include group companies. These figures cover different scopes, so read the notes below before comparing.

## Before you trust the numbers

Major customer figures have points that make comparisons go wrong if you do not know the definitions.

### Customer scope

- **The scope of a customer differs by company.** Some write the customer and its group companies as one row (トヨタグループ, 及び同グループ); others name a single company (本田技研工業株式会社). Do not compare shares with different scopes as they are.
- **A share including group companies may be written elsewhere.** In the business risks section of the annual report, some companies state how much they depend on a particular customer. The scope can differ from the notes, so check it in the original. The text is available from [`/stable/text-blocks`](https://zenithcode.net/en/docs/text-blocks).

### The notes and the sales table

- **The same annual report can give different figures depending on the table.** Some companies include group companies in the notes, while the sales table has one row per company. `main-customers` reads the notes first. Check `sourceTag` to see which was read.
- **The Japanese-GAAP notes cover the current year only.** Prior-year rows are added only when the sales table's current-year customers and amounts match the notes; `priorSourceTag` is then set, and `segment` on prior-year rows is null.

### Rows below 10% and prior-only rows

- **Rows below 10% are returned too.** Rows in the notes are returned as filed and not cut at 10% (F.C.C.'s General Motors).
- **A prior-only row may be a customer that fell below 10% this year.** The current-year column in the original shows a dash or "not applicable". A missing current-year row alone does not mean the business ended.
- **One customer's per-segment rows are merged into one row.** Where the original splits a customer into rows by related segment, the amounts are added into one row and `segment` joins them with 、 (F.C.C.'s motorcycle and automobile businesses). Read the per-segment amounts in the original note.

### What revenue means

- **The denominator is `revenue` from the income statement.** For IFRS filers it is revenue under IFRS. If a company's note uses a different measure (operating revenue, ordinary income and so on), the share may not match.
- **Banks report ordinary income (*keijo shueki*) instead of sales.** Their customer amounts are against ordinary income as well, so use ordinary income as the denominator. When `revenue` is empty for a period, this code does not compute a share ("no revenue for the same period").

## Asking an AI assistant for a summary

If you ask an assistant to summarize figures with different scopes side by side, it tends to call dependence "high" or "low" from the numbers alone. Give it only the sources and the original text of the notes, and ask it to spell out the scope.

```text
The text below is the original wording of the major customers note in Japanese annual securities reports. Each company's document ID is the source (Denso S100Y9T1, Aisin S100YAWO, Toyota Boshoku S100Y9AH, Musashi Seimitsu S100YGX6, F.C.C. S100YFKQ).

- For each company, tabulate the customer names, their scope (that company alone, or including group companies) and the current and prior amounts.
- Mark companies whose scope differs from the others.
- Do not calculate or guess shares or amounts that are not written. Write "check the original" for anything the text does not say.
- Do not comment on whether a business relationship is good or bad, or on future business.

(paste each company's original note here)
```

Pass the shares computed in Step 4 separately. Keeping the division out of the assistant's hands makes the figures easier to check.

## Troubleshooting

| Symptom | Where to look |
|---|---|
| `main-customers` returns 404 | It does not always mean "no dependence". Besides companies that list no customer above 10% of revenue, companies without an annual report yet (newly listed and so on) and companies that state the amount only as a range also return 404. Check the major customers section in the original |
| The 404 body has a `reason` | `amount_range_only` means the amount is given only as a range (e.g. 4,701-9,403 million yen) and cannot be one number. `reasonDetail` carries the original range |
| A row has `customer` = null | The original gives no customer name: a customer group disclosed without a name ("one group") or a total for two or more customers. The reason is in `notes`; amount, period and segment are as filed |
| No share ("no revenue for the same period") | A row for a period before listing, a company that changed its fiscal year end, or an empty `revenue` on the income statement. The amount is still shown as filed |
| Only a prior-year row, no current-year row | The customer fell below 10% this year. Check the current-year column in the original |
| A share above 100% is not shown | The unit may not match the filing. Check the unit (thousand or million yen) in the original |
| The same customer does not line up across companies | Names are as filed. "Group" or not is a difference in scope. Group them with your own mapping table |

## Related links

- [Main customers (`/docs/main-customers`)](https://zenithcode.net/en/docs/main-customers)
- [Income statement (`/docs/income-statement`)](https://zenithcode.net/en/docs/income-statement)
- [Annual report text sections (`/docs/text-blocks`)](https://zenithcode.net/en/docs/text-blocks)
- [Segment information (`/docs/segments`)](https://zenithcode.net/en/docs/segments)
- [Compare cross-shareholdings of Japanese companies (part 3)](https://zenithcode.net/en/docs/cookbook/applied/deep-cross-holdings)
- [Compare shareholder structures of Japanese companies (part 2)](https://zenithcode.net/en/docs/cookbook/applied/deep-shareholders)
- [Differences between accounting standards (Learn)](https://zenithcode.net/en/learn/accounting-standards)
- [EDINET XBRL guide (Learn)](https://zenithcode.net/en/learn/edinet-xbrl)
- [Display rules](https://zenithcode.net/en/docs/display-rights)
- [Sample code repository (disclosure reader template)](https://github.com/Crab-grass/zenith-code-examples/tree/main/templates/disclosure-reader)

A Japanese series with screenshots is on [Qiita](https://qiita.com/Sohei-Taniguchi-CG/items/415dfe6d7902ef6daed7).

---
Page: https://zenithcode.net/en/docs/cookbook/applied/deep-main-customers
日本語: https://zenithcode.net/docs/cookbook/applied/deep-main-customers.md
Site guide for AI tools: https://zenithcode.net/llms.txt
