work (one's) ticket
To scheme a way of achieving an advantage or a release from some obligation, especially by malingering or fraud. Primarily heard in UK. He's been trying to convince the military doctors of an underlying mental illness, in the hopes of working his ticket home. The Chelsea striker has been working his ticket for months now, putting in consistently poor performances.
work your ticket
contrive to obtain your discharge from prison or the army.