What this fee covers
It is issued by a town or city clerk and must be obtained before the ceremony. The license fee described here applies to licenses issued by town or city clerks outside New York City and includes the Certificate of Marriage Registration that the clerk sends after the completed license is returned by the officiant.
The license fee is separate from any optional ceremony charges or additional certified copies you may request, so treat it as the baseline cost for authorization to marry. Because the license is a statewide legal document, the waiting period, validity window, and return requirements are set by state law even though the application happens locally.