Get the trap code (ajax call)