To return your items, you must have a receipt.

To return your items is the infinitive phrase I am saying used as a noun am i right?

No. The infinitive phrase is an adverb, modifying must have.