Skip to content
fakturoid logo

Fakturoid API v3

fakturoid

Czech invoicing API integration for Fakturoid. Use when the user needs to create, manage, or retrieve invoices, contacts/subjects, or expenses from Fakturoid. Supports OAuth 2.0 authentication, invoice creation with Czech tax compliance (IČO, DIČ, VAT), PDF downloads, payment tracking, expense ma...

SKILL.md

Full skill instructions

Fakturoid API v3

Czech invoicing service API integration - comprehensive reference for building integrations.

Quick Start

Environment Setup

export FAKTUROID_CLIENT_ID="your-client-id"
export FAKTUROID_CLIENT_SECRET="your-client-secret"
export FAKTUROID_ACCOUNT_SLUG="your-account-slug"

Authenticate

python scripts/​auth.py credentials --save

Create Invoice

python scripts/​invoice.py create --subject-id 123 --lines '[
  {"name": "Consulting", "quantity": 8, "unit_name": "hours", "unit_price": 2000, "vat_rate": 21}
]'

API Basics

SettingValue
Base URLhttps://app.fakturoid.cz/​api/​v3
Account URLhttps://app.fakturoid.cz/​api/​v3/​accounts/​{slug}
AuthOAuth 2.0 (Client Credentials or Authorization Code)
Pagination40 records per page
Rate Limit400 requests per 60 seconds

Required Headers

User-Agent: YourAppName ([email protected])
Authorization: Bearer {access_token}
Content-Type: application/​json
Accept: application/​json

Scripts Reference

Core Scripts

ScriptCommandsDescription
auth.pycredentials, refresh, revoke, statusOAuth token management
subject.pylist, get, search, create, update, delete, lookup-icoContact management
invoice.pylist, get, search, create, update, delete, action, pdf, pay, pay-deleteInvoice operations
expense.pylist, get, search, create, update, delete, action, pay, pay-deleteExpense tracking
generator.pylist, get, create, update, deleteInvoice templates

Additional Scripts

ScriptCommandsDescription
user.pyget, listUser and account info
bank_account.pylistBank account listing
inventory.pylist-items, get-item, create-item, list-moves, create-moveInventory management
recurring.pylist, get, create, update, delete, pause, activateRecurring invoices
inbox.pylist, upload, send-to-ocr, download, deleteOCR file processing
event.pylist, list-paidActivity log
todo.pylist, toggleTask management
message.pysendSend invoice emails
webhook.pylist, get, create, update, deleteWebhook management

Common Workflows

Create Invoice for New Customer

# 1. Create subject
python scripts/​subject.py create --name "Acme s.r.o." --ico 12345678 --dic CZ12345678

# 2. Create invoice (use returned subject ID)
python scripts/​invoice.py create --subject-id 456 --lines '[
  {"name": "Web development", "quantity": 40, "unit_name": "hours", "unit_price": 1500, "vat_rate": 21}
]'

# 3. Mark as sent and download PDF
python scripts/​invoice.py action 789 mark_as_sent
python scripts/​invoice.py pdf 789 --output invoice.pdf

Record Expense from Supplier

# 1. Ensure supplier exists
python scripts/​subject.py create --name "Supplier Ltd" --type supplier --ico 87654321

# 2. Create expense
python scripts/​expense.py create --subject-id 321 --original-number "FV-2024-0456" --lines '[
  {"name": "Office supplies", "quantity": 10, "unit_name": "ks", "unit_price": 450, "vat_rate": 21}
]'

Setup Monthly Recurring Invoice

python scripts/​recurring.py create --name "Monthly Hosting" --subject-id 123 \
  --start-date 2024-02-01 --months-period 1 --send-email \
  --lines '[{"name": "Web hosting - {MMMM} {YYYY}", "unit_price": 500, "vat_rate": 21}]'

Process Inbox File with OCR

# Upload and send to OCR
python scripts/​inbox.py upload invoice.pdf --send-to-ocr

# Check status
python scripts/​inbox.py list

Enums Reference

Document Types

ValueCzechDescription
invoiceFakturaStandard invoice
proformaZálohová fakturaAdvance payment request
partial_proformaČástečná zálohaLegacy partial advance
correctionDobropisCredit note
tax_documentDaňový dokladTax receipt for proforma payment
final_invoiceVyúčtovací fakturaFinal invoice from tax documents

Invoice Status

ValueDescription
openNew, unpaid, not sent
sentSent to client, not overdue
overduePast due date
paidFully paid
cancelledCancelled (VAT payers only)
uncollectibleMarked as bad debt

Expense Status

ValueDescription
openReceived, not paid
overduePast due date
paidFully paid

VAT Modes

ValueCzechDescription
vat_payerPlátce DPHStandard VAT payer
non_vat_payerNeplátce DPHNon-VAT payer
identified_personIdentifikovaná osobaEU VAT identified person

VAT Price Modes

ValueDescription
without_vatPrices entered without VAT
from_total_with_vatCalculate VAT from total with VAT

VAT Rates

ValueRateDescription
standard21%Standard rate
reduced12%First reduced rate
reduced210%Second reduced rate
zero0%Zero VAT

Payment Methods

ValueDescription
bankBank transfer
cashCash payment
codCash on delivery
cardCard payment
paypalPayPal
customCustom (see custom_payment_method)

Languages

ValueLanguage
czCzech
skSlovak
enEnglish
deGerman
frFrench
itItalian
esSpanish
ruRussian
plPolish
huHungarian
roRomanian

Subject Types

ValueDescription
customerCustomer only
supplierSupplier only
bothBoth customer and supplier

Invoice Actions

ActionDescription
mark_as_sentMark invoice as sent
cancelCancel invoice
undo_cancelRevert cancellation
lockLock from editing
unlockUnlock for editing
mark_as_uncollectibleMark as bad debt
undo_uncollectibleRevert uncollectible

Expense Actions

ActionDescription
lockLock from editing
unlockUnlock for editing

OSS Modes (EU One Stop Shop)

ValueDescription
disabledOSS disabled
serviceOSS for services
goodsOSS for goods

Proforma Followup Documents

ValueDescription
final_invoice_paidAuto-create paid invoice
final_invoiceManual invoice creation
tax_documentAuto-create tax document
noneNo followup document

OCR Status

ValueDescription
createdOCR requested
processingOCR in progress
processing_failedOCR failed
processing_rejectedFile rejected
processedSuccessfully processed

Czech-Specific Fields

API FieldCzechExample
registration_noIČO12345678
vat_noDIČCZ12345678
local_vat_noSK DIČ1234567890
taxable_fulfillment_dueDUZP2024-01-15
transferred_tax_liabilityPřenesená daňová povinnosttrue
supply_codeKód předmětu plnění4

Line Item Structure

{
  "name": "Service description",
  "quantity": 10,
  "unit_name": "hours",
  "unit_price": 1500,
  "vat_rate": 21,
  "inventory_item_id": 123,
  "sku": "PROD-001"
}

Line Operations

OperationMethod
Add lineOmit id
Update lineInclude id
Delete lineInclude id and _destroy: true

References

Core Documentation

Resource Documentation

Additional Resources


Error Handling

StatusMeaningAction
400Bad RequestCheck date formats, User-Agent header
401UnauthorizedRefresh OAuth token
402Payment RequiredFakturoid account blocked
403ForbiddenPermission denied, resource limits
404Not FoundResource doesn't exist
422Validation ErrorCheck errors field for details
429Rate LimitedWait for X-RateLimit reset
503UnavailableMaintenance, retry later

Token Management

# Get new token
python scripts/​auth.py credentials --save

# Check token status
python scripts/​auth.py status

# Refresh expired token (Authorization Code flow)
python scripts/​auth.py refresh

# Revoke token
python scripts/​auth.py revoke

Token file: ~/​.fakturoid/​token.json


Rate Limiting

Headers on every response:

X-RateLimit-Policy: default;q=400;w=60
X-RateLimit: default;r=398;t=55
  • q=400: Max 400 requests
  • w=60: Per 60 seconds window
  • r=398: Remaining requests
  • t=55: Seconds until reset

When exceeded: 429 Too Many Requests - wait for reset.

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
Any Summary logo
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View