---
title: "Read an assigned client's revenue product tags and Stripe product mappings"
method: GET
path: "/accountant/companies/{customerId}/revenue-products"
tags: ["Accountant Portal"]
---

# Read an assigned client's revenue product tags and Stripe product mappings

`GET /accountant/companies/{customerId}/revenue-products`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/revenue-products`
- Auth: HTTP bearer

Revenue by product (#2637, J-364). `accounts` are the client's revenue accounts that may carry a product key (operating, credit-normal, not refunds/discounts), with their current key. `stripeMappings` map Stripe product ids to product accounts (many to one). `history` is the append-only audit trail, newest first (who, when, old, new, reason). Human accountants only; hidden from the service key.

## Response `200`

Product accounts, Stripe product mappings and their history

- object
  - `success` true, required
  - `data` RevenueProducts, required
    - `accounts` object[], required
      - `glAccountId` string, uuid, required
      - `code` string, required
      - `name` string, required
      - `productKey` string, nullable, required
      - `isActive` boolean, required
    - `stripeMappings` object[], required
      - `companyId` string, uuid, required
      - `stripeProductId` string, required
      - `glAccountId` string, uuid, required
      - `updatedByUserId` string, uuid, nullable, required
      - `updatedAt` string, date-time, required
    - `history` RevenueProductMappingEvent[], required: Newest first, at most 100.
      - `id` string, uuid, required
      - `companyId` string, uuid, required
      - `subject` 'account_product_key' | 'stripe_product', required
      - `glAccountId` string, uuid, nullable, required: The tagged account (account_product_key).
      - `stripeProductId` string, nullable, required: The mapped Stripe product (stripe_product).
      - `oldValue` string, nullable, required: account_product_key — the product key; stripe_product — the GL account id.
      - `newValue` string, nullable, required
      - `reason` string, required
      - `actorUserId` string, uuid, nullable, required
      - `actorEmail` string, nullable, required
      - `createdAt` string, date-time, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) · [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) · [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/20090ea32b0d?raw)
