# Reports and exports

> Every night ReleaseAPI pulls yesterday’s streams from the stores, estimates what they earned and matches them to your catalog. This page covers how that daily data arrives, the raw trend reports you can download, and the CSV exports you can order over any slice of trends or statements.

Source: https://docs.releaseapi.com/reports.html

**At a glance**

- Each store account gets one **daily import** per day. It is created at 03:00 UTC and retried 12 hours later if the store hasn’t published yet.
- Streams from day D usually arrive between D+1 and D+3.
- Rows **add up** across imports: a day’s figure is the sum of its rows over every import. Never overwrite one import’s rows with another’s.
- Money is an *estimate* (streams × average rate). Only statements are paid.
- A re-run replaces a day’s reports with new ids and sends no tenant event. There is at most one report per tenant, day, provider and type.
- **Exports** are CSV files you order over any slice of trends or statements. They run in the background, need `REPORTING_WRITE`, can cost money for the data they scan, and are kept until they expire or you delete them.

For every connected store reporting account, a daily import downloads the store’s files, turns them into a common row format, matches rows to releases and tracks, applies fees and wallet shares, and writes **reports**. Analytics picks them up within minutes.

> **As a tenant, you only read:** Under RecordJet, RecordJet connects the store accounts and runs the imports. You read [analytics](https://docs.releaseapi.com/analytics.html), [raw reports](https://docs.releaseapi.com/reports.html#raw-reports) and [exports](https://docs.releaseapi.com/reports.html#exports).

## Daily trends: how they arrive

Each connected store account gets one import per day, and each import moves through four statuses:

*One daily import:* `OPEN` (Created at 03:00 UTC for yesterday) → `PROCESSING` (Downloading and matching) → one of: `SUCCESS` (Reports written) | `ERROR` (Inspect and retry)

1. **Every night at 03:00 UTC**, ReleaseAPI creates an import for *yesterday* for every active store configuration that doesn’t have one yet.
2. Within a minute a worker picks it up and the import moves to `PROCESSING`.
3. Stores often publish late. If the store hasn’t published that day yet, the import goes back to `OPEN` and tries again **12 hours later**.
4. On success, the import writes its reports and moves to `SUCCESS`. Analytics daily series update within minutes. Summaries refresh around 01:00 UTC the next day.
5. If the work fails, or is still running after **6 hours**, the import moves to `ERROR`.

*Diagram: Day D's streams are imported from 03:00 UTC on the next day. A late store sends the import back to OPEN until the retry 12 hours later. Summaries refresh at 01:00 UTC the day after.* For a typical late store, the 03:00 try finds nothing and the retry 12 hours later picks the day up. Stores that publish on time succeed on the first try, while others take until D+3.

In practice, streams from day D are usually available between D+1 and D+3, depending on the store. An import’s `reportedAt` is the day it covers. Its rows carry their own `soldAt`, the day of the stream.

### Rows add up across imports

Each row is a fact the store reported once. A later import never restates an earlier one. Extra streams for an earlier day arrive as *new* rows with the earlier `soldAt`, and a day’s figure is the sum of its rows over every import.

| Import (`reported_at`) | Row | Streams for 1 March so far |
| --- | --- | --- |
| `2026-03-01` | `sold_at 2026-03-01`, quantity 1,200 | 1,200 |
| `2026-03-03` | `sold_at 2026-03-01`, quantity 80 | 1,280 |

*Diagram: Streams sold on 1 March: 1,200 from the 1 March import plus 80 from the 3 March import, 1,280 in total.* The figure for a day is the sum of its rows across imports. Nothing in the first import is changed by the second.

“Streams on 1 March as known on 2 March” is the sum over imports with `reported_at ≤ 2026-03-02`: 1,200. This is exactly what [`reportedAsOf`](https://docs.releaseapi.com/analytics.html#two-dates) does in analytics. In a warehouse, append rows per import and aggregate by `sold_at`. Never overwrite one day’s figure with a later import’s.

How far back a store reports varies. Some feeds only report the day they cover, while others send late rows for days or weeks. Measure `max(reported_at − sold_at)` per `reporting_provider` on your data and size your reload window from it.

- **Day boundaries are the store’s.** `sold_at` is the day as the store reports it, and ReleaseAPI doesn’t convert it. Feeds differ: Apple’s sales files, for example, date downloads in Pacific time. Expect a few hours of offset at day boundaries when you join trends to your own UTC events.
- **Unmatched rows are dropped.** A row whose GTIN or ISRC matches no release or video in the ledger doesn’t appear in any tenant report. It stays only in the client-level files, so register every release before its streams start if you want them counted.

### How estimates work

Most stores’ daily data has streams but no money. ReleaseAPI estimates it as *streams × an average per-stream rate* for that store and listener country, derived from past statements, then applies fees and share rules.

- **Fees by stream day.** Estimates use the ledger in force on `sold_at`, while statements use the month the money is *booked* ([Which month counts](https://docs.releaseapi.com/royalties.html#which-month)). Around a fee change the two differ by design.
- **Fixed once imported.** An estimate changes only if its day is re-run.
- **Only an indication.** Estimates are good for trends and early expectations, but a single track or month can be well off, and only statements are paid.

> **Nothing runs automatically on sandbox:** Sandbox never creates daily imports on its own, so a sandbox tenant normally has no trend data. Your RecordJet contact provides sample report files. Build your parsers against those and the [column tables](https://docs.releaseapi.com/reports.html#processed-columns), test charts against empty series, then point both at production with a `READER` key.

## Raw reports

Every successful import writes Parquet files that hold the full-fidelity data, one row per store line. Load them into your warehouse when analytics and exports aren’t enough.

| Report type | Scope | What’s in it |
| --- | --- | --- |
| `TRENDS_RAW_*` | Client | The store’s files, unchanged, for example `TRENDS_RAW_SPOTIFY_STREAMS`. |
| `TRENDS_PREPROCESSED` | Client | Every store’s rows in one common format, not yet matched to tenants. |
| `TRENDS_PROCESSED` | Tenant | Rows matched to release, track and customer, with estimated revenue at client, tenant and customer level. |
| `TRENDS_SPLIT` | Tenant | One row per wallet share, with `wallet_id`, `share_per_mio` and `estimated_revenue_wallet`. As in statements, the other money columns on these rows are the whole row’s, not the wallet’s. |
| `TRENDS_SPOTIFY_SKIP_SAVE` | Tenant | Spotify streams, skips and saves per track. |
| `TRENDS_PLAYS_PER_TRACK`, `…_CUSTOMER`, `…_WALLET`, `…_VIDEO` | Tenant | Daily totals, the same numbers analytics serves. |
| `TRENDS_PLAYS_BREAKDOWN`, `…_PER_WALLET` | Tenant | Daily totals per track or video, broken down by country, device, source, playlist and more. See [Breakdown reports](https://docs.releaseapi.com/reports.html#breakdown-reports). |

Client-scoped reports have no `tenantId`, so tenant keys can’t see them. A tenant key lists only its own tenant’s reports. The full list of types is at `GET /v1/core/data/trends-report-types`.

The list takes `provider`, `reportType`, and `dateFrom` / `dateTo`, which filter on `reportedAt`. It returns the newest first (`createdAt`, descending) unless you pass `sortBy` and `sortOrder`. A tenant with at least one release or video in the ledger gets a report of each type for every import, even when it has no rows that day (`metaData.recordCount: 0`).

The cURL examples on this page use `$BASE` for `https://api-sandbox.releaseapi.com/v1` and `$RELEASEAPI_KEY` for your key, as set up in the [Quickstart](https://docs.releaseapi.com/quickstart.html#before-you-start).

`GET /v1/reporting/trends/reports`

**cURL**

```bash
curl -G "$BASE/reporting/trends/reports" \
  --data-urlencode "provider=SPOTIFY" \
  --data-urlencode "reportType=TRENDS_PROCESSED" \
  --data-urlencode "dateFrom=2026-03-01" \
  --data-urlencode "dateTo=2026-03-01" \
  -H "X-API-KEY: $RELEASEAPI_KEY"
```

**Response**

```json
{
  "items": [
    {
      "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
      "tenantId": "b55ec853-f63b-4cb3-9c2f-868b4eb42f95",
      "reportedAt": "2026-03-01",
      "reportingProvider": "SPOTIFY",
      "reportType": "TRENDS_PROCESSED",
      "metaData": {
        "recordCount": 184220,
        "eTag": "22867210c86707418746b1a44e1a709c",
        "sizeBytes": 9311744
      },
      "id": "a9d24c71-0e8b-4f36-b2d5-7c1e9a3f0b68",
      "createdAt": "2026-03-02T11:40:10Z"
    }
  ],
  "hasMore": false,
  "limit": 100,
  "offset": 0
}
```

Then fetch a download link. The URL is signed and valid for 24 hours, so request it right before you download and don’t store it.

`GET /v1/reporting/trends/reports/{reportId}/download/parquet`

```bash
URL=$(curl -s "$BASE/reporting/trends/reports/$REPORT_ID/download/parquet" \
  -H "X-API-KEY: $RELEASEAPI_KEY" | jq -r .url)
curl -o spotify-2026-03-01.parquet "$URL"
```

### Re-runs and report identity

When a store corrects its files, RecordJet re-runs the day. The re-run **replaces** every report of that provider and day with new ids and a new `createdAt`. The old ones disappear. A tenant key gets no event.

- **Natural key.** At any time there is at most one report per `(tenantId, reportedAt, reportingProvider, reportType)`, because a client has one store configuration per provider. Load each file into a partition keyed by those four values and overwrite the partition when a report with a newer `createdAt` appears for it. This replaces only the re-run day’s own rows. Rows that other days’ imports added for the same sold dates stay.
- **Find what’s new.** List reports sorted by `createdAt` descending (the default) and stop at the newest `createdAt` you loaded last time. This finds both new days and re-runs, however old the re-run day is.
- **Skip unchanged files.** `metaData.eTag` identifies the file’s content. A re-run that didn’t change the data keeps the same eTag, so you can skip the download.
- **Keep the files you load.** Daily analytics series reach back 370 days, so for longer history, rely on the report files in your warehouse.

### Report columns

Column names are `snake_case`. Money is a 64-bit integer in nano-euros, `sold_at` and `reported_at` are Parquet `DATE` values, ids are UUID strings and enums are their API codes in upper snake case. Optional columns depend on the store: Spotify, for example, sends device, source and discovery data, and Apple sends demographics. As with statements, the files declare most columns `OPTIONAL`, so use the “Null” column to see which ones can actually be empty. New columns can appear over time, so read columns by name, never by position.

**`TRENDS_PROCESSED` · 51 columns**

One row per store row, matched and estimated.

| Column | Parquet type | Null | Notes |
| --- | --- | --- | --- |
| `client_id` | STRING (UUID) | no | Your RecordJet or client account. |
| `tenant_id` | STRING (UUID) | no | Your tenant. |
| `customer_id` | STRING (UUID) | no | The release’s or video’s **owner**, not the wallet’s customer. |
| `reporting_provider` | STRING (enum) | no | The reporting feed the row came from. |
| `reported_at` | DATE | no | The day the import covers. |
| `report_row` | INT64 | no | Position of the row in the store’s file. With `reported_at` and `reporting_provider` it identifies a source row. |
| `report_sub_row` | INT32 | yes | Set when a bundle line was divided across tracks: `(volume − 1) × 1000 + track number`. |
| `sold_at` | DATE | no | The day of the stream, as the store reports it. |
| `daytime` | STRING | yes | Time of day of the stream, when the store sends it. |
| `daytime_offset` | STRING | yes | Offset of `daytime`, when the store sends it. |
| `provider_track_id` | STRING | yes | The store’s own id for the track. |
| `user_id` | STRING | yes | The store’s anonymous listener id, when the store sends one. |
| `release_id` | STRING (UUID) | yes | What the row matched. Empty on video rows. |
| `track_id` | STRING (UUID) | yes | What the row matched. Empty on video rows. |
| `video_id` | STRING (UUID) | yes | Set on video rows only. |
| `gtin` | STRING | no | As resolved; a bundle line gets the release’s GTIN on every track row. |
| `isrc` | STRING | no | As resolved; a bundle line gets each track’s ISRC. |
| `purchase_type` | STRING (enum) | no | `STREAM`, `DOWNLOAD`, `PHYSICAL`, `NEIGHBOURING`, `PUBLISHING` or `RECOGNITION`. |
| `media_type` | STRING (enum) | no | `AUDIO` or `VIDEO`. |
| `transaction_type` | STRING (enum) | no | `GENERIC`, `AD_SUPPORTED`, `SUBSCRIPTION`, `TRIAL`, `FAMILY`, `EDUCATION`, `DISCOUNTED`, `REFUND`, `PREORDER`, `UNPAID`, `FEE` or `CORRECTION`. |
| `store` | STRING (enum) | no | Reporting store code (the company), from `/v1/core/data/reporting-stores`. |
| `service` | STRING (enum) | no | Reporting service code (the product), from `/v1/core/data/reporting-services`. |
| `channel` | STRING | yes | Free text from the store, when it sends one. |
| `country` | STRING (enum) | no | ISO 3166 alpha-2. `ZZ` when the store’s country is unknown. |
| `quantity` | INT64 | no | Streams or units. A bundle line repeats its quantity on every track row. |
| `estimated_revenue_client` | INT64 (nano-EUR) | no | Estimated, before any fee. |
| `estimated_revenue_tenant` | INT64 (nano-EUR) | no | Estimated, after the client fee. |
| `estimated_revenue_customer` | INT64 (nano-EUR) | no | Estimated, after both fees. |
| `estimated_revenue_currency` | STRING | no | Always `EUR`. |
| `client_fee_percentage` | DECIMAL(38,18) | no | The fee applied, as an exact decimal. |
| `tenant_fee_percentage` | DECIMAL(38,18) | no | The fee applied, as an exact decimal. |
| `client_fee_per_mio` | INT32 | yes | The same fee per million, rounded half-up (15% is `150000`). |
| `tenant_fee_per_mio` | INT32 | yes | The same fee per million, rounded half-up. |
| `play_duration` | INT32 | yes | Seconds played, when the store sends it. |
| `source` | STRING | yes | Why the stream started, as the store names it. |
| `container_type` | STRING | yes | What kind of context it played from (playlist, album, …), as the store names it. |
| `container_uri` | STRING | yes | The store’s link to that context, for example a Spotify playlist URI. |
| `device_type` | STRING (enum) | yes | `AUTOMOTIVE`, `MOBILE`, `TABLET`, `PC`, `DEVICE`, `WEARABLE`, `CONSOLE`, `SMART_TV` or `OTHER`. |
| `device_ecosystem` | STRING (enum) | yes | `ANDROID`, `APPLE`, `MICROSOFT`, `LINUX`, `WEB` or `OTHER`. |
| `cached` | BOOLEAN | yes | Played from an offline download. |
| `shuffle` | BOOLEAN | yes | Played in shuffle mode. |
| `repeat_play` | BOOLEAN | yes | Played on repeat. |
| `end_reason_type` | STRING (enum) | yes | `COMPLETE`, `SKIP`, `MANUALLY_CHANGED`, `PAUSED` or `OTHER`. |
| `discovery_flag` | BOOLEAN | yes | The listener streamed the track for the first time, when the store sends it. |
| `audio_quality` | STRING (enum) | yes | `COMPRESSED`, `LOSSLESS` or `IMMERSIVE`. |
| `different_listener_country` | STRING (enum) | yes | Set only when the listener’s country differs from `country`. |
| `gender` | STRING (enum) | yes | `MALE`, `FEMALE` or `OTHER`. |
| `age_group` | STRING | yes | As the store reports it, for example `25-34`. |
| `region` | STRING | yes | Region within the country, when the store sends it. |
| `geo_hash` | STRING | yes | Coarse location hash, when the store sends it. |
| `bundle_sale` | BOOLEAN | yes | The store line was a whole-release sale, divided across tracks. |

**`TRENDS_SPLIT` · 54 columns**

One row per store row and wallet share.

| Column | Parquet type | Null | Notes |
| --- | --- | --- | --- |
| `client_id` | STRING (UUID) | no | Your RecordJet or client account. |
| `tenant_id` | STRING (UUID) | no | Your tenant. |
| `customer_id` | STRING (UUID) | no | The release’s or video’s **owner**, not the wallet’s customer. |
| `wallet_id` | STRING (UUID) | no | The wallet this row’s share belongs to. |
| `share_per_mio` | INT32 | no | The wallet’s share of the track, per million. |
| `reporting_provider` | STRING (enum) | no | The reporting feed the row came from. |
| `reported_at` | DATE | no | The day the import covers. |
| `report_row` | INT64 | no | Position of the row in the store’s file. With `reported_at` and `reporting_provider` it identifies a source row. |
| `report_sub_row` | INT32 | yes | Set when a bundle line was divided across tracks: `(volume − 1) × 1000 + track number`. |
| `sold_at` | DATE | no | The day of the stream, as the store reports it. |
| `daytime` | STRING | yes | Time of day of the stream, when the store sends it. |
| `daytime_offset` | STRING | yes | Offset of `daytime`, when the store sends it. |
| `provider_track_id` | STRING | yes | The store’s own id for the track. |
| `user_id` | STRING | yes | The store’s anonymous listener id, when the store sends one. |
| `release_id` | STRING (UUID) | yes | What the row matched. Empty on video rows. |
| `track_id` | STRING (UUID) | yes | What the row matched. Empty on video rows. |
| `video_id` | STRING (UUID) | yes | Set on video rows only. |
| `gtin` | STRING | no | As resolved; a bundle line gets the release’s GTIN on every track row. |
| `isrc` | STRING | no | As resolved; a bundle line gets each track’s ISRC. |
| `purchase_type` | STRING (enum) | no | `STREAM`, `DOWNLOAD`, `PHYSICAL`, `NEIGHBOURING`, `PUBLISHING` or `RECOGNITION`. |
| `media_type` | STRING (enum) | no | `AUDIO` or `VIDEO`. |
| `transaction_type` | STRING (enum) | no | `GENERIC`, `AD_SUPPORTED`, `SUBSCRIPTION`, `TRIAL`, `FAMILY`, `EDUCATION`, `DISCOUNTED`, `REFUND`, `PREORDER`, `UNPAID`, `FEE` or `CORRECTION`. |
| `store` | STRING (enum) | no | Reporting store code (the company), from `/v1/core/data/reporting-stores`. |
| `service` | STRING (enum) | no | Reporting service code (the product), from `/v1/core/data/reporting-services`. |
| `channel` | STRING | yes | Free text from the store, when it sends one. |
| `country` | STRING (enum) | no | ISO 3166 alpha-2. `ZZ` when the store’s country is unknown. |
| `quantity` | INT64 | no | Streams or units. A bundle line repeats its quantity on every track row. |
| `estimated_revenue_client` | INT64 (nano-EUR) | no | Estimated, before any fee. |
| `estimated_revenue_tenant` | INT64 (nano-EUR) | no | Estimated, after the client fee. |
| `estimated_revenue_customer` | INT64 (nano-EUR) | no | Estimated, after both fees. |
| `estimated_revenue_wallet` | INT64 (nano-EUR) | no | This wallet’s part of the estimate. The only money column that belongs to the wallet. |
| `estimated_revenue_currency` | STRING | no | Always `EUR`. |
| `client_fee_percentage` | DECIMAL(38,18) | no | The fee applied, as an exact decimal. |
| `tenant_fee_percentage` | DECIMAL(38,18) | no | The fee applied, as an exact decimal. |
| `client_fee_per_mio` | INT32 | yes | The same fee per million, rounded half-up (15% is `150000`). |
| `tenant_fee_per_mio` | INT32 | yes | The same fee per million, rounded half-up. |
| `play_duration` | INT32 | yes | Seconds played, when the store sends it. |
| `source` | STRING | yes | Why the stream started, as the store names it. |
| `container_type` | STRING | yes | What kind of context it played from (playlist, album, …), as the store names it. |
| `container_uri` | STRING | yes | The store’s link to that context, for example a Spotify playlist URI. |
| `device_type` | STRING (enum) | yes | `AUTOMOTIVE`, `MOBILE`, `TABLET`, `PC`, `DEVICE`, `WEARABLE`, `CONSOLE`, `SMART_TV` or `OTHER`. |
| `device_ecosystem` | STRING (enum) | yes | `ANDROID`, `APPLE`, `MICROSOFT`, `LINUX`, `WEB` or `OTHER`. |
| `cached` | BOOLEAN | yes | Played from an offline download. |
| `shuffle` | BOOLEAN | yes | Played in shuffle mode. |
| `repeat_play` | BOOLEAN | yes | Played on repeat. |
| `end_reason_type` | STRING (enum) | yes | `COMPLETE`, `SKIP`, `MANUALLY_CHANGED`, `PAUSED` or `OTHER`. |
| `discovery_flag` | BOOLEAN | yes | The listener streamed the track for the first time, when the store sends it. |
| `audio_quality` | STRING (enum) | yes | `COMPRESSED`, `LOSSLESS` or `IMMERSIVE`. |
| `different_listener_country` | STRING (enum) | yes | Set only when the listener’s country differs from `country`. |
| `gender` | STRING (enum) | yes | `MALE`, `FEMALE` or `OTHER`. |
| `age_group` | STRING | yes | As the store reports it, for example `25-34`. |
| `region` | STRING | yes | Region within the country, when the store sends it. |
| `geo_hash` | STRING | yes | Coarse location hash, when the store sends it. |
| `bundle_sale` | BOOLEAN | yes | The store line was a whole-release sale, divided across tracks. |

**`TRENDS_PLAYS_PER_TRACK` · 10 columns**

Daily totals per track.

| Column | Parquet type | Null | Notes |
| --- | --- | --- | --- |
| `reported_at` | DATE | no | The day the import covers. |
| `tenant_id` | STRING (UUID) | no | Your tenant. |
| `service` | STRING (enum) | no | Reporting service code (the product), from `/v1/core/data/reporting-services`. |
| `sold_at` | DATE | no | The day of the stream, as the store reports it. |
| `release_id` | STRING (UUID) | no | Always set. This report holds track rows only; video money is in the `…_PLAYS_PER_VIDEO` report. |
| `track_id` | STRING (UUID) | no | Always set. This report holds track rows only; video money is in the `…_PLAYS_PER_VIDEO` report. |
| `total_quantity` | INT64 | no | Sum of `quantity`. Counts track units: a bundle line adds its quantity once per track, and wallet reports once per wallet as well. |
| `total_estimated_revenue_client` | INT64 (nano-EUR) | no | Estimated sum at client level. |
| `total_estimated_revenue_tenant` | INT64 (nano-EUR) | no | Estimated sum after the client fee. |
| `total_estimated_revenue_customer` | INT64 (nano-EUR) | no | Estimated sum after both fees. |

**`TRENDS_PLAYS_PER_CUSTOMER` · 9 columns**

Daily totals per owner customer.

| Column | Parquet type | Null | Notes |
| --- | --- | --- | --- |
| `reported_at` | DATE | no | The day the import covers. |
| `tenant_id` | STRING (UUID) | no | Your tenant. |
| `service` | STRING (enum) | no | Reporting service code (the product), from `/v1/core/data/reporting-services`. |
| `sold_at` | DATE | no | The day of the stream, as the store reports it. |
| `customer_id` | STRING (UUID) | no | The release’s or video’s **owner**, not the wallet’s customer. |
| `total_quantity` | INT64 | no | Sum of `quantity`. Counts track units: a bundle line adds its quantity once per track, and wallet reports once per wallet as well. |
| `total_estimated_revenue_client` | INT64 (nano-EUR) | no | Estimated sum at client level. |
| `total_estimated_revenue_tenant` | INT64 (nano-EUR) | no | Estimated sum after the client fee. |
| `total_estimated_revenue_customer` | INT64 (nano-EUR) | no | Estimated sum after both fees. |

**`TRENDS_PLAYS_PER_WALLET` · 10 columns**

Daily totals per wallet.

| Column | Parquet type | Null | Notes |
| --- | --- | --- | --- |
| `reported_at` | DATE | no | The day the import covers. |
| `tenant_id` | STRING (UUID) | no | Your tenant. |
| `service` | STRING (enum) | no | Reporting service code (the product), from `/v1/core/data/reporting-services`. |
| `sold_at` | DATE | no | The day of the stream, as the store reports it. |
| `wallet_id` | STRING (UUID) | no | The wallet this row’s share belongs to. |
| `total_quantity` | INT64 | no | Sum of `quantity`. Counts track units: a bundle line adds its quantity once per track, and wallet reports once per wallet as well. |
| `total_estimated_revenue_client` | INT64 (nano-EUR) | no | Estimated sum at client level. |
| `total_estimated_revenue_tenant` | INT64 (nano-EUR) | no | Estimated sum after the client fee. |
| `total_estimated_revenue_customer` | INT64 (nano-EUR) | no | Estimated sum after both fees. |
| `total_estimated_revenue_wallet` | INT64 (nano-EUR) | no | Estimated sum of the wallet’s own money. |

**`TRENDS_PLAYS_PER_VIDEO` · 9 columns**

Daily totals per video.

| Column | Parquet type | Null | Notes |
| --- | --- | --- | --- |
| `reported_at` | DATE | no | The day the import covers. |
| `tenant_id` | STRING (UUID) | no | Your tenant. |
| `service` | STRING (enum) | no | Reporting service code (the product), from `/v1/core/data/reporting-services`. |
| `sold_at` | DATE | no | The day of the stream, as the store reports it. |
| `video_id` | STRING (UUID) | no | Always set. This report holds video rows only. |
| `total_quantity` | INT64 | no | Sum of `quantity`. Counts track units: a bundle line adds its quantity once per track, and wallet reports once per wallet as well. |
| `total_estimated_revenue_client` | INT64 (nano-EUR) | no | Estimated sum at client level. |
| `total_estimated_revenue_tenant` | INT64 (nano-EUR) | no | Estimated sum after the client fee. |
| `total_estimated_revenue_customer` | INT64 (nano-EUR) | no | Estimated sum after both fees. |

**`TRENDS_PLAYS_BREAKDOWN` · 17 columns**

Daily totals per track or video, per dimension and value.

| Column | Parquet type | Null | Notes |
| --- | --- | --- | --- |
| `reported_at` | DATE | no | The day the import covers. |
| `tenant_id` | STRING (UUID) | no | Your tenant. |
| `customer_id` | STRING (UUID) | no | The release’s or video’s **owner**, not the wallet’s customer. |
| `release_id` | STRING (UUID) | yes | What the row matched. Empty on video rows. |
| `track_id` | STRING (UUID) | yes | What the row matched. Empty on video rows. |
| `video_id` | STRING (UUID) | yes | Set on video rows only. |
| `gtin` | STRING | no | As resolved; a bundle line gets the release’s GTIN on every track row. |
| `isrc` | STRING | no | As resolved; a bundle line gets each track’s ISRC. |
| `service` | STRING (enum) | no | Reporting service code (the product), from `/v1/core/data/reporting-services`. |
| `sold_at` | DATE | no | The day of the stream, as the store reports it. |
| `dimension` | STRING (enum) | no | What `value` breaks the key down by, for example `COUNTRY`; `TOTAL` for the key’s totals. New dimensions can appear: ignore the ones you don’t know. See [Breakdown reports](https://docs.releaseapi.com/reports.html#breakdown-reports). |
| `value` | STRING | yes | The dimension’s value. Null on `TOTAL` rows and when the store didn’t report it, so each dimension’s rows add up to `TOTAL`. |
| `total_quantity` | INT64 | no | Sum of `quantity`. Counts track units: a bundle line adds its quantity once per track, and wallet reports once per wallet as well. |
| `total_estimated_revenue_client` | INT64 (nano-EUR) | no | Estimated sum at client level. |
| `total_estimated_revenue_tenant` | INT64 (nano-EUR) | no | Estimated sum after the client fee. |
| `total_estimated_revenue_customer` | INT64 (nano-EUR) | no | Estimated sum after both fees. |
| `total_play_duration_seconds` | INT64 | yes | Sum of seconds played × quantity, over the streams that report a play duration. Null when none do. |

**`TRENDS_PLAYS_BREAKDOWN_PER_WALLET` · 19 columns**

Daily totals per wallet and track or video, per dimension and value.

| Column | Parquet type | Null | Notes |
| --- | --- | --- | --- |
| `reported_at` | DATE | no | The day the import covers. |
| `tenant_id` | STRING (UUID) | no | Your tenant. |
| `customer_id` | STRING (UUID) | no | The release’s or video’s **owner**, not the wallet’s customer. |
| `wallet_id` | STRING (UUID) | no | The wallet this row’s share belongs to. |
| `release_id` | STRING (UUID) | yes | What the row matched. Empty on video rows. |
| `track_id` | STRING (UUID) | yes | What the row matched. Empty on video rows. |
| `video_id` | STRING (UUID) | yes | Set on video rows only. |
| `gtin` | STRING | no | As resolved; a bundle line gets the release’s GTIN on every track row. |
| `isrc` | STRING | no | As resolved; a bundle line gets each track’s ISRC. |
| `service` | STRING (enum) | no | Reporting service code (the product), from `/v1/core/data/reporting-services`. |
| `sold_at` | DATE | no | The day of the stream, as the store reports it. |
| `dimension` | STRING (enum) | no | What `value` breaks the key down by, for example `COUNTRY`; `TOTAL` for the key’s totals. New dimensions can appear: ignore the ones you don’t know. See [Breakdown reports](https://docs.releaseapi.com/reports.html#breakdown-reports). |
| `value` | STRING | yes | The dimension’s value. Null on `TOTAL` rows and when the store didn’t report it, so each dimension’s rows add up to `TOTAL`. |
| `total_quantity` | INT64 | no | Sum of `quantity`. Counts track units: a bundle line adds its quantity once per track, and wallet reports once per wallet as well. |
| `total_estimated_revenue_client` | INT64 (nano-EUR) | no | Estimated sum at client level. |
| `total_estimated_revenue_tenant` | INT64 (nano-EUR) | no | Estimated sum after the client fee. |
| `total_estimated_revenue_customer` | INT64 (nano-EUR) | no | Estimated sum after both fees. |
| `total_estimated_revenue_wallet` | INT64 (nano-EUR) | no | Estimated sum of the wallet’s own money. |
| `total_play_duration_seconds` | INT64 | yes | Sum of seconds played × quantity, over the streams that report a play duration. Null when none do. |

**`TRENDS_SPOTIFY_SKIP_SAVE` · 6 columns**

Spotify streams, skips and saves per track.

| Column | Parquet type | Null | Notes |
| --- | --- | --- | --- |
| `reported_at` | DATE | no | The day the import covers. |
| `tenant_id` | STRING (UUID) | no | Your tenant. |
| `track_id` | STRING (UUID) | no | Always set. This report holds track rows only; video money is in the `…_PLAYS_PER_VIDEO` report. |
| `streams` | INT32 | no | Spotify streams of the track that day. |
| `skips` | INT32 | no | Spotify skips. |
| `saves` | INT32 | no | Spotify saves to a library. |

> **Wallet rows repeat the whole row:** In `TRENDS_SPLIT`, `TRENDS_PLAYS_PER_WALLET` and `TRENDS_PLAYS_BREAKDOWN_PER_WALLET`, `quantity` and the client, tenant and customer estimates are the whole row’s values, repeated for each wallet. Only `estimated_revenue_wallet` (`total_estimated_revenue_wallet`) belongs to the wallet.

### Breakdown reports

`TRENDS_PLAYS_BREAKDOWN` answers “where, how and from what did this track play” without loading `TRENDS_PROCESSED`. It has one row per track or video, `sold_at`, `dimension` and `value`, where the key is `customer_id`, `release_id`, `track_id`, `video_id`, `gtin`, `isrc`, `service` and `sold_at`. For each key there is one `TOTAL` row and one row per value seen in each dimension, with the summed quantity, estimates and play time.

- **Every dimension adds up to `TOTAL`.** A null `value` means the store didn’t report that dimension for those streams, so summing the rows of any one dimension gives exactly the `TOTAL` row of the key. Don’t add rows across dimensions, because each dimension counts the same streams again.
- **`total_play_duration_seconds`** is the seconds played times the quantity, over the streams that report a play duration. It’s null when none of them do.
- **New dimensions can appear over time.** Filter on the dimensions you know and ignore any other `dimension` value.

| Dimension | Value |
| --- | --- |
| `TOTAL` | Always null. This row holds the key’s totals. |
| `TRANSACTION_TYPE`, `MEDIA_TYPE`, `PURCHASE_TYPE`, `STORE` | The code, as in the `TRENDS_PROCESSED` column of the same name. Never null. |
| `COUNTRY` | ISO 3166 alpha-2, `ZZ` when the store’s country is unknown. Never null. |
| `DIFFERENT_LISTENER_COUNTRY` | The listener’s country, set only when it differs from `country`. |
| `CHANNEL`, `REGION`, `SOURCE`, `CONTAINER_TYPE`, `AGE_GROUP` | Free text, as the store sends it. Empty text is null. |
| `PLAYLIST` | The `container_uri` when it’s a Spotify playlist (starts with `spotify:playlist:`), else null. |
| `CONTAINER_URI_OTHER` | Any other `container_uri`, for example an album or artist URI, else null. |
| `DEVICE_TYPE`, `DEVICE_ECOSYSTEM`, `END_REASON_TYPE`, `AUDIO_QUALITY`, `GENDER` | The code, as in the `TRENDS_PROCESSED` column of the same name. |
| `CACHED`, `SHUFFLE`, `REPEAT_PLAY`, `DISCOVERY_FLAG`, `BUNDLE_SALE` | `true` or `false`, as text. |
| `LOCAL_HOUR` | The two-digit hour of `daytime`, `00` to `23`, for example `08`. |

`TRENDS_PLAYS_BREAKDOWN_PER_WALLET` has the same rows per wallet, with `wallet_id` in the key and `total_estimated_revenue_wallet`. As in `TRENDS_SPLIT`, `total_quantity` and the client, tenant and customer estimates are the full values, repeated for every wallet of a track. Only `total_estimated_revenue_wallet` is the wallet’s share.

## Events

A tenant key gets no trends events, because `TRENDS_DAILY_IMPORT` and `TRENDS_REPORT` events are on the client’s journal stream. To find new days and re-runs, list your reports newest first once or twice a day, as described in [Re-runs and report identity](https://docs.releaseapi.com/reports.html#re-runs).

Client keys see both event types. Imports created by the 03:00 UTC job are journaled when their status changes, not when they’re created, and a re-run removes old reports without a `DELETED` event. See the [event catalog](https://docs.releaseapi.com/events.html#event-catalog).

## Exports: CSV files on demand

Order a CSV file over any slice of your reporting data, such as a wallet’s February royalties, a label’s top tracks or every Spotify stream in Germany. ReleaseAPI builds it in the background and gives you a download link.

Analytics serves your UI, and exports cover everything else, such as the statement you send an artist, the file finance reconciles, or the data a partner asked for. An export runs your filters over the same processed rows that feed analytics and stores the result as a CSV.

### How an export runs

An export is a background job with its own status, from the moment you order it until its file expires:

*Diagram: Export lifecycle: OPEN, PROCESSING, then SUCCESS or ERROR. A successful export expires at availableUntil. DELETE sets any export to EXPIRED.* An export without `availableUntil` stays in `SUCCESS` until you delete it. Deleting an export that hasn’t finished means its file is never served.

You create the export, and it starts within seconds. Each client runs up to ten exports at a time, highest `priority` first and then oldest first. Exports from all accounts also share a platform-wide limit, so at busy times an export can wait in `OPEN` for a while. Most exports finish in seconds to a few minutes, depending on how much data the filters cover. When the file is ready, you request a signed URL and download it. The file stays until it expires or you delete it.

### Choose a report type

The report type decides which rows are read and which columns come out. The **external summary** types are the best place to start for most hand-offs. They return one row per release, track, country and service per day, with ids, GTIN, ISRC, quantities and money. The **dump** types return every column of every row, so they get large.

| Report type | Output |
| --- | --- |
| **Trends**: daily, estimated |  |
| `TRENDS_PROCESSED_EXTERNAL_SUMMARY` | Grouped by day, release, track, video, service, country and transaction type, with quantity and estimated revenue at client, tenant and customer level. |
| `TRENDS_SPLIT_EXTERNAL_SUMMARY` | The same, per wallet, with `wallet_id`, `share_per_mio` and `estimated_revenue_wallet`. |
| `TRENDS_PROCESSED_DUMP`, `TRENDS_SPLIT_DUMP` | Every column of every row. |
| `TRENDS_PROCESSED_TOP_TRACKS_BY_QUANTITY` | The top N tracks by quantity. |
| `TRENDS_PROCESSED_TOP_RELEASES_PER_GENRE` | Top releases in each genre, with title, artist and GTIN. |
| `TRENDS_PROCESSED_COMPARED_QUANTITY_INCREASE` | Tracks with the biggest increase against the previous period of the same length. |
| `TRENDS_PROCESSED_PER_COUNTRY_SUM_QUANTITY` | Quantity per country for each release and service. |
| `TRENDS_PROCESSED_CONTAINER_URI_SUM_QUANTITY` | Streams per playlist or album context. |
| `TRENDS_PROCESSED_TRACK_CONTAINER_URI_SUM_QUANTITY` | Streams per playlist, per track. |
| `TRENDS_PROCESSED_PLAY_DURATION_HISTOGRAM` | How long people listened, per track. |
| `TRENDS_PROCESSED_SPOTIFY_FRAUD_USER_SHARE` | Listeners, streams and how concentrated plays are on single users, per track. Use it as a signal for artificial streaming. |
| `TRENDS_SPOTIFY_SKIP_SAVE_SUM`, `TRENDS_SPOTIFY_SKIP_SAVE_DUMP` | Spotify streams, skips, saves and skip rate per track. |
| `TRENDS_PLAYS_PER_TRACK_SUM` | Total quantity and customer revenue per track and service. |
| **Statements**: monthly, accounted |  |
| `STATEMENTS_PROCESSED_EXTERNAL_SUMMARY` | Grouped summary with revenue at client, tenant and customer level. |
| `STATEMENTS_SPLIT_EXTERNAL_SUMMARY` | The same per wallet, with `revenue_wallet`. This is the basis of a royalty statement. |
| `STATEMENTS_PROCESSED_DUMP`, `STATEMENTS_SPLIT_DUMP` | Every column of every row. |
| `STATEMENTS_PROCESSED_ACCOUNTED_SERVICE_MONTHS` | Which service and month combinations have been accounted. |

Each type accepts a different set of filters. Fetch the current list of types, with the filters each one allows, from `GET /v1/core/data/export-report-types`.

### Create an export

This export collects one wallet’s *estimated* earnings from the daily data reported in February. It is named with your own `externalId` and expires after a month. For money you pay out, export statements instead. See [A royalty statement for one payee](https://docs.releaseapi.com/reports.html#royalty-export).

> **Ordering an export needs write access.** Creating and deleting exports needs the `REPORTING_WRITE` permission (roles `ADMIN` and `MEMBER`). A `READER` key can list, read, preview and download exports, but ordering one returns `403 PERMISSION_DENIED`.

`POST /v1/reporting/exports`

**cURL**

```bash
curl "$BASE/reporting/exports" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reportType": "TRENDS_SPLIT_EXTERNAL_SUMMARY",
    "filters": {
      "reportedAtFrom": "2026-02-01",
      "reportedAtTo": "2026-02-28",
      "walletIds": ["e2c94a17-6b3d-4f80-a5e2-1d7c9b0f3a46"]
    },
    "externalId": "wallet-e2c94a17-2026-02",
    "availableUntil": "2026-04-01T00:00:00Z"
  }'
```

**Node.js**

```javascript
// api() is the helper from the Quickstart setup (BASE ends in /v1)
const exp = await api("POST", "/reporting/exports", {
  reportType: "TRENDS_SPLIT_EXTERNAL_SUMMARY",
  filters: {
    reportedAtFrom: "2026-02-01",
    reportedAtTo: "2026-02-28",
    walletIds: [walletId],
  },
  externalId: `wallet-${walletId}-2026-02`,
  availableUntil: "2026-04-01T00:00:00Z",
});
```

**Python**

```python
# api() is the helper from the Quickstart setup (BASE ends in /v1)
export = api("POST", "/reporting/exports", {
    "reportType": "TRENDS_SPLIT_EXTERNAL_SUMMARY",
    "filters": {
        "reportedAtFrom": "2026-02-01",
        "reportedAtTo": "2026-02-28",
        "walletIds": [wallet_id],
    },
    "externalId": f"wallet-{wallet_id}-2026-02",
    "availableUntil": "2026-04-01T00:00:00Z",
})
```

**Response**

```json
{
  "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
  "status": "OPEN",
  "reportType": "TRENDS_SPLIT_EXTERNAL_SUMMARY",
  "filters": {
    "reportedAtFrom": "2026-02-01",
    "reportedAtTo": "2026-02-28",
    "walletIds": ["e2c94a17-6b3d-4f80-a5e2-1d7c9b0f3a46"]
  },
  "priority": 1,
  "statistics": {},
  "availableUntil": "2026-04-01T00:00:00Z",
  "externalId": "wallet-e2c94a17-2026-02",
  "id": "41aa7c3e-9d25-4b18-8f60-e3b1c5a0d972",
  "createdAt": "2026-03-03T08:00:00Z"
}
```

#### Request fields

- `reportType` (enum, required) — One of the [report types](https://docs.releaseapi.com/reports.html#choose-a-report-type).
- `filters` (object, required) — Which rows to include. See [filters](https://docs.releaseapi.com/reports.html#filters).
- `priority` (integer) — `1` normal (default), `2` priority, `3` critical. A higher priority moves the export ahead of your other queued exports. Use it for exports a person is waiting on.
- `availableUntil` (timestamp · ISO 8601) — When to delete the file. It must be in the future. **Without it, the file is kept until you delete it.**
- `externalId` (string · max 500) — Your own reference. It becomes the file name (`{externalId}.csv`) and can be used to filter the export list.

#### A royalty statement for one payee

This export builds a producer’s statement for September. It holds every line their wallet shared in, grouped by track, country and service, with the money that is theirs in `revenue_wallet`.

`POST /v1/reporting/exports`

```bash
curl "$BASE/reporting/exports" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reportType": "STATEMENTS_SPLIT_EXTERNAL_SUMMARY",
    "filters": {
      "reportedAtFrom": "2026-09-01",
      "reportedAtTo": "2026-09-30",
      "walletIds": ["47be01d3-5c8a-4e29-b6f0-3a1d8e7c2b94"]
    },
    "externalId": "statement-47be01d3-2026-09",
    "availableUntil": "2026-12-31T00:00:00Z"
  }'
```

Statement rows are monthly. Their `reported_at` is stored as the first day of the month, so a range from the 1st to the last day of a month selects exactly that month.

#### Columns of the statement summaries

The CSV header row lists the columns in this order:

**STATEMENTS_PROCESSED_EXTERNAL_SUMMARY**

```text
reported_at, sold_at, tenant_id, release_id, track_id, video_id,
service, country, transaction_type, purchase_type, media_type, channel,
gtin, isrc, quantity, revenue_customer, revenue_client, revenue_tenant
```

**STATEMENTS_SPLIT_EXTERNAL_SUMMARY**

```text
reported_at, sold_at, tenant_id, wallet_id, share_per_mio,
release_id, track_id, video_id,
service, country, transaction_type, purchase_type, media_type, channel,
gtin, isrc, quantity, revenue_customer, revenue_client, revenue_tenant,
revenue_wallet
```

Rows are sums over the statement lines with the same values in the grouping columns. The trends summaries have the same shape with `estimated_revenue_…` columns. The dump types return every column of [the underlying report](https://docs.releaseapi.com/statements.html#report-columns). In the split summary, `quantity` and the client, tenant and customer columns are the whole lines’ values on each wallet’s row. Only `revenue_wallet` is the wallet’s.

### Filters

Only `reportedAtFrom` and `reportedAtTo` are required. They select rows by the date the store reported them, inclusive. For trends that date is a day, and for statements it is the first day of the month. To select by listening period instead, add `soldAtFrom` and `soldAtTo`. Everything else narrows the result further.

| Filter | Type | Notes |
| --- | --- | --- |
| `reportedAtFrom`, `reportedAtTo` | date | Required. Reported date range. |
| `soldAtFrom`, `soldAtTo` | date | Sold date range, for example to isolate one month of listening. |
| `tenantId` | uuid | Client keys only. Limit to one tenant. |
| `customerIds`, `walletIds` | uuid[] | Payees. `walletIds` only works on split types. |
| `releaseIds`, `trackIds`, `videoIds` | uuid[] | Catalog objects. |
| `gtins`, `isrcs` | string[] | Each code is validated, and an invalid one fails the request. |
| `reportingProviders`, `stores`, `services` | enum[] | Where the data came from. |
| `purchaseTypes`, `mediaTypes`, `transactionTypes` | enum[] | For example `STREAM`, `VIDEO`, `SUBSCRIPTION`. |
| `countries` | enum[] | Listener country, ISO 3166 alpha-2. |
| `deviceTypes`, `deviceEcosystems`, `genders` | enum[] | Listener detail. Trends only. |
| `topN` | integer · 1–1000 | For top-list types. The default is 100. |

`GET /v1/core/data/export-report-types` names the filters each type accepts in `snake_case`: `customer_ids` there is the `customerIds` field here, `sold_at_from` is `soldAtFrom`, and so on. The request always uses the camelCase names in this table. `reportedAtFrom` and `reportedAtTo` aren’t in that list because every type requires them.

All list filters follow the same rules. If you send one, it must have between 1 and 100 values and no duplicates (`videoIds` is the exception and isn’t checked for length or duplicates). A filter the report type doesn’t support fails with `<FILTER>_FILTER_NOT_ALLOWED`, for example `WALLET_IDS_FILTER_NOT_ALLOWED` on a non-split type.

> **Note:** With a tenant key, the export is always limited to that tenant. Setting a different `tenantId` fails with `ONLY_OWN_TENANT_ID_CAN_BE_QUERIED`.

### Wait for the file

With a tenant key, poll by reading the export every few seconds until `status` is `SUCCESS` or `ERROR`. At busy times an export can wait in `OPEN` for a while before it starts.

Client keys can follow the [journal](https://docs.releaseapi.com/events.html) instead. Each export writes `REPORTING_EXPORT_CREATED`, `REPORTING_EXPORT_STARTED`, then `REPORTING_EXPORT_SUCCESS` or `REPORTING_EXPORT_FAILURE`, and later `REPORTING_EXPORT_EXPIRED`. These events are on the client stream only, so a tenant key doesn’t see them, even for an export the tenant ordered, and reading the export’s events by `elementId` returns 400 `UNAUTHED_ELEMENT_ID`.

`GET /v1/reporting/exports/{exportId}`

**cURL**

```bash
curl "$BASE/reporting/exports/$EXPORT_ID" \
  -H "X-API-KEY: $RELEASEAPI_KEY"
```

**Response**

```json
{
  "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
  "status": "SUCCESS",
  "reportType": "TRENDS_SPLIT_EXTERNAL_SUMMARY",
  "filters": {
    "reportedAtFrom": "2026-02-01",
    "reportedAtTo": "2026-02-28",
    "walletIds": ["e2c94a17-6b3d-4f80-a5e2-1d7c9b0f3a46"]
  },
  "priority": 1,
  "statistics": {
    "queryId": "b7f0e2c4-58a1-4d39-9c6e-2a4d8f1b0e53",
    "startedAt": "2026-03-03T08:00:01Z",
    "completedAt": "2026-03-03T08:00:19Z",
    "scannedBytes": 734003200,
    "resultBytes": 1048576
  },
  "availableUntil": "2026-04-01T00:00:00Z",
  "externalId": "wallet-e2c94a17-2026-02",
  "id": "41aa7c3e-9d25-4b18-8f60-e3b1c5a0d972",
  "createdAt": "2026-03-03T08:00:00Z"
}
```

A failed export carries an `errorMessage` from the query engine, for example a cancelled query. Check the filters and create a new export. ReleaseAPI doesn’t retry a failed export.

### Download the file

Once the export is `SUCCESS`, ask for a download link. The URL is signed and valid for 60 minutes, and the file downloads as `{externalId}.csv` (or `report.csv` without one). Request it right before you download, and hand it to a browser or a partner only if they’ll use it immediately.

The file is a standard query-result CSV: comma-separated, UTF-8, a header row with the `snake_case` column names, values in double quotes (a quote inside a value is doubled), an empty field for no value, and no compression. Money columns are integers in nano-euros, as everywhere else.

`GET /v1/reporting/exports/{exportId}/download`

**cURL**

```bash
URL=$(curl -s "$BASE/reporting/exports/$EXPORT_ID/download" \
  -H "X-API-KEY: $RELEASEAPI_KEY" | jq -r .url)
curl -o wallet-february.csv "$URL"
```

**Response**

```json
{
  "url": "https://…/wallet-e2c94a17-2026-02.csv?X-Amz-Signature=…"
}
```

To show a quick preview without downloading the whole file, `GET /v1/reporting/exports/{exportId}/preview` returns up to the first 20 rows as an array of objects, with every value as a string.

### Cost and expiry

- **Exports can cost money.** The amount of data an export reads (`statistics.scannedBytes`) is recorded as a charge for the tenant it ran for. An export made with a client key is charged to the client, even with a `tenantId` filter. Narrow filters, especially the date range, make exports both faster and cheaper. Prices are on [releaseapi.com](https://releaseapi.com/#pricing), and [Billing](https://docs.releaseapi.com/account.html#how-billing-works) explains how charges are counted.
- **Files are kept until they expire.** Set `availableUntil` when you create an export. Without it, the file is kept indefinitely.
- **Delete when you’re done.** `DELETE /v1/reporting/exports/{exportId}` deletes the file now and sets the export to `EXPIRED`. The record stays, so your history is intact. It works in any status. Deleting an `OPEN` export cancels it before it runs. Deleting a `PROCESSING` export marks it `EXPIRED` straight away, and when the query finishes, its result is never served. A `READER` key can’t delete.

### List exports

`GET /v1/reporting/exports` lists exports with the usual [pagination](https://docs.releaseapi.com/api-basics.html#pagination). Filter by `status`, `reportType`, `externalId` or `tenantId`. Use `externalId` to find the export behind a row in your own database.

### Export errors

| Code | Cause |
| --- | --- |
| `REPORTED_AT_TO_BEFORE_FROM` | The reported date range is reversed. |
| `<FILTER>_FILTER_NOT_ALLOWED` | The report type doesn’t support that filter. |
| `<FILTER>_DEFINED_BUT_EMPTY`, `<FILTER>_MAX_100`, `<FILTER>_HAS_DUPLICATES` | A list filter is empty, too long or has repeated values. |
| `NOT_A_VALID_GTIN`, `NOT_A_VALID_ISRC` | An identifier in the filters is malformed. |
| `TOP_N_NOT_VALID` | `topN` is outside 1–1000. |
| `AVAILABLE_UNTIL_IN_THE_PAST` | `availableUntil` must be in the future. |
| `EXTERNAL_ID_TOO_LONG` | `externalId` is over 500 characters. |
| `INVALID_TENANT_ID`, `ONLY_OWN_TENANT_ID_CAN_BE_QUERIED` | The tenant filter isn’t one you can read. |
| `STATUS_NOT_SUCCESS` | Download or preview before the export finished. |
| `REPORTING_PROVIDER_INVALID_ENUM` | A value in `reportingProviders` isn’t a trends or statements provider code. |
| `403 PERMISSION_DENIED` | A `READER` key tried to create or delete an export. |

## Endpoint reference

These are the endpoints on this page that work with either a tenant key or a client key:

**Trend reports · client or tenant key**

- `GET /v1/reporting/trends/reports` — List reports
- `GET /v1/reporting/trends/reports/{reportId}` — Read a report
- `GET /v1/reporting/trends/reports/{reportId}/download/parquet` — Signed download URL
- `POST /v1/reporting/exports` — Order an export
- `GET /v1/reporting/exports` — List exports
- `GET /v1/reporting/exports/{exportId}` — Read an export
- `GET /v1/reporting/exports/{exportId}/download` — Signed download URL
- `GET /v1/reporting/exports/{exportId}/preview` — First 20 rows
- `DELETE /v1/reporting/exports/{exportId}` — Delete the file

Statement reports are listed on [Monthly statements](https://docs.releaseapi.com/statements.html#read-the-results).

## Next steps

- [Analytics](https://docs.releaseapi.com/analytics.html): Read the processed numbers as chart-ready JSON.
- [Monthly statements](https://docs.releaseapi.com/statements.html): The monthly, accounted counterpart to trends, and where statement rows come from.
