Fastbill

From HybridAIOne/hybridclaw · View interactive version

Fastbill is an AI agent skill from the GitHub repository HybridAIOne/hybridclaw. Work with FastBill invoices, customers, payments, reminders, and e-invoice exports through the FastBill XML API.

How to use this skill

Skill file

FastBill

Use this skill for FastBill invoices, customers, payments, reminders, and

document metadata. The helper wraps concrete FastBill API services: it

serializes JSON-shaped inputs to XML and parses XML responses.

Core Rules

curl, ad hoc node -e, grep, or shell parsing for FastBill.

The /api/1.0/ prefix is only for secret-route matching.

build, or ask for the FastBill API key.

--dry-run when converting free text, CSV, or time tracking into invoice data.

the exact ID before writing.

Commands

Show commands:

node skills/fastbill/fastbill.cjs --help

Build an http_request payload for the built-in http_request tool:

node skills/fastbill/fastbill.cjs http-request invoice.get --filter-json '{"INVOICE_ID":"123"}'
node skills/fastbill/fastbill.cjs http-request customer.create --data-json '{"CUSTOMER_TYPE":"business","ORGANIZATION":"Acme GmbH","COUNTRY_CODE":"DE"}' --operator-grant

Parse a saved http_request response wrapper/body:

node skills/fastbill/fastbill.cjs parse-response --body-file /tmp/fastbill-response.json

Direct helper network calls are only for operator-controlled shell tests with a

valid gateway token already exported:

node skills/fastbill/fastbill.cjs request invoice.get --filter-json '{"INVOICE_ID":"123"}'

Common invoice payloads:

node skills/fastbill/fastbill.cjs http-request invoice.get --filter-json '{"END_DUE_DATE":"2026-04-08"}' --limit 100
node skills/fastbill/fastbill.cjs http-request invoice.create --data-json '{"CUSTOMER_ID":"123","INVOICE_TITLE":"Consulting Januar - Juni 2026","ITEMS":{"ITEM":[{"DESCRIPTION":"Consulting","QUANTITY":"8","UNIT_PRICE":"120.00","VAT_PERCENT":"19"}]}}' --operator-grant
node skills/fastbill/fastbill.cjs http-request invoice.update --data-json '{"INVOICE_ID":"456","INVOICE_TITLE":"YouGov SVOD Januar - Juni 2026"}' --operator-grant
node skills/fastbill/fastbill.cjs http-request invoice.setpaid --data-json '{"INVOICE_ID":"456","PAID_DATE":"2026-05-07","PAYMENT_METHOD":"bank transfer"}' --operator-grant
node skills/fastbill/fastbill.cjs http-request invoice.sendbyemail --data-json '{"INVOICE_ID":"456","RECIPIENT":{"TO":"billing@example.com"},"SUBJECT":"Payment reminder","MESSAGE":"Please review the outstanding invoice and payment status."}' --operator-grant

Clone / Copy Invoice

FastBill's API does not expose a dedicated invoice clone/copy service, even

though the UI has one. Implement clone as invoice.get then invoice.create.

  1. Use one targeted invoice.get; prefer date, customer/project text, title,

and service-period terms over broad account-wide searches.

  1. Select one source invoice. If ambiguous, ask for the invoice ID.
  2. Copy relevant source fields: CUSTOMER_ID, CUSTOMER_COSTCENTER_ID,

CONTACT_ID, CURRENCY_CODE, TEMPLATE_ID/TEMPLATE_HASH, INTROTEXT,

INVOICE_TITLE, references, discounts, VAT settings, and ITEMS.

  1. Omit lifecycle/source fields: INVOICE_ID, INVOICE_NUMBER, STATE,

PAID_DATE, PAYMENTS, DOCUMENT_URL, DETAILS_URL, totals, and

cancellation flags.

  1. Apply requested changes, then create the draft with

invoice.create --operator-grant. Extra reads need a concrete missing field.

Invoice Title Fields

invoice.update. Do not use TITLE, NAME, or SUBJECT.

INVOICE_TITLE.

Write Services

These require --operator-grant: customer.create/update/delete,

contact.create/update/delete, invoice.create/update/delete/complete/cancel/lock/sendbyemail/sendbypost/setpaid,

estimate.create/delete/sendbyemail/createinvoice, article.create/update/delete,

recurring.create/update/delete, revenue.create/setpaid/delete,

expense.create, project.create/update/delete, time.create/update/delete,

and document.create, webhook.create/delete.

Errors

not reach FastBill; use built-in http_request in normal runtime.

FastBill rejected the stored Basic credential.

References

Validation

Run:

python3 skills/skill-creator/scripts/quick_validate.py skills/fastbill
node skills/fastbill/fastbill.cjs --help
node skills/fastbill/fastbill.cjs http-request invoice.get --filter-json '{"INVOICE_ID":"123"}'
node skills/fastbill/fastbill.cjs request invoice.get --filter-json '{"INVOICE_ID":"123"}' --dry-run
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.