The 14-year-old Australian boy caught in Bali with a small amount of marijuana may well be on his way home in a matter of hours.
It is possible he will fly back to Australia on Sunday evening.
The chief prosecutor handling the case, I Gusti Putu Atmaja, had told AAP the teenager will be removed from an immigration detention centre in Jimbaran on Sunday morning and then taken to the prison.
It will only be a brief stop, however, so he can be registered, photographed and have his fingerprints taken.
He will then be released to immigration officials so he can be deported.