DRAFT for invoices you are not yet ready to collect on, or OPEN to immediately signal that payment is due. Retempo marks an invoice as PAID only after a confirmed settlement is recorded against it.
Request Body
string
required
The ID of the service this invoice belongs to.
string
required
The ID of the payment plan associated with this invoice. The plan must belong to the specified service.
string
required
The ID of the existing Retempo user being billed.
string | number
required
The amount to bill, as a decimal string (e.g.
"49.000000") or number. Must be a non-negative value.string
default:"USDC"
The currency for the invoice. Defaults to
USDC if omitted.string
default:"DRAFT"
The initial status of the invoice. Accepted values:
DRAFT, OPEN, VOID, EXPIRED. Defaults to DRAFT. You cannot set this to PAID on creation — doing so returns a 400 error.string
An ISO 8601 datetime string specifying when payment is due. If omitted, no due date is set.
string
The ID of a subscription to associate with this invoice. Optional — use when the invoice is tied to an ongoing subscription. The subscription must belong to the same service and user.
Response
A successful request returns HTTP201 Created with the new invoice object and all related records.
object
The newly created invoice with all related records included.