invoices
invoices

Create Invoice From Hours

Compose a DRAFT invoice from unbilled hours for a client + period.

The agent-natural intent verb: gathers unbilled billable entries, builds line items (summary | by_project | per_day), creates a draft, and links the entries. Never sends — sending is a separate, separately-scoped call.

post/api/v1/invoices/from-hours

Request

  • Base URL: https://api.peil.app (the document declares no server; this is the origin it was published from)
  • URL: https://api.peil.app/api/v1/invoices/from-hours
  • Auth: none declared

Request body

client_idinteger required
period_startstring date required
period_endstring date required
grouping'summary' | 'by_project' | 'per_day'
entry_idsinteger[] nullable
notesstring nullable
reverse_chargeboolean

Response

Successful Response

entry_countinteger required
total_hoursnumber required

Changes

No recorded changes to this operation across all 1 revision of this API.