/bff/project-rate/generate-invoice-from-time
Locks billable, unbilled time entries within the range, rounds per project rate policy, creates an invoice + items, and attaches each line back to the entries it consumed. Reversing the invoice (delete) returns the entries to WIP automatically.
ProjectRatepostBffProject-rateGenerate-invoice-from-time
Parameters
7 body
Body · 7
projectIdnumberRequiredcustomerContactIdnumberRequiredThe shop__contact row to bill.
fromstringRequiredInclusive lower bound (YYYY-MM-DD).
tostringRequiredInclusive upper bound (YYYY-MM-DD).
groupBystring'flat' (one item) or 'day' (item per work_date).
vatRatenumberOverride VAT percent; defaults from org VAT-payer flag.
publicNoticestringFree-form text shown to the customer.
Request
POST /bff/project-rate/generate-invoice-from-time
curl -X POST "https://api.bizkithub.com/bff/project-rate/generate-invoice-from-time" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"projectId": 0,
"customerContactId": 0,
"from": "example_from",
"to": "example_to",
"groupBy": "example_groupBy",
"vatRate": 0,
"publicNotice": "example_publicNotice"
}'Response
JSON payload
{
"success": true
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.