In Indonesia if you are a foreigner and you want to stay in star hotel, you will be given the rates for foreigner in USD, except if you have KITAS/ working permit. Even hotel voucher in travel agents usually have no rates for foreigner without KITAS. So when you see hotel room rates at travel agents usually there are notes that say : the prices are available for domestic or KITAS holders.
And what you can do to book the hotel if you have no KITAS is go to travel agent and ask travel agent to get hotel rates for foreigner without KITAS. This is only imposed in star hotel only. For small hotel (hotel Melati) in Indonesia there is no difference between rates for foreigner and for domestic tourist.
Contact travel agent for your stay and trip in Indonesia.