The invoices API lets you generate professional payment requests for your customers. Each invoice contains customer details, a list of line items (which can reference your product catalog or be entered as custom line items), and optional due dates and notes. Once an invoice is ready, you can send it directly to your customer’s email address. Dubu tracks payment status automatically — when a customer pays via a checkout link linked to the invoice, the status updates toDocumentation Index
Fetch the complete documentation index at: https://docs.dubupay.com/llms.txt
Use this file to discover all available pages before exploring further.
paid. All routes require authentication.
Invoice statuses
| Status | Description |
|---|---|
draft | Invoice is being prepared and has not been sent. |
pending | Invoice has been sent and is awaiting payment. |
paid | Payment has been received. |
overdue | The due date has passed without payment. |
canceled | Invoice was manually canceled. |
Create an invoice
Request body
Invoice title shown to the customer. Maximum 255 characters.
Full name of the customer being billed. Maximum 255 characters.
Email address of the customer. Used when sending the invoice by email.
Optional UUID of an existing customer in your account. Links the invoice to a saved customer record.
Invoice currency:
NGN or USD. Defaults to your account currency.Invoice issue date in ISO 8601 format (e.g.
2024-01-15). Defaults to today.Payment due date in ISO 8601 format. Optional. When set, Dubu will mark the invoice as
overdue after this date if unpaid.Optional notes or payment instructions displayed on the invoice. Maximum 2,000 characters.
At least one line item is required.
Example
201 Created with the invoice object.
Invoice response fields
Invoice UUID.
Human-readable invoice number (e.g.
INV-0001).Invoice title.
Customer full name.
Customer email.
Invoice currency.
Current invoice status.
Total invoice amount including all taxes and discounts.
Invoice issue date.
Payment due date.
null if not set.ISO 8601 timestamp of when payment was received.
null until paid.Array of line item objects attached to this invoice.
List invoices
Query parameters
Filter by status:
draft, pending, paid, overdue, or canceled.Search by customer name, email, or invoice number.
Page number (1-indexed).
Results per page. Maximum
100.Example
Get an invoice
UUID of the invoice to retrieve.
Update an invoice
draft or pending status. Use the line-items endpoints to modify line items.
UUID of the invoice to update.
New invoice title.
Updated customer name.
Updated customer email.
NGN or USD.Updated issue date.
Updated due date. Pass
null to remove it.Updated notes. Pass
null to clear.Manually set status to
draft, pending, or canceled.Delete an invoice
paid status.
UUID of the invoice to delete.
Send invoice by email
customer_email. Calling this endpoint also transitions the invoice status from draft to pending.
UUID of the invoice to send.
Add a line item
UUID of the invoice.
Line item description. Maximum 500 characters.
Number of units.
Price per unit.
Optional product UUID. When provided, the description and pricing default to the product’s values.
none, percentage, or fixed.Tax amount for this line item.
none, percentage, or fixed.Discount amount for this line item.
201 Created with the new line item object.
Remove a line item
UUID of the invoice.
UUID of the line item to remove.