if its a ticket bought from the counter, you can take the refund of the balance journey by surrendering the ticket in the counter. if its e-ticket, you have to take certificate from the TTE/SM of the station where you get down and apply for tdr.
other bloggers may correct if i am wrong.