Skip to main content
GET
Therius creates one invoice per billing cycle. Each invoice records the charge attempt or attempts for that cycle, the outcome, and the final amount collected. You can retrieve all invoices for a subscription, or look up a specific invoice directly by its UUID.

List Invoices for a Subscription

GET /subscription/{id}/invoice returns all invoices for a given subscription in reverse-chronological order, as a bare array — see the response panel above for the full Invoice shape (status is open/paid/failed/void; the retry count field is paymentAttemptCount). lines[] is present only when the plan prices one or more usage meters: one line for the base plan fee (no meterId) plus one line per metered add-on. Absent or empty for a flat-fee invoice — the top-level amount is then the whole charge, and each line’s own amount sums to it.

Example


Retrieve a Specific Invoice

GET /subscription/invoice/{id} retrieves a single invoice by its UUID, regardless of which subscription it belongs to. Authenticates the same way as every other endpoint (Authorization: Bearer prv_production_xxx / prv_sandbox_xxx).

Path Parameters

string
required
The UUID of the invoice to retrieve.

Query Parameters

string
required
Your merchant account identifier.

Response

Returns a single invoice object with the same fields as described above.

Errors

Example

Authorizations

Authorization
string
header
required

Your secret API key: Bearer prv_production_xxx (production) or Bearer prv_sandbox_xxx (sandbox).

Path Parameters

id
string
required

Subscription UUID.

Query Parameters

merchantCode
string
required

Your merchant account identifier.

Response

200 - application/json

List of invoices

id
string

Invoice UUID.

subscriptionId
string

The subscription this invoice belongs to.

merchantId
integer
status
enum<string>

open - awaiting payment; paid - settled; failed - all payment attempts failed; void - cancelled, no longer collectible.

Available options:
open,
paid,
failed,
void
amount
integer

Invoice total in the currency minor units.

currency
string

ISO 4217 currency code.

exponent
integer

Decimal places for amount.

periodStart
string<date-time>

Start of the service period this invoice covers.

periodEnd
string<date-time>

End of the service period this invoice covers.

dueDate
string<date-time>
paymentAttemptCount
integer

Charge attempts made against this invoice, including dunning retries.

paidAt
string<date-time>
voidedAt
string<date-time>
createdAt
string<date-time>
updatedAt
string<date-time>
attempts
object[]

Per-attempt gateway results. Present on the single-invoice endpoint (GET /subscription/invoice/{id}).

lines
object[]

Itemisation - present only when the plan prices usage meters: one base-fee line (no meterId) plus one per metered add-on. Absent/empty for a flat-fee invoice.