I needed to know, what is the status of a pending API document. We imagine that I am making a settlement of an invoice that is pending, and this invoice could be for example in the state "PEN" (Pending) or in the State "PR" (Interim), I to make the settlement in the API precise to know the state , how can I get the state of this invoice in the API (in this case if it would be "PEN" or "PR")?