Billing

Write time line descriptions

View as Markdown

POSThttps://paysuitett.com/api/v1/billing/descriptions

Uses the same avoid-names list and optional AI writer as the app. Without a server Claude key, enabled is false and every line receives its plain fallback. Unknown fields are rejected.

Access. Master key, or a personal key held by an owner/admin or accountant. The business must have the invoices service. Runs as the holder under their row-level security.

Body

A JSON object. Fields marked required must be sent.

periodstringrequired
Service period text.
clientNamesarray
Internal client names to avoid.
linesarrayrequired
Up to 100 {key, title, hours, taskTitles} objects; up to 12 task titles each.

Response

200 with a JSON body, as in the example.