Run the bundled txcli binary to interact with the Tripletex API through an OpenAPI-validated CLI. Use this when tasks require any Tripletex v2 endpoint, and use `catalog --json` plus command-level `--schema` to discover exact commands and request bodies.
Use this skill to run the packaged txcli binary from this skill directory.
Set:
TRIPLETEX_BASE_URL (example: https://tx-proxy.ainm.no/v2)TRIPLETEX_SESSION_TOKENOptional:
TRIPLETEX_COMPANY_ID is not required by the binary; use --company-id if needed.From the skill root, use:
scripts/txcli.sh --help
Pass arguments directly:
scripts/txcli.sh employees post --json '{"firstName":"Ola","lastName":"Nordmann","email":"[email protected]"}'
scripts/txcli.sh customers search --query count=20 --query from=0
scripts/txcli.sh employees post --schema --resolve-refs=false
scripts/txcli.sh employees post --schema --resolve-refs=true --max-ref-depth=1
scripts/txcli.sh catalog --json --path-contains /employee/standardTime
scripts/txcli.sh catalog --json
scripts/txcli.sh catalog --json --method GET --path-contains /order
scripts/txcli.sh catalog --group employees
scripts/txcli.sh --help
scripts/txcli.sh purchasing --help
scripts/txcli.sh accounting --help
scripts/txcli.sh --help, then scripts/txcli.sh <group> --help) for fast human-friendly navigation.scripts/txcli.sh catalog --json when command names are ambiguous, when exact endpoint mapping is needed, or when building deterministic agent/script workflows.--schema outputs only the endpoint requestBody schema (or null if no request body).--schema can become extremely large if refs are expanded deeply on recursive models. Prefer:
--resolve-refs=false (recommended default for discovery), or--resolve-refs=true --max-ref-depth=1 (or 2 only when needed).--path-param key=value and --query key=value.--json '<json>'.accounting, purchasing, projects, invoicing, timesheet, salary, etc.). Always use catalog --json to find the exact command before executing API calls.422 Validation Error or other API rejections when creating or updating resources, do not immediately guess or retry.employee, division, or employment record) to inspect their current state.dateOfBirth on an employee, or municipality on a division) are missing.