Skip to main content

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 Invoice

Response

Same structure, but sent_date: null

Retrieve Invoice

Get invoice by ID.
nodejs

Response


Update Invoice

Modify existing invoice.
nodejs

Parameters

Same as Create Invoice (all optional)
Updating published invoices may confuse customers. Use with caution.

Pay Invoice

Manually mark invoice as paid (offline payments).
nodejs

Response

Returns updated invoice with status: "paid"

Send Draft Invoice

Publish draft and notify customer.
nodejs

Response

Returns updated invoice with status: "not-paid" and sent_date

Send Reminder

Send payment reminder to customer.
nodejs
Increments 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 parameters
  • not_found - Invoice doesn’t exist
  • already_paid - Invoice already paid
  • authentication_error - Invalid API key
  • rate_limit_exceeded - Too many requests