paid. All routes require authentication.
Invoice statuses
Create an invoice
Request body
string
required
Invoice title shown to the customer. Maximum 255 characters.
string
required
Full name of the customer being billed. Maximum 255 characters.
string
required
Email address of the customer. Used when sending the invoice by email.
string
Optional UUID of an existing customer in your account. Links the invoice to a saved customer record.
string
Invoice currency:
NGN or USD. Defaults to your account currency.string
Invoice issue date in ISO 8601 format (e.g.
2024-01-15). Defaults to today.string
Payment due date in ISO 8601 format. Optional. When set, Dubu will mark the invoice as
overdue after this date if unpaid.string
Optional notes or payment instructions displayed on the invoice. Maximum 2,000 characters.
array
required
At least one line item is required.
Example
201 Created with the invoice object.
Invoice response fields
string
Invoice UUID.
string
Human-readable invoice number (e.g.
INV-0001).string
Invoice title.
string
Customer full name.
string
Customer email.
string
Invoice currency.
string
Current invoice status.
number
Total invoice amount including all taxes and discounts.
string
Invoice issue date.
string
Payment due date.
null if not set.string
ISO 8601 timestamp of when payment was received.
null until paid.array
Array of line item objects attached to this invoice.
List invoices
Query parameters
string
Filter by status:
draft, pending, paid, overdue, or canceled.string
Search by customer name, email, or invoice number.
number
Page number (1-indexed).
number
Results per page. Maximum
100.Example
Get an invoice
string
required
UUID of the invoice to retrieve.
Update an invoice
draft or pending status. Use the line-items endpoints to modify line items.
string
required
UUID of the invoice to update.
string
New invoice title.
string
Updated customer name.
string
Updated customer email.
string
NGN or USD.string
Updated issue date.
string
Updated due date. Pass
null to remove it.string
Updated notes. Pass
null to clear.string
Manually set status to
draft, pending, or canceled.Delete an invoice
paid status.
string
required
UUID of the invoice to delete.
Send invoice by email
customer_email. Calling this endpoint also transitions the invoice status from draft to pending.
string
required
UUID of the invoice to send.
Add a line item
string
required
UUID of the invoice.
string
required
Line item description. Maximum 500 characters.
number
required
Number of units.
number
required
Price per unit.
string
Optional product UUID. When provided, the description and pricing default to the product’s values.
string
none, percentage, or fixed.number
Tax amount for this line item.
string
none, percentage, or fixed.number
Discount amount for this line item.
201 Created with the new line item object.
Remove a line item
string
required
UUID of the invoice.
string
required
UUID of the line item to remove.