Skip to main content
POST
Error

Authorizations

authorization
string
header
required

Body

application/json

Send project_id and client_id to create an empty invoice, or send purchase_order_id to create the invoice from a purchase order. With a purchase order, the project, the client and the items come from the purchase order, and project_id and client_id are not needed.

purchase_order_id
integer

Create the invoice from this purchase order.

project_id
integer

Required when purchase_order_id is not sent.

client_id
integer

Required when purchase_order_id is not sent.

document_template_id
integer

Defaults to the current client invoice template of the project.

label
string
project_name
string
invoice_date
string<date>
note
string
tax_rate_id
integer
metadata
object

Custom key-value data. Up to 50 keys; key up to 40 characters; string value up to 500 characters.

Response

Created

id
integer
project_id
integer
status
enum<string>
Available options:
draft,
sent,
paid,
overdue,
deposited,
void,
paid_partially,
revised
invoice_date
string | null
note
string | null
payment_terms
object[]
label
string
created_at
string<date-time>
updated_at
string<date-time>
tax_amount
number
taxable_amount
number
amount
number
amount_with_tax
number
balance
number
products_amount
number
services_amount
number
balance_transactions_amount
number
client
object
items
object[]
client_proposal_id
integer | null
purchase_order_ids
integer[]
metadata
object

Custom key-value data. Up to 50 keys; key up to 40 characters; string value up to 500 characters.

payments
object[]