What is definitive way to know when invoice is paid (in the JSON)

What is definitive way to know when invoice is paid (in the JSON)

What JSON values are the definitive way to know when invoice is paid (in the JSON)

Can it be done just from Invoices or must it be done only from Invoice Payments