Invoices

get_invoices

Get list of invoices for the authenticated user's organization

Parameters

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

searchstring

Search term for invoice number or client name

relationsArray<string>

Relations to include (e.g., ["organizationContact", "invoiceItems", "tags"])

statusstringDRAFTSENTVIEWEDACCEPTEDACTIVEFULLY_PAIDCANCELLED

Filter by invoice status

invoiceTypestringBY_EMPLOYEE_HOURSBY_PROJECT_HOURSBY_TASK_HOURSBY_PRODUCTSBY_FLAT_FEEDETAILS_INVOICE_ITEMS

Filter by invoice type

paidboolean

Filter by payment status

startDatestring

Filter invoices from this date (ISO format)

endDatestring

Filter invoices until this date (ISO format)

get_invoice_count

Get invoice count in the authenticated user's organization

Parameters

statusstringDRAFTSENTVIEWEDACCEPTEDACTIVEFULLY_PAIDCANCELLED

Filter by invoice status

paidboolean

Filter by payment status

startDatestring

Filter invoices from this date (ISO format)

endDatestring

Filter invoices until this date (ISO format)

get_invoice

Get a specific invoice by ID

Parameters

idstring<uuid>required

The invoice ID

relationsArray<string>

Relations to include (e.g., ["organizationContact", "invoiceItems", "tags"])

create_invoice

Create a new invoice in the authenticated user's organization

Body

application/json
invoice_dataobjectrequired

The data for creating the invoice

Show child attributes
invoiceNumberstringrequired

The invoice number (required)

invoiceDatestringrequired

The invoice date (required)

dueDatestringrequired

The due date (required)

currencystringrequired

The currency (required)

[key: string]any

update_invoice

Update an existing invoice

Parameters

idstring<uuid>required

The invoice ID

invoice_dataobjectrequired

The data for updating the invoice

update_invoice_action

Update the action/status of an invoice

Parameters

idstring<uuid>required

The invoice ID

statusstringDRAFTSENTVIEWEDACCEPTEDACTIVEFULLY_PAIDCANCELLED

The new status for the invoice

isEstimateboolean

Whether this is an estimate

update_estimate_status

Update estimate status of an invoice

Body

application/json
idstring<uuid>required

The invoice ID

dataobjectrequired

Data to update for the estimate

Show child attributes
isEstimateboolean
statusstringDRAFTSENTVIEWEDACCEPTEDACTIVEFULLY_PAIDCANCELLED
paidboolean

delete_invoice

Delete an invoice

Parameters

idstring<uuid>required

The invoice ID

get_invoice_items

Get items for a specific invoice

Parameters

invoiceIdstring<uuid>required

The invoice ID

relationsArray<string>

Relations to include (e.g., ["product", "project", "task"])

send_invoice_email

Send an invoice via email

Body

application/json
emailstring<email>required

Email address to send the invoice to

paramsobjectrequired

Email parameters including invoice ID

Show child attributes
invoiceIdstring<uuid>required
organizationIdstring<uuid>
tenantIdstring<uuid>

download_invoice_pdf

Download PDF for an invoice as binary data

Parameters

idstring<uuid>required

The invoice ID

get_highest_invoice_number

Get the highest invoice number in the organization

download_invoice_payment_pdf

Download payment PDF for an invoice

Parameters

idstring<uuid>required

The invoice ID

Copyright © 2023-Present Ever Co. LTD.Docs by Sourcey