fakturownia-invoice-ksef-download-documents

Fetch KSeF XML documents from invoices via the generic attachment endpoint.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/sixers/fakturownia-cli --skill fakturownia-invoice-ksef-download-documents
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fakturownia-invoice-ksef-download-documents
Source: https://github.com/sixers/fakturownia-cli/tree/main/skills/fakturownia/recipes/invoice-ksef-download-documents
Command: npx skills add https://github.com/sixers/fakturownia-cli --skill fakturownia-invoice-ksef-download-documents

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Retrieve KSeF XML documents by calling the API's generic invoice attachment endpoint, removing the manual download step.

Core Features & Use Cases

  • Retrieve both KSeF XML and UPO XML via the attachments endpoint.
  • Support for gov and gov_upo kinds to access government-issued documents.
  • Ideal for automating archival, reconciliation, and compliance workflows for invoices.

Quick Start

Execute fakturownia invoice download-attachment with --id 111 --kind gov --dir ./attachments to fetch the KSeF XML.

Frequently Asked Questions about fakturownia-invoice-ksef-download-documents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I download KSeF XML documents attached to invoices via the Fakturownia API?

Download KSeF XML documents by calling the generic invoice attachment endpoint with a specific invoice ID and the gov kind. This fetches government-issued XML files directly for automated archival.

Can I retrieve both KSeF XML and UPO XML through the invoice attachment endpoint?

Yes, retrieve both KSeF XML and UPO XML by specifying the gov_upo kind. This targets government-issued documents for compliance workflows and reconciliation processes.

What is the best way to automate bulk retrieval of KSeF XML files for compliance archival?

Automate bulk retrieval by processing multiple invoice IDs through the attachment endpoint. Store the resulting KSeF XML files to a local directory with structured output for compliance archival.

Does the Fakturownia API attachment endpoint support bulk invoice processing?

Yes, the endpoint supports bulk processing scenarios for multiple invoices. It enables automated archival and integration with downstream accounting systems using structured output and basic error handling.

What parameters do I need to fetch a KSeF XML file from the invoice attachment endpoint?

Fetch KSeF XML files using the invoice ID, the kind parameter (gov or gov_upo), and a target directory. This retrieves the government document and stores it locally.