DocsAPI ReferenceProject Rate/bff/project-rate/generate-invoice-from-time
postProject RateAdmin BFF

/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

7 total
Body · 7
projectIdnumberRequired
customerContactIdnumberRequired

The shop__contact row to bill.

fromstringRequired

Inclusive lower bound (YYYY-MM-DD).

tostringRequired

Inclusive upper bound (YYYY-MM-DD).

groupBystring

'flat' (one item) or 'day' (item per work_date).

vatRatenumber

Override VAT percent; defaults from org VAT-payer flag.

publicNoticestring

Free-form text shown to the customer.

Request

POST /bff/project-rate/generate-invoice-from-time

post
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.

Get API Key