It's a prank maybe to get pickled (5)
I believe the answer is:
caper
'it's a prank' is the definition.
('caper' can be a synonym of 'prank')
I don't understand the remainder of the clue.
Can you help me to learn more?
(Other definitions for caper that I've seen before include "Frolic, prank" , "game" , "Cooked and pickled flower bud" , "prickly shrub" , "Pickled bud - escapade" .)