Tempt to break a code, at the end of the day (5)
I believe the answer is:
decoy
'tempt' is the definition.
(I know this)
'break a code at the end of the day' is the wordplay.
'break' indicates an anagram.
'at the end of' says to take the final letters.
The last letter of 'day' is 'y'.
'code' anagrammed gives 'deco'.
'deco'+'y'='DECOY'
'to' is the link.
(Other definitions for decoy that I've seen before include "Imitation creature used to attract others" , "Lure or snare" , "Inveigle" , "Thing used to lure animal into trap" , "Something used to lure prey into a trap" .)