Overview
The Invoices API allows you to manage invoices programmatically. Invoices represent sales documents issued to customers, with support for payments, taxes, discounts, and multi-currency.Invoice Object
The invoice object contains the following fields:Unique identifier for the invoice
ID of the workspace this invoice belongs to
ID of the customer contact
ID of the document subtype (determines NCF format for Dominican Republic)
Invoice number (e.g., “INV-0001”, “B0100000001”)
Date the invoice was issued (YYYY-MM-DD)
Payment due date (YYYY-MM-DD)
Invoice status:
pending_payment, partially_paid, paid, cancelled, draftSubtotal before taxes and discounts
Total tax amount
Total discount amount
Final total amount
Outstanding balance (total_amount - amount_paid)
Total amount paid toward this invoice
Currency for this invoice
Payment terms (e.g., “Net 30”, “Due on Receipt”)
Additional notes or terms and conditions
Array of invoice line items
Array of payments applied to this invoice
Array of salesmen associated with this invoice
Creation timestamp
Last update timestamp
List Invoices
Retrieve a paginated list of invoices.Query Parameters
Page number for pagination
Number of items per page (max 100)
Filter by invoice status:
pending_payment, paid, partially_paid, cancelledFilter by customer contact ID
Filter by issue date (YYYY-MM-DD)
Sort field (prefix with
- for descending). Options: issue_date, document_number, total_amountResponse
Example
Get Invoice
Retrieve a specific invoice by ID, including related items, payments, and contact information.Path Parameters
Invoice ID
Response
Example
Create Invoice
Create a new invoice.Request Body
Customer contact ID
Document subtype ID (determines NCF sequence)
Invoice issue date (YYYY-MM-DD)
Payment due date (YYYY-MM-DD)
Payment terms (e.g., “Net 30”)
Additional notes or terms
Currency ID (defaults to workspace default currency)
Array of invoice line items
Product ID for this line item
Line item description (defaults to product name)
Quantity
Unit price
Discount amount or percentage
Array of tax IDs to apply to this item
Array of salesman IDs associated with this invoice
Response
Example
Creating an invoice automatically generates stock movements if products track inventory. The document number is auto-generated based on the document subtype’s NCF sequence.
Update Invoice
Update an existing invoice.Path Parameters
Invoice ID
Request Body
Same as Create Invoice endpoint. All fields are optional.Response
Delete Invoice
Delete an invoice.Path Parameters
Invoice ID
Response
Download Invoice PDF
Download invoice as PDF document.Path Parameters
Invoice ID
Response
Returns a PDF file withContent-Type: application/pdf.
Example
Validate NCF
Validate NCF (Dominican tax receipt number) for an invoice.Request Body
NCF number to validate
Document subtype ID
Response
Related Resources
Payments
Record payments against invoices
Quotations
Convert quotations to invoices
Contacts
Manage customer information
Products
Product catalog management