According to Havelock Ellis, Studies in the psychology of sex (1913) this is the earliest published work on flogging in "medicine" and for sexual gratification, giving accounts of a number of examples. "David Savran declared it was the authoritative text on the subject for two hundred years. In it the author, among other things, “rejoice[s]” to know that when someone doing flogging for sexual gratification was found in Germany, they would be burned alive" (Wikipedia article De Usu Flagrorum, accessed 2-2020). Typically the title of the first edition is incorrectly cited, and the earliest edition of which I have found a digital facsimile is the second edition (Leiden, 1639) from Google Books.
There were numerous editions in Latin. The scholarly physician Thomas Bartholin issued an edition: De usu flagrorum In re medica & veneria, lumborumque & renum officio. Frankfurt: Ex Bibliopolio Hafniensi, 1670. The work was translated into English and published by Edmund Curll as A treatise of the use of flogging in venerial affairs: also of the office of the loins and reins by John Henry Meibomius; made English from the Latin original by a physician. To which is added A Treatise of Hermaphrodites (by Giles Jacob). London, 1718. This translation was reprinted in 1761 as A treatise of the use of flogging in venereal affairs: also of the office of the loins and reins: Written to the famous Christianus Cassius, Bishop of Lubeck, and Privy-Councellor to the Duke of Holstein. Digital facsimile of the 1761 edition from the U.S. National Library of Medicine at this link.