Settle pending trust-to-invoice payments with POST /api/trust/payment-transfer-batches (or the legacy alias POST /api/create_batch_trust_payment_transfers) using summaryId or debitBankAccountId.
Create pending rows first via POST /api/invoices/:id/payments with fromTrust: true and settlement: "pending" (or set CLEVERCASE_TRUST_SETTLEMENT=pending). Default apply-trust remains settled-immediate.