Skip to main content
GET
Download the provider invoice lines for a month

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-ankra-organisation-id
string

PAT organisation override.

Query Parameters

month
string

The UTC month as YYYY-MM, not in the future; the last closed month when omitted.

Pattern: ^[0-9]{4}-[0-9]{2}$
project_id
string

The project to read: a project's id, or all for the whole organisation. Absent reads the caller's current project (the whole organisation while projects are off). A token pinned to a project, or a member limited to projects, may name only their own project.

Response

The month's invoice lines as an attachment named cloud-invoice-lines-YYYY-MM.csv

A header row, then one row per invoice line: month, provider, credential_id, credential_name, source, source_document_id, lines_state, line_key, category, description, external_id, external_id_kind, quantity, unit, amount_minor, currency, cluster_id, cluster_name, match_method.