An Indonesian court on Wednesday jailed a British woman for six months for slapping an immigration officer in an argument over a fine for overstaying her visa.

Auj-e Taqaddas, 42, was found guilty in a court in Bali's capital, Denpasar, of violence against an officer at Bali airport carrying out his legal duty, Judge Esthar Oktavi told Reuters.

"The sentence is six months in prison," Ms Oktavi said by text message.

The sentence was lighter than the one-year jail term sought by the prosecutor on July 28 2018.

"This is an unfair decision... I was forcibly brought to the court, no lawyers provided," Ms Taqaddas told the court, accusing the prosecutors of torturing her three times and trapping her in the country.

Waher Tarihorang, an official at the prosecutors' office who oversaw the case, denied using violence and said prosecutors had "the right to take forcible action to bring her to court" after Ms Taqaddas missed several earlier court dates.