One canonical payment status, mapped from the two vocabularies the API uses.
The merchant surface emits five values and the buyer surface emits six, with no name in common. Without one mapping every integrator invents their own, and the interesting cases are exactly where they get it wrong.
Summary
Functions
The five canonical wire values.
Map status from the buyer surface (GET /v1/invoices/{id}/status).
Map payment_status from the merchant surface.
The invoice was paid in full and is safe to fulfil.
No further transitions happen from here.
Functions
The five canonical wire values.
Map status from the buyer surface (GET /v1/invoices/{id}/status).
overpaid collapses to finished and cancelled to failed, so both surfaces
produce the same canonical value for the same invoice.
Map payment_status from the merchant surface.
unconfirmed does not exist — older docs listed it. overpaid arrives as
finished and cancelled as failed.
The invoice was paid in full and is safe to fulfil.
No further transitions happen from here.