Green’s Dictionary of Slang

swap n.

also swop
[swap v.; Grose (1785) suggests ‘Irish cant’]

[late 18C+] an act of exchange.

In phrases

get/have the swap (v.)

[late 19C–1900s] to be dismissed from one’s employment.