transaction_id is null until a payout names the document in document_ids.PENDING document is checked against storage on each call and becomes AVAILABLE when its file exists with the declared SHA-256. Poll this after uploading: there is no webhook for document status. When the document is attached to a payout that is waiting for one, turning AVAILABLE releases that payout.