Skip to main content
POST

Authorizations

Authorization
string
header
required

API key authentication. Send your raw API key as the Authorization header value with NO scheme prefix — Authorization: YOUR-API-KEY. Do NOT prefix it with Bearer or ApiKey , and do not use an X-API-Key header; those are not accepted.

Path Parameters

companyId
string<uuid>
required

Company identifier

Body

application/json
googleOAuthToken
string
required

Google OAuth2 access token with write access to the target spreadsheet or folder.

spreadsheetId
string

ID of an existing Google Sheets spreadsheet to write into. Mutually exclusive with folderId — provide one or the other.

folderId
string

Google Drive folder ID in which to create a new spreadsheet. Mutually exclusive with spreadsheetId — provide one or the other.

spreadsheetName
string

Custom name for the created spreadsheet. Only used when folderId is provided. Defaults to "{companyShortName}-bordereau-export {UTC timestamp}".

periodStart
string<date-time>

Inclusive lower bound on transactionTimestamp. Only transactions at or after this timestamp are included.

periodEnd
string<date-time>

Exclusive upper bound on transactionTimestamp. Only transactions before this timestamp are included.

actions
enum<string>[]

Transaction actions to include. Omit to include all actions.

Available options:
NEW_BUSINESS,
ENDORSE,
CANCEL,
REINSTATE,
RENEW
columns
object[]

Ordered column specs that COMPLETELY describe the output columns: fixed columns become selectable, omittable, and reorderable, and field columns ({"kind":"field"} entries — a dot-path into the policy's field data plus a display header, resolved per row as of the transaction's effective date) interleave anywhere. A path that does not exist in the policy data yields an empty cell. Omit for the default column set (the fixed 12).

One column of a fully caller-ordered bordereau — the single column-selection mechanism on every bordereau endpoint. On the rendered surfaces (CSV download, Google Sheets export) an ordered columns array is the COMPLETE column set: the fixed columns become selectable, omittable, and reorderable, and configured field columns (resolved per row as of the transaction's effective date) interleave anywhere. On the typed-JSON list endpoint only field entries are accepted (they select into each row's fieldColumns map); a fixed entry there is rejected with HTTP 400, since the JSON rows always carry every fixed property.

Two kinds:

  • fixed — one of the 12 built-in transaction-metadata columns, addressed by key; the column header comes from the built-in registry (e.g. policyNumber → "Policy Number").
  • field — a dot-separated path into the policy's field data plus the display header for the column. A path absent from the policy data yields an empty cell.
filters
object[]

Policy filters restricting the export to transactions of the policies whose CURRENT segment matches every filter — the filter selects the policies, then all of each matching policy's transactions in the period are included. Omit to include every policy. Same field-filter model as the Policy List filters parameter.

Structured per-field filter against FMV1 field data or system columns. Each filter names a fieldReferenceId, a fieldType tag, an operator, and a value (plus valueTo for between and systemColumn for systemUser / systemDate). The set of operators and the value shape depend on fieldType. Pass one or more filters in the filters query parameter — multiple filters are combined with AND semantics.

sortBy
enum<string>

Field to sort results by. Default transactionTimestamp.

Available options:
policyNumber,
primaryInsuredName,
effectiveDate,
transactionTimestamp,
createdAt
sortDirection
enum<string>
default:desc

Sort direction (default desc).

Available options:
asc,
desc
limit
integer
default:50000

Maximum number of rows to export. Default and maximum 50,000.

Required range: 1 <= x <= 50000
offset
integer
default:0

Number of rows to skip before starting the export. Default 0.

Required range: x >= 0

Response

Bordereau exported to Google Sheets

Result of exporting bordereau data to Google Sheets.

spreadsheetId
string
required

The Google Sheets spreadsheet ID.

spreadsheetUrl
string<uri>
required

Direct URL to the Google Sheets spreadsheet.

rowCount
integer
required

Number of data rows written to the spreadsheet.