Source: https://www.brixit.io/docs/api-reports-transactions

# Transactions report

To retrieve the transactions report in Brixit, send a POST request to /api/automation/v1/execute with operation set to reports.transactions. Use the data fields below for supported input and filters.

[Reports API](https://www.brixit.io/docs/api-reports) · `reports.transactions`

[URL](https://www.brixit.io/docs/api-reports-transactions#url-and-authentication) · [Fields](https://www.brixit.io/docs/api-reports-transactions#fields) · [Example](https://www.brixit.io/docs/api-reports-transactions#example-request) · [Response](https://www.brixit.io/docs/api-reports-transactions#response) · [Try it](https://www.brixit.io/docs/api-reports-transactions#try-it)

## URL and authentication

`POST https://YOUR-BACKEND/api/automation/v1/execute`

Send `Authorization: Bearer <connection key>`, `Accept: application/json` and
`Content-Type: application/json`. [Create a connection](https://www.brixit.io/docs/api#get-connected).

This operation requires **read access** and CRM permission `view_transaction_report`.
The gateway invokes `GET /api/v1/app/reports/workspace/transactions` internally.
Use the POST URL above with your automation key, including for read and delete operations.

## Request parameters

| Key | Type | Requirement |
| --- | --- | --- |
| `operation` | string | Required; exactly `reports.transactions` |
| `data` | object | Optional; see fields below |

## Fields

Use a period OR explicit from_date/to_date, not both. The default is the last 30 days. Timezone defaults to the user, then company, then UTC. Date range must be less than 10 years. Automation reports return 25 rows per table regardless of per_page. Supply table and page to page that table. detail_level summary is applied only by MCP, not this gateway. format does not export a file here. A metric must match the selected table.

Fields below belong inside `data`. Dot paths describe nested objects; `*` means each
array item. `nullable` permits null and `sometimes` validates a supplied field.
`in:` lists allowed values; `min:` and `max:` limit the value, length or item count.
`exists:` and `exists_in_company:` require a valid record ID. Conditional rules
such as `required_if` and `required_with` refer to other fields in the same payload.
Use YYYY-MM-DD for date-only values and timestamps with timezone offsets for follow-ups.

| Field | Type | Requirement | Format / validation |
| --- | --- | --- | --- |
| `from_date` | string | Optional | nullable; date_format:Y-m-d |
| `to_date` | string | Optional | nullable; date_format:Y-m-d; after_or_equal:from_date |
| `closing_agent_id` | integer | Optional | nullable; integer; min:1 |
| `timezone` | string | Optional | nullable; timezone |
| `agent_id` | integer | Optional | nullable; integer; min:1 |
| `team_id` | integer | Optional | nullable; integer; min:1 |
| `ownership` | string | Optional | nullable; in:mine,my_team,permitted |
| `detail_level` | string | Optional | nullable; in:summary,full |
| `currency` | string | Optional | nullable; string; size:3 |
| `table` | string | Optional | nullable; string; max:60 |
| `search` | string | Optional | nullable; string; max:100 |
| `metric` | string | Optional | nullable; string; in:calls,viewings,won,lost,sales,rentals,closed_transactions,offers,unpaid_transactions,closed_sales,closed_rentals,quality_unscored,portal_sync_issues,unassigned_open_inquiries,open_inquiries_without_stage — Must apply to the selected table. |
| `page` | integer | Optional | nullable; integer; min:1 |
| `format` | string | Optional | nullable; in:csv,xlsx |
| `per_page` | integer | Optional | nullable; integer; min:1; max:250 |
| `period` | string | Optional | nullable; in:today,yesterday,this_week,last_week,this_month,last_month,this_quarter,last_quarter,this_year,last_year,last_30_days |
| `comparison` | string | Optional | nullable; in:previous_period,previous_year,none |
| `columns` | string | Optional | nullable; string; max:1000 |
| `group_by` | string | Optional | nullable; string; max:200 |
| `sort_by` | string | Optional | nullable; string; max:60 |
| `sort_direction` | string | Optional | nullable; in:asc,desc |

## Example request

Replace the example IDs and values with records in your installation. Supply any
additional custom fields required by your company.

```json
{
  "operation": "reports.transactions",
  "data": {
    "period": "last_30_days",
    "comparison": "previous_period"
  }
}
```

## Response

Returns the selected report in `data`, including metrics and tables. Each table includes `rows`, `total`, `page`, `per_page` and `last_page`. Automation returns 25 rows per table; use `data.table` and `data.page` in the next request to retrieve more rows.

The gateway preserves the underlying HTTP status and JSON body. Successful requests return **HTTP 200**. A response may also include localized message fields.

## Errors

| HTTP status | Meaning |
| --- | --- |
| 400 | A CRM business rule rejected the action. |
| 401 | Missing, invalid, expired or revoked connection key. |
| 403 | Connection access or CRM permissions do not allow this action. |
| 404 | Operation or record unavailable. |
| 413 | Request or result exceeds its size limit; reduce payload or page size. |
| 422 | Missing or invalid fields, or a CRM business rule rejected the operation. |
| 429 | Rate limit exceeded; wait before retrying. |
| 500 | The server could not complete the operation. |

Validation failures may return `message` / `errors`, or an `error` string with
an optional `fields` array. The tester shows the actual HTTP status and full body.
[Read about limits and retries](https://www.brixit.io/docs/api#errors-and-limits).

## Try it

[Open the interactive API tester](https://www.brixit.io/docs/api-reports-transactions#try-it)
