Create Invoice
Creates and publishes an invoice immediately.Parameters
*Required if no line_items
**Required if no customer ID
Response
Create Draft Invoice
Creates invoice without sending to customer.nodejs
Parameters
Same as Create InvoiceResponse
Same structure, butsent_date: null
Retrieve Invoice
Get invoice by ID.nodejs
Response
Update Invoice
Modify existing invoice.nodejs
Parameters
Same as Create Invoice (all optional)Pay Invoice
Manually mark invoice as paid (offline payments).nodejs
Response
Returns updated invoice withstatus: "paid"
Send Draft Invoice
Publish draft and notify customer.nodejs
Response
Returns updated invoice withstatus: "not-paid" and sent_date
Send Reminder
Send payment reminder to customer.nodejs
reminder_count on invoice.
List Invoices
Retrieve paginated list of invoices.nodejs
Parameters
Response
Types Reference
LineItem
Discount
Invoice Object
Webhook Events
paymentrequest.success
Triggered when invoice is paid.invoice.overdue
Triggered when due date passes (production only).Error Responses
Common Error Codes
validation_error- Invalid parametersnot_found- Invoice doesn’t existalready_paid- Invoice already paidauthentication_error- Invalid API keyrate_limit_exceeded- Too many requests
