This is a criminal offence. In this case, you should notify the law enforcement authorities about such a case, indicating the position and name of the person who demanded a bribe from you, the amount of illegal benefit.