Skip to main content

How billing works

The Korint platform handles premium calculation, billing and payment collection for all of its live policies.

Invoice object​

Invoices contain, but are not limited to:

  • The date of issuance
  • The period covered by the invoice
  • The list of invoiced items, with a detailed breakdown of fees and taxes for each item

See here for the API reference. That endpoint leaves out cancelled invoices and invoices whose tax-inclusive total is zero, unless you pass includeCancelledAndZeroAmount=true. A cancelled invoice is still returned when a listed credit note or replacement invoice refers to it.

Invoice lifecycle​

Invoices will automatically move through different statuses as part of the Korint platform's processing. An invoice is generally linked to a payment, meaning an attempt to charge the customer. Find out more about payment statuses here Generally, the lifecycle will be as follows:

  • An invoice is always created in the DRAFTED status.
  • The invoice becomes ISSUED as soon as it is drafted. Once an invoice is issued, it appears in the customer's list of invoices and a payment charge is attempted for that invoice.
  • Once a payment provider has picked up the charge attempt, the invoice becomes PAYMENT_IN_PROGRESS.
  • The invoice's status will update depending on the payment provider's updates about the payment processing. If the payment succeeds, the invoice becomes PAID. If the payment fails, the invoice becomes PAYMENT_FAILED. The invoice will also become PAYMENT_DISPUTED if the end customer opens a dispute on the payment. A payment failure or dispute can lead to further action: a failed or disputed invoice can be replaced by a new invoice, in which case the original moves to WRITTEN_OFF.
  • Optionally, at any time, you can change the status of an invoice to CANCELLED.

Some invoices might be negative, indicating that the customer should be reimbursed. In that case the statuses will be slightly different, find out more about refunds.

Invoice statuses​

The following table describes all possible invoice statuses and their transitions:

StatusDescriptionNext Possible States
DRAFTEDInvoice created but not yet sent to customerISSUED, CANCELLED
ISSUEDInvoice sent to customer, awaiting paymentPAYMENT_IN_PROGRESS, PAID, PAYMENT_FAILED, CANCELLED; for a negative invoice REFUND_IN_PROGRESS, REFUND_NOT_HANDLED, or FINALIZED directly for a credit invoice
PAYMENT_IN_PROGRESSPayment processing has startedPAID, PAYMENT_FAILED, PAYMENT_DISPUTED
PAIDPayment receivedPAYMENT_DISPUTED, Terminal state
PAYMENT_DISPUTEDPayment disputed by end customer.PAYMENT_IN_PROGRESS, PAID, PAYMENT_FAILED, RECONCILED, WRITTEN_OFF, Terminal state
PAYMENT_FAILEDPayment failedPAYMENT_IN_PROGRESS, PAID, RECONCILED, WRITTEN_OFF, Terminal state
REFUND_IN_PROGRESSRefund invoice currently in progress.FINALIZED, PARTIALLY_FINALIZED
PARTIALLY_FINALIZEDOnly a partial reimbursement was completed.REFUND_IN_PROGRESS, FINALIZED, Terminal state
FINALIZEDInvoice was reimbursedTerminal state
RECONCILEDIn the case of smart reimbursement, this invoice was taken into account in a reimbursement invoice.Terminal state
REFUND_NOT_HANDLEDKorint could not refund the customer automatically; see refund limitations for the cases and the refundNotHandledReason each sets.FINALIZED, Terminal state
WRITTEN_OFFInvoice was replaced by another one with added fees.Terminal state
CANCELLEDInvoice cancelled manuallyTerminal state

PAYMENT_IN_PROGRESS after PAYMENT_FAILED or PAYMENT_DISPUTED is a retried charge. The status alone does not tell you how an invoice was settled: one settled outside the platform also reads PAID (or FINALIZED for a refund) and carries manualPayment. Both are covered in Manage unpaid invoices.