In the past, the ATO would automatically refund credits from early payments. Now, a pre-payment made towards a tax liability before it's due will remain on your account unless a refund request is made through the Portal. The ATO may use a pre-payment to offset debts.
For further details please click here.