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
- Use the helper plus built-in
http_request for live API calls. Do not use
curl, ad hoc node -e, grep, or shell parsing for FastBill.
- FastBill API URL:
https://my.fastbill.com/api/1.0/api.php.
The /api/1.0/ prefix is only for secret-route matching.
- Basic auth is injected by the gateway from
FASTBILL_BASIC_AUTH. Never print,
build, or ask for the FastBill API key.
- Writes require explicit operator intent and
--operator-grant. Prefer
--dry-run when converting free text, CSV, or time tracking into invoice data.
- Prefer invoice IDs for writes. If multiple invoices/customers match, ask for
the exact ID before writing.
- If unsure about a service or field, check
https://apidocs.fastbill.com.
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.
- Use one targeted
invoice.get; prefer date, customer/project text, title,
and service-period terms over broad account-wide searches.
- Select one source invoice. If ambiguous, ask for the invoice ID.
- 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.
- Omit lifecycle/source fields:
INVOICE_ID, INVOICE_NUMBER, STATE,
PAID_DATE, PAYMENTS, DOCUMENT_URL, DETAILS_URL, totals, and
cancellation flags.
- Apply requested changes, then create the draft with
invoice.create --operator-grant. Extra reads need a concrete missing field.
Invoice Title Fields
- Invoice title field:
INVOICE_TITLE in invoice.create and
invoice.update. Do not use TITLE, NAME, or SUBJECT.
- Existing draft title edit:
invoice.update with INVOICE_ID and
INVOICE_TITLE.
INTROTEXT is intro/body text before line items.
ITEMS.ITEM[].DESCRIPTION is line-item text.
SUBJECT is only for email actions such as invoice.sendbyemail.
- Do not set
INVOICE_NUMBER when creating or editing a draft 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
- Gateway 401 mentioning
WEB_API_TOKEN or GATEWAY_API_TOKEN: the request did
not reach FastBill; use built-in http_request in normal runtime.
- Missing/forbidden secret route: fix
FASTBILL_BASIC_AUTH or its route.
- FastBill 401 with
Wrong API KEY / credentials: the route worked, but
FastBill rejected the stored Basic credential.
References
- Operator setup and API notes: references/operator-setup.md
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
1---2name: fastbill3description: Work with FastBill invoices, customers, payments, reminders, and e-invoice exports through the FastBill XML API.4---5# FastBill67Use this skill for FastBill invoices, customers, payments, reminders, and8document metadata. The helper wraps concrete FastBill API services: it9serializes JSON-shaped inputs to XML and parses XML responses.1011## Core Rules1213- Use the helper plus built-in `http_request` for live API calls. Do not use14 `curl`, ad hoc `node -e`, `grep`, or shell parsing for FastBill.15- FastBill API URL: `https://my.fastbill.com/api/1.0/api.php`.16 The `/api/1.0/` prefix is only for secret-route matching.17- Basic auth is injected by the gateway from `FASTBILL_BASIC_AUTH`. Never print,18 build, or ask for the FastBill API key.19- Writes require explicit operator intent and `--operator-grant`. Prefer20 `--dry-run` when converting free text, CSV, or time tracking into invoice data.21- Prefer invoice IDs for writes. If multiple invoices/customers match, ask for22 the exact ID before writing.23- If unsure about a service or field, check `https://apidocs.fastbill.com`.2425## Commands2627Show commands:2829```bash30node skills/fastbill/fastbill.cjs --help31```3233Build an `http_request` payload for the built-in `http_request` tool:3435```bash36node skills/fastbill/fastbill.cjs http-request invoice.get --filter-json '{"INVOICE_ID":"123"}'37node skills/fastbill/fastbill.cjs http-request customer.create --data-json '{"CUSTOMER_TYPE":"business","ORGANIZATION":"Acme GmbH","COUNTRY_CODE":"DE"}' --operator-grant38```3940Parse a saved `http_request` response wrapper/body:4142```bash43node skills/fastbill/fastbill.cjs parse-response --body-file /tmp/fastbill-response.json44```4546Direct helper network calls are only for operator-controlled shell tests with a47valid gateway token already exported:4849```bash50node skills/fastbill/fastbill.cjs request invoice.get --filter-json '{"INVOICE_ID":"123"}'51```5253Common invoice payloads:5455```bash56node skills/fastbill/fastbill.cjs http-request invoice.get --filter-json '{"END_DUE_DATE":"2026-04-08"}' --limit 10057node 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-grant58node skills/fastbill/fastbill.cjs http-request invoice.update --data-json '{"INVOICE_ID":"456","INVOICE_TITLE":"YouGov SVOD Januar - Juni 2026"}' --operator-grant59node skills/fastbill/fastbill.cjs http-request invoice.setpaid --data-json '{"INVOICE_ID":"456","PAID_DATE":"2026-05-07","PAYMENT_METHOD":"bank transfer"}' --operator-grant60node 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-grant61```6263## Clone / Copy Invoice6465FastBill's API does not expose a dedicated invoice clone/copy service, even66though the UI has one. Implement clone as `invoice.get` then `invoice.create`.67681. Use one targeted `invoice.get`; prefer date, customer/project text, title,69 and service-period terms over broad account-wide searches.702. Select one source invoice. If ambiguous, ask for the invoice ID.713. Copy relevant source fields: `CUSTOMER_ID`, `CUSTOMER_COSTCENTER_ID`,72 `CONTACT_ID`, `CURRENCY_CODE`, `TEMPLATE_ID`/`TEMPLATE_HASH`, `INTROTEXT`,73 `INVOICE_TITLE`, references, discounts, VAT settings, and `ITEMS`.744. Omit lifecycle/source fields: `INVOICE_ID`, `INVOICE_NUMBER`, `STATE`,75 `PAID_DATE`, `PAYMENTS`, `DOCUMENT_URL`, `DETAILS_URL`, totals, and76 cancellation flags.775. Apply requested changes, then create the draft with78 `invoice.create --operator-grant`. Extra reads need a concrete missing field.7980## Invoice Title Fields8182- Invoice title field: `INVOICE_TITLE` in `invoice.create` and83 `invoice.update`. Do not use `TITLE`, `NAME`, or `SUBJECT`.84- Existing draft title edit: `invoice.update` with `INVOICE_ID` and85 `INVOICE_TITLE`.86- `INTROTEXT` is intro/body text before line items.87- `ITEMS.ITEM[].DESCRIPTION` is line-item text.88- `SUBJECT` is only for email actions such as `invoice.sendbyemail`.89- Do not set `INVOICE_NUMBER` when creating or editing a draft title.9091## Write Services9293These require `--operator-grant`: `customer.create/update/delete`,94`contact.create/update/delete`, `invoice.create/update/delete/complete/cancel/lock/sendbyemail/sendbypost/setpaid`,95`estimate.create/delete/sendbyemail/createinvoice`, `article.create/update/delete`,96`recurring.create/update/delete`, `revenue.create/setpaid/delete`,97`expense.create`, `project.create/update/delete`, `time.create/update/delete`,98and `document.create`, `webhook.create/delete`.99100## Errors101102- Gateway 401 mentioning `WEB_API_TOKEN` or `GATEWAY_API_TOKEN`: the request did103 not reach FastBill; use built-in `http_request` in normal runtime.104- Missing/forbidden secret route: fix `FASTBILL_BASIC_AUTH` or its route.105- FastBill 401 with `Wrong API KEY` / credentials: the route worked, but106 FastBill rejected the stored Basic credential.107108## References109110- Operator setup and API notes: [references/operator-setup.md](references/operator-setup.md)111112## Validation113114Run:115116```bash117python3 skills/skill-creator/scripts/quick_validate.py skills/fastbill118node skills/fastbill/fastbill.cjs --help119node skills/fastbill/fastbill.cjs http-request invoice.get --filter-json '{"INVOICE_ID":"123"}'120node skills/fastbill/fastbill.cjs request invoice.get --filter-json '{"INVOICE_ID":"123"}' --dry-run121```