Skip to main content
Export selected invoices as CSV

Authorizations

Authorization
string
header
required

Personal API key. Send X-Organization-Id. The required cumulative level is listed in x-watchdog-permission.

Headers

X-Organization-Id
string

Required for personal API keys. Target one organization you have access to. Migrated keys may omit it to use their original organization. For Clerk sessions, it must match the active organization.

Query Parameters

mine
enum<string>

Match the shared teams the authenticated user belongs to in this organization. Teams combine with OR; other filters combine with AND. No memberships or saved rules means no matches. Cannot be combined with team_ids when true.

Available options:
true,
false
team_ids
string

Shared team IDs (maximum 50; comma-separated in a query string, a JSON array in a command body). Teams combine with OR. Missing, foreign, or personal teams return 404; invalid saved rules return 409.

Case-insensitive substring match on invoice number or title.

Required string length: 1 - 200
supplier_ids
string

Match any canonical supplier UUID or literal null for no supplier. Maximum 50 comma-separated values; omit for all suppliers. Empty entries are invalid.

recipient_ids
string

Match any canonical recipient UUID or literal null for no recipient. Maximum 50 comma-separated values; omit for all recipients. Empty entries are invalid.

categories
string

Match any listed category: invoice, credit_note, self_billed_invoice. Maximum 50 comma-separated values; omit for all categories.

currency_codes
string

Match any three-letter currency code (case-insensitive), or literal null for unknown currency. Maximum 50 comma-separated values; omit for all currencies. Example: NOK,EUR,null.

join_operator
enum<string>
default:and

and requires every supplied column filter; or requires at least one. Both bounds within each date range must match, and that range is one group member. Organization, published/deleted state, search, agreement_ids and mine/team scope are always required outside the group. No column filters means no group restriction.

Available options:
and,
or
supplier_operator
enum<string>
default:is

Apply to supplier_ids: is matches any selected value; is_not excludes all selected values. Omitted selections add no restriction. is_not requires a selection. For nullable fields, exclusion includes null unless null is explicitly excluded.

Available options:
is,
is_not
recipient_operator
enum<string>
default:is

Apply to recipient_ids: is matches any selected value; is_not excludes all selected values. Omitted selections add no restriction. is_not requires a selection. For nullable fields, exclusion includes null unless null is explicitly excluded.

Available options:
is,
is_not
category_operator
enum<string>
default:is

Apply to categories: is matches any selected value; is_not excludes all selected values. Omitted selections add no restriction. is_not requires a selection. For nullable fields, exclusion includes null unless null is explicitly excluded.

Available options:
is,
is_not
currency_operator
enum<string>
default:is

Apply to currency_codes: is matches any selected value; is_not excludes all selected values. Omitted selections add no restriction. is_not requires a selection. For nullable fields, exclusion includes null unless null is explicitly excluded.

Available options:
is,
is_not
confidence_operator
enum<string>
default:is

Apply to confidence_levels: is matches any selected value; is_not excludes all selected values. Omitted selections add no restriction. is_not requires a selection. For nullable fields, exclusion includes null unless null is explicitly excluded.

Available options:
is,
is_not
check_status_operator
enum<string>
default:is

Apply to check_statuses: is matches any selected value; is_not excludes all selected values. Omitted selections add no restriction. is_not requires a selection. For nullable fields, exclusion includes null unless null is explicitly excluded.

Available options:
is,
is_not
alert_status_operator
enum<string>
default:is

Apply to alert_statuses: is matches any selected value; is_not excludes all selected values. Omitted selections add no restriction. is_not requires a selection. For nullable fields, exclusion includes null unless null is explicitly excluded.

Available options:
is,
is_not
alert_statuses
string

Combined alert status, in precedence order: credited (fully financially covered by credit notes), checking (active checks), has_issues (pending or claimed alerts), clean (completed coverage without open alerts), not_checked (all remaining coverage). Uses alert_scope. Comma-separated, maximum 50; omit for all states.

confidence_levels
string

Original extraction confidence: high, mid, low or unknown. Both successful creating-import stages must retain confidence assessments and stage fingerprints; publication validates their respective cache keys. The lower level wins. Structured/XML creation and unavailable history are unknown. Comma-separated, maximum 50; omit for all levels.

check_statuses
string

Canonical check coverage in alert_scope: not_checkable (credit note or recorded credit-note match), checking (active work), not_checked (no check recorded), completed (all current matches checked), incomplete (missing, failed, cancelled, outdated or unknown coverage). Comma-separated, maximum 50; omit for all states.

has_recorded_match
enum<string>

true requires at least one recorded credit-note relationship; false selects zero. For invoice/self_billed_invoice this means linked credit notes; for credit_note this means matched invoices. Includes retained links to soft-deleted counterparts. Does not establish financial resolution. Omit for either.

Available options:
true,
false
alert_scope
enum<string>
default:invoice

Selected scope requires agreement_ids and evaluates only currently matched selected agreements. Applies to checks, alert counts, filters and metrics.

Available options:
invoice,
selected_agreements
issued_from
string

Earliest issue date (YYYY-MM-DD), inclusive. Unknown dates do not match this range. Omit for no bound.

Pattern: ^\d{4}-\d{2}-\d{2}$
issued_through
string

Latest issue date (YYYY-MM-DD), inclusive. Unknown dates do not match this range. Omit for no bound.

Pattern: ^\d{4}-\d{2}-\d{2}$
due_from
string

Earliest due date (YYYY-MM-DD), inclusive. Unknown dates do not match this range. Omit for no bound.

Pattern: ^\d{4}-\d{2}-\d{2}$
due_through
string

Latest due date (YYYY-MM-DD), inclusive. Unknown dates do not match this range. Omit for no bound.

Pattern: ^\d{4}-\d{2}-\d{2}$
financially_valid
enum<string>

Filter by deterministic financial validation, independent of extraction confidence or human approval.

Available options:
true,
false
extraction_confirmed
enum<string>

Filter by explicit human extraction confirmation. Does not change confidence or financial validity.

Available options:
true,
false

true selects unconfirmed low/mid extraction confidence, unmatched credit notes, or financially invalid invoices. false selects the exact complement. Always combines with the other selection using AND. Unknown confidence alone does not recommend review.

Available options:
true,
false
agreement_ids
string

Comma-separated agreement IDs (maximum 50). Select invoices matched to any listed agreement in the target organization, regardless of agreement status. Unknown, deleted, or foreign agreements contribute no matches. Combines with other filters using AND; invoices are returned and counted once even if matched to several selected agreements.

has_agreement_match
enum<string>

true requires at least one current organization-owned, nondeleted agreement match; false requires none. Omit for either. Independent of credit-note matching and completed checks.

Available options:
true,
false
alert_checked
enum<string>

true is equivalent to check_statuses=completed in alert_scope; false includes every other state. Omit for either.

Available options:
true,
false
alert_checkable
enum<string>

true excludes credit notes and invoices with recorded credit-note matches; false selects those excluded resources. Eligibility is invoice-wide even in selected-agreement scope. Omit for either.

Available options:
true,
false
has_open_alerts
enum<string>

true requires retained pending or claimed alerts in alert_scope (including outdated findings); false requires none. No open alerts does not prove completed checks. Omit for either.

Available options:
true,
false
deleted
enum<string>
default:false

false selects active invoices; true selects only soft-deleted invoices.

Available options:
true,
false
granularity
enum<string>
default:invoice

invoice emits one row per selected invoice; invoice-items emits one row per stored line with invoice columns repeated. Invoices without lines contribute no invoice-items rows.

Available options:
invoice,
invoice-items

Response

Streaming CSV download. Success requires reading the entire body; HTTP 200 alone does not establish completion.

The response is of type file.