CostCrunchGet an API key

Documents

Invoices, quotes, credits, statements and other documents.

costcrunch 0.1.0

cost documents list

List your documents, newest upload first.

Returns one row per document with its supplier, project, total, review status and, for invoices, how much CostCrunch thinks you over- or under-paid against your usual prices.

Command line
cost documents list
MCP tool
documents_list
Python
cc.documents.list()
ParameterTypeDescription
type
--type
stringOnly this document type (comma-separate several).
One of: invoice, quote, statement, credit_bill, other
status
--status
stringOnly this review status (comma-separate several).
One of: new, needs_attention, approved, filed, disputed, archived
supplier_id
--supplier-id
stringOnly documents from this supplier id.
project_id
--project-id
stringOnly documents for this project id.
since
--since
stringDocument date on or after (YYYY-MM-DD).
until
--until
stringDocument date on or before (YYYY-MM-DD).
search
--search
stringMatch file name, supplier or project address.
sort
--sort
stringSort by.
One of: uploaded, date, total, supplier
Default: "uploaded"
ascending
--ascending
booleanOldest / smallest first.
Default: false
limit
--limit
integerMax documents to return (1-200).
Default: 25
offset
--offset
integerSkip this many (paging).
Default: 0

cost documents get <document-id>

Get one document: header fields (supplier, dates, totals, charges, terms) and its line items.

Command line
cost documents get <document-id>
MCP tool
documents_get
Python
cc.documents.get()
ParameterTypeDescription
document_idrequiredstringDocument id.
line_items
--line-items / --no-line-items
booleanInclude the line items.
Default: true

cost documents lines <document-id>

List a document's line items with the material each one matched and its price check.

`price_check` is CostCrunch's verdict on the line's price versus what you usually pay (e.g. overpaying / good_price / no_data); `price_impact` is the dollar difference.

Command line
cost documents lines <document-id>
MCP tool
documents_lines
Python
cc.documents.lines()
ParameterTypeDescription
document_idrequiredstringDocument id.

cost documents counts

How many invoices are in each review status (new, needs_attention, approved, ...).

Command line
cost documents counts
MCP tool
documents_counts
Python
cc.documents.counts()
ParameterTypeDescription
supplier_id
--supplier-id
stringOnly this supplier id.
since
--since
stringInvoice date on or after (YYYY-MM-DD).
until
--until
stringInvoice date on or before (YYYY-MM-DD).