---
title: "The rows behind a report figure"
description: "A report says the quarter billed $1.44M; this says which invoices, movements, payments or refunds."
canonical_url: "https://twominutebilling.com/help/developers/api-reference/report-dashboards/the-rows-behind-a-report-figure"
---
# The rows behind a report figure

> A report says the quarter billed $1.44M; this says which invoices, movements, payments or refunds.

<api-operation method="GET" path="/v1/businesses/{biz}/raw_export/{dataset}">
<template v-slot:docs="">

Reconciling with the figure is the whole point, so the window is taken from the report layer's own bucket builder rather than re-derived from the range name — cut on a second calendar, an export would explain a number it does not equal. Σ `reporting_amount_minor` over the window equals the headline of the dataset's `reconciles_with` report, exactly, in integer minor units.

Every money column stays in the currency it was earned in, with `reporting_rate` and `reporting_amount_minor` beside it saying what conversion the report applied. Totals are offered PER CURRENCY and never across them: adding paise to cents produces a number that is true of nothing. A row in a currency no exchange rate reaches is left out, because the report leaves it out too.

`data` is an array of arrays positioned by `columns`, paged with the usual `limit`/`starting_after` cursor. `format=csv` streams the same rows a page at a time, so the response is bounded by a page rather than by the size of the tenant; an empty window still returns the header row, because a file with no header reads as a broken export rather than a quiet period.

## Path parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Required
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        biz
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        yes
      </strong>
    </td>
    
    <td>
      Business id (biz_…)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        dataset
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        yes
      </strong>
    </td>
    
    <td>
      A dataset key from the export catalogue.
    </td>
  </tr>
</tbody>
</table>

## Query parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Required
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        range
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      no
    </td>
    
    <td>
      The report preset whose window the rows are taken over. Default <code>
        12m
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        currency
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      no
    </td>
    
    <td>
      Export in this currency only, and convert nothing — the counterpart of the same parameter on a report, so the two answer the same question.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        limit
      </code>
    </td>
    
    <td>
      <code>
        integer
      </code>
    </td>
    
    <td>
      no
    </td>
    
    <td>
      Maximum number of rows to return.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        starting_after
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      no
    </td>
    
    <td>
      Opaque cursor from a previous next_cursor
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        format
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      no
    </td>
    
    <td>
      <code>
        csv
      </code>
      
       streams every row in the window as a file, cursor and all.
    </td>
  </tr>
</tbody>
</table>

## Response

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        object
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The object type; always <code>
        list
      </code>
      
      . One of <code>
        list
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        dataset
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The dataset's key.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        reconciles_with
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The report key whose headline these rows sum to.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        window_start
      </code>
    </td>
    
    <td>
      <code>
        string · ISO-8601
      </code>
    </td>
    
    <td>
      The start of the exported period (ISO-8601 UTC).
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        window_end
      </code>
    </td>
    
    <td>
      <code>
        string · ISO-8601
      </code>
    </td>
    
    <td>
      The end of the exported period (ISO-8601 UTC).
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        reporting_currency
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The currency the report converts to (ISO-4217 code).
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        converted
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      False when the caller scoped to one currency, so nothing was converted.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        totals_by_currency
      </code>
    </td>
    
    <td>
      <code>
        array of object
      </code>
    </td>
    
    <td>
      The window total per currency, in that currency. Deliberately never summed across them.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        columns
      </code>
    </td>
    
    <td>
      <code>
        array of string
      </code>
    </td>
    
    <td>
      The column names, in the order of each row's values.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      <code>
        array of array of any
      </code>
    </td>
    
    <td>
      One array per row, positioned by <code>
        columns
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        has_more
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Whether more rows exist after this page.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        next_cursor
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Pass as <code>
        starting_after
      </code>
      
       to get the next page. Null on the last page.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        limit
      </code>
    </td>
    
    <td>
      <code>
        integer
      </code>
    </td>
    
    <td>
      The page size used.
    </td>
  </tr>
</tbody>
</table>

## Status codes

<table>
<thead>
  <tr>
    <th>
      Status
    </th>
    
    <th>
      Meaning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        200
      </code>
    </td>
    
    <td>
      Success
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        400
      </code>
    </td>
    
    <td>
      An unknown dataset or range, or a malformed cursor
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        404
      </code>
    </td>
    
    <td>
      No such business
    </td>
  </tr>
</tbody>
</table>
</template>

<template v-slot:request="">

```bash [Request]
curl "$TMBILLING_URL/v1/businesses/biz_XXXXXXXXXXXX01/raw_export/mrr_movements?limit=10" \
  -H "Authorization: Bearer $TMBILLING_API_KEY"
```

</template>

<template v-slot:response="">
<code-group>

```json [200 OK]
{
  "object": "list",
  "dataset": "invoices",
  "reconciles_with": "mrr",
  "window_start": "2026-03-14T09:30:00Z",
  "window_end": "2026-04-14T09:30:00Z",
  "reporting_currency": "USD",
  "converted": false,
  "totals_by_currency": [
    {
      "currency": "USD",
      "amount_minor": 2900,
      "rows": 1
    }
  ],
  "columns": [
    "Column"
  ],
  "data": [
    []
  ],
  "has_more": false,
  "next_cursor": null,
  "limit": 10
}
```

```json [400 Bad Request]
{
  "error": {
    "type": "invalid_request_error",
    "message": "An unknown dataset or range, or a malformed cursor"
  }
}
```

```json [404 Not Found]
{
  "error": {
    "type": "invalid_request_error",
    "message": "No such business"
  }
}
```

</code-group>
</template>
</api-operation>


## Sitemap

See the full [sitemap](https://twominutebilling.com/sitemap.md) for all pages.
