Skip to main content
POST
Generate an invoice
Deprecated: This is a v1 endpoint and is deprecated. Please use the v2 API instead. v1 endpoints will be removed in a future release.
Replace {your-subdomain} with your workspace’s subdomain.
Learn how to find your subdomain in Workspace subdomain.

Headers

X-Api-Key
string
default:your-api-key
required

Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.

Path Parameters

client_id
string
required

Unique ID of the client for which you want to retrieve or update details. Refer to Getting the Client ID section for detailed instructions.

Body

application/json
email
string<email>
required

Email of the person creating the invoice.

Example:

"john@example.com"

number
string
required

Invoice identifier.

Example:

"INV-EXT-001"

total
number<float>
required

Total amount of the invoice.

Example:

500

invoice_time_entries
object[]
required

Array of time entries to include in the invoice.

issue_date
string

Issue date of the invoice in MM/DD/YYYY format.

Example:

"12/25/2023"

due_date
string

Due date of the invoice in MM/DD/YYYY format.

Example:

"01/25/2024"

due_date_period
number

Due date period for the invoice in days.

Example:

30

interval
string

Billing interval for the invoice.

Example:

"monthly"

notes
string

Additional notes for the invoice.

Example:

"Payment terms: Net 30 days"

include_hours_by_person
boolean

Whether to include hours breakdown by person.

Example:

true

include_hours_by_task
boolean

Whether to include hours breakdown by task.

Example:

false

include_time_entries
boolean

Whether to include detailed time entries.

Example:

true

send_automated_reminder_email
boolean

Whether to send automated reminder emails.

Example:

true

Whether to include payment link in the invoice.

Example:

true

payment_provider
enum<string>

Payment provider for the invoice.

Available options:
stripe,
undefined
Example:

"undefined"

display_task_name
boolean

Whether to display task names in the invoice.

Example:

true

display_person_name
boolean

Whether to display person names in the invoice.

Example:

true

display_date
boolean

Whether to display dates in the invoice.

Example:

true

display_note
boolean

Whether to display notes in the invoice.

Example:

true

display_project_name
boolean

Whether to display project names in the invoice.

Example:

false

project_id
string[]

Projects on which the invoice is to be generated. Refer to Getting the Project ID section for detailed instructions.

Example:
send_email
boolean

Whether to send the invoice via email. If true, invoice_details is required.

Example:

true

invoice_details
object

Email details for sending the invoice. Required when send_email is true.

tax_details
object[]

Array of tax details for the invoice.

Response

200 - application/json

OK - Request succeeded

invoice
object