MID stands for the unique number assigned to a merchant and identifies the merchant to an ISO (independent sales organization or reseller), acquiring bank or third party processor.
Terminal ID (TID)
This is the number assigned to a credit card transaction device (ie: POS terminal or Virtual Terminal).
It identifies the merchant's physical equipment, gateway or software to the processor and bankcard data transport networks.