CID facility, or Confidential Invoice Discounting, works by a lender providing a loan to a company based on the value of its unpaid invoices. The lender deducts a small percentage as a fee. The company's customers pay according to their normal payment terms, with the company remaining responsible for collecting the payments.