Skip to main content
GET
Fetch Statements Reporting

Overview

This endpoint extracts commission statement records from a statement reporting data structure. Statements represent the final calculated commissions — what each person earned in each period. Use this endpoint for:
  • Payroll integration (sending commissions to payroll systems)
  • Commission reports and dashboards
  • Earnings history analysis
  • Compliance and audit trails
Statements = Results. This endpoint gives you the output of Qobra’s commission calculations, not the underlying deals/activities.

Pagination

This endpoint uses ID-based pagination for consistent performance with large datasets.

Basic Pagination Pattern

Use next_url for simplicity: The API returns a pre-constructed next_url in the response meta—just follow it instead of manually building the next request.

Filtering by modification date

Use last_modified_after to implement incremental sync (only fetch new/updated records).

Incremental sync pattern

Benefits:
  • 10-100x faster than full extracts
  • ✅ Reduces API load
  • ✅ Keeps your data warehouse up-to-date with minimal overhead

Performance & best practices

Use ID-based pagination

Always use next_url for large datasets (10K+).

Implement incremental sync

Use last_modified_after for daily/hourly updates.

Use Limit 2000

Optimal balance between network overhead and response time.

Authorizations

X-API-Key
string
header
required

Your Qobra API key. Generate it from Settings > API Keys in Qobra.

Path Parameters

table_id
string<ObjectId>
required

ID of a statement reporting structure (from /v2/data-structures)

Query Parameters

start_id
string<ObjectId>

Start after this record ID (for ID-based pagination, recommended)

limit
integer
default:2000

Number of records per page (1-2000)

Required range: 1 <= x <= 2000
last_modified_after
string<date-time>

ISO 8601 datetime - Only return records modified after this date (for incremental sync)

last_modified_before
string<date-time>

ISO 8601 datetime - Only return records modified before this date

Response

Successfully retrieved statement records. Returns an array of commission statements with pagination metadata for navigating through large datasets.

data
object[]
required

List of statement records

meta
object
required