task_time_not_invoiceable
The requested hours cannot be invoiced and the message names the reason: the project has no billing client or that client no longer accepts invoices, there is no hourly rate or priced product, an entry is not billable, is running or belongs to another project, there are no billable entries, or the selection is ambiguous.
| Code | Type | HTTP | Category |
|---|---|---|---|
task_time_not_invoiceable | invalid_request_error | 422 | Tasks |
Cause
The requested hours cannot be invoiced and the message names the reason: the project has no billing client or that client no longer accepts invoices, there is no hourly rate or priced product, an entry is not billable, is running or belongs to another project, there are no billable entries, or the selection is ambiguous.
What to do
Fill in the project's billing_contact_id and billing_hourly_rate or billing_product_id with PUT /v1/projects/{project}, and send entry_ids or period, never both. Check the selection first with POST /v1/projects/{project}/time-invoices/preview.