Skip to main content
POST
Create an Invoice
Creates a new invoice for a customer. Once finalized, an invoice generates a hosted payment URL (hosted_invoice_url) where the customer can select their preferred payment method.

Request Body

string
required
The ID of the customer who will be billed (cus_...).
integer | string
required
The total amount due on the invoice.
string
required
Three-letter ISO currency code (XAF, XOF, GHS, KES, USD, EUR).
string
An arbitrary description or summary of items included on this invoice.
string
The date on which payment for this invoice is due (ISO 8601 format, e.g. 2026-11-20).
boolean
default:"true"
Controls whether Pursar will automatically finalize and send the invoice.

Code Examples


Response