Skip to main content

CLI wrapper for Collmex accounting API - LLM-friendly interface

Project description

collmex-cli

LLM-friendly CLI wrapper for the Collmex accounting API (Buchhaltung Pro).

Installation

# From PyPI (recommended)
uv tool install collmex-cli

# From source (development)
uv pip install -e .

Configuration

Set environment variables (or use a .env file):

export COLLMEX_CUSTOMER_ID="your_customer_id"
export COLLMEX_COMPANY_ID="1"  # usually 1
export COLLMEX_USERNAME="your_username"
export COLLMEX_PASSWORD="your_password"

Usage

Test Connection

collmex test

Vendors (Lieferanten)

# List all vendors
collmex vendors

# Search vendors
collmex vendors --search "Amazon"

# Output as JSON (LLM-friendly)
collmex vendors --json

# Create a vendor
collmex vendor-create --company "New Supplier GmbH" --city "Berlin" --email "info@supplier.de"

Open Items (Offene Posten)

# List vendor open items (unpaid vendor invoices)
collmex open-items --vendor

# List customer open items
collmex open-items --customer

# Output as JSON
collmex open-items --vendor --json

Bookings (Buchungen)

# List all bookings
collmex bookings

# Filter by account
collmex bookings --account 1200

# Filter by date range
collmex bookings --from 2024-01-01 --to 2024-12-31

# Search in booking text
collmex bookings --search "Amazon"

Unmatched Bank Transactions

# Find bank transactions without matching invoices/receipts
collmex unmatched

# For a specific bank account
collmex unmatched --account 1200

# Output as JSON
collmex unmatched --json

Vendor Invoices (Lieferantenrechnungen)

# Create a vendor invoice
collmex vendor-invoice \
  --vendor-id 123 \
  --invoice "INV-2024-001" \
  --date 2024-01-15 \
  --net 100.00 \
  --text "Office supplies"

LLM Integration

All commands support --json output for easy parsing by LLMs:

collmex vendors --json | jq '.[] | select(.city == "Berlin")'

Workflow: Matching Bank Transactions

  1. Import bank statement (MT940) via Collmex Web UI
  2. Find unmatched transactions:
    collmex unmatched --json
    
  3. For each unmatched transaction, create vendor invoice:
    collmex vendor-invoice --vendor-id 123 --invoice "INV-001" --date 2024-01-15 --net 50.00
    

API Coverage

Currently supported Collmex record types:

  • VENDOR_GET / CMXLIF - Query and create vendors
  • CMXLRN - Create vendor invoices
  • OPEN_ITEMS_GET / OPEN_ITEM - Query open items
  • ACCDOC_GET / ACCDOC - Query accounting documents/bookings

Development

# Install with dev dependencies
uv sync --dev

# Run tests
uv run pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collmex_cli-2026.5.1.tar.gz (72.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

collmex_cli-2026.5.1-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

Details for the file collmex_cli-2026.5.1.tar.gz.

File metadata

  • Download URL: collmex_cli-2026.5.1.tar.gz
  • Upload date:
  • Size: 72.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for collmex_cli-2026.5.1.tar.gz
Algorithm Hash digest
SHA256 5e3ad444426d8f25ab4ec0bfeb0d489d699f6c4ccef0c395abc053c52904f841
MD5 7d8e618b20a6acc672d346fc5b74b737
BLAKE2b-256 ea4e059b80b8f5352b7ead1258fe14c8e3f78551001dd85d26c4bdc99b4f5850

See more details on using hashes here.

Provenance

The following attestation bundles were made for collmex_cli-2026.5.1.tar.gz:

Publisher: release.yml on cognovis/collmex-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file collmex_cli-2026.5.1-py3-none-any.whl.

File metadata

  • Download URL: collmex_cli-2026.5.1-py3-none-any.whl
  • Upload date:
  • Size: 42.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for collmex_cli-2026.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c5e8a04004c72b7f40f4e31db18c4df0942d83f5eb3dc4556c2fab69a884be7
MD5 faf05818447ab349d2e4d86563ec1df6
BLAKE2b-256 373fe9c920ed80d57e969e0932119afed6b808c2a75b8138e2c9b2d81c5f21a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for collmex_cli-2026.5.1-py3-none-any.whl:

Publisher: release.yml on cognovis/collmex-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page