Generate the commission statement
Renders the payout’s commission statement PDF and returns a pre-signed link to it. The PDF is rebuilt only when something on it changed - the commission lines, the PO number, the statement note, or the statement template - so calling this repeatedly is cheap and returns the same document. When someone has uploaded their own statement in the app, that PDF is returned untouched and isUploaded is true.
POST
Generate the commission statement