שולחן ערוך, אורח חיים תר״ז

Shulchan Arukh, Orach Chayim 607

סדר הוידוי במנחה בערב יום כפור. ובו ו סעיפים:
צריך להתודות במנחה קודם סעודה המפסקת: הגה ויחיד אומרו אחר שגמר תפלתו וש"ץ אומרו ביו"כ בתוך התפלה (טור):
“The order of confession (of sins) during Minḥah (the Afternoon Prayer) on the Eve of Yom Kippur” - Containing six paragraphs.
One needs to confess during Minḥah (the Afternoon Prayer) before the (last) meal before fasting.
Hagah: If one is alone he says it (the confessional) after he finished his Silent Prayer, but the public reader says his (confessional) on Yom Kippur during the Silent Prayer, (טור).
אין צריך לפרט החטא ואם רצה לפרט הרשות בידו ואם מתודה בלחש נכון לפרט החטא: הגה אבל כשמתפלל בקול רם או ש"ץ כשחוזר התפלה אין לפרט החטא ומה שאומרים על חטא כסדר א' ב' לא מקרי פורט הואיל והכל אומרים בשוה אינו אלא כנוסח תפלה (ד"ע):
There is no need to itemize (to detail) (the description of) the sin, but if one wants to detail it he has the permission to do so, but if one confesses silently (i.e., just moving one’s lips but not speaking audibly), it is appropriate to detail the sin.
Hagah: But when one prays outloud or the reader, when he repeats the prayer, they do not detail the sin. But saying the prayer “על חטא” in alphabetical order, is not called itemizing (detailing) since everyone says it equally, therefore it is only like a text of a prayer, (ד״ע).
צריך להתודות מעומד ואפילו כי שמע ליה משליח צבור והוא התודה כבר צריך לעמוד: הגה ויחזור ויתודה עם השליח צבור (ר"ן פ"ב דר"ה) ועיקר הוידוי היא אבל אנחנו חטאנו (טור):
One has to confess standing up and even if one (the confessor) hears it from the reader and he has already confessed, he still must stand.
Hagah: And one should again confess with the reader, (ר״ן פ״ב דר״ה); the essence of the confession is “but we sinned”, (טור).
עונות שהתודה עליהם ביום הכפורים שעבר ולא שינה עליהם אפ"ה יכול לחזור ולהתודות עליהם:
Sins that were confessed about on the past Yom Kippur and one did not repeat them, nonetheless he may again confess them.
בתפל' מנחה ערב יום הכפורים אינו חותם בוידוי שאחריה: הגה ואין הש"ץ מחזיר הוידוי במנחה אלא מתפלל שמ"ע כבשאר ימות השנה (טור ומרדכי) ואין אומרים אבינו מלכנו (עססי' תרי"ד) וכל שכן תחנון:
During the Minḥah Prayer on the Eve of Yom Kippur one does not conclude the Prayer with a confession after it.
Hagah: The reader does not repeat the confession during the Minḥah Prayer, rather he prays the Amidah like on the rest of the days of the year, (טור, ומרדכי). and does not say the prayer “אבינו מלכנו”, (see the end of chapter 614), and all the moreso not the prayers of supplication (taḥanun).
כל הקהל לוקים מלקות ארבעים אחר תפלת המנחה שמתוך כך יתן אל לבו לשוב מעבירות שבידו: הגה ונהגו שהנלקה אומר וידוים בשעה שנלקה והמלקה אומר והוא רחום יכפר עון וגו' ג"פ שהם ל"ט תיבות כנגד ל"ט מכות (מנהגים). ונהגו להלקות ברצועה כל דהוא דאינו רק זכרון למלקות ויקח רצועה של עגל על דרך שנאמר ידע שור קונהו (כל בו) והנלקה לא יעמוד ולא ישב רק מוטה (מנהגים) פניו לצפון ואחוריו לדרום (מהרי"ל) יוה"כ אינו מכפר אלא על השבים המאמינים בכפרתו אבל המבעט בו ומחשב בלבו מה מועיל לי יו"כ זה אינו מכפר לו: (רמב"ם פ"ג מהלכות שגגות):
The entire congregation (every Jewish member of the community) receives forty lashes after the Minḥah Prayer, for because of it he will take to heart to turn away (and repent) from his transgressions.
Hagah: It was customary that the one being flogged say the confessions, vidduim, at the time that he was flogged, and that the flogger say, “And He (God) pities and will atone sins…” (Psalms 78:38), three times which equals thirty-nine words corresponding to the thirty-nine lashes, (this is a custom). And it is customary to whip with a little strap because this (flogging) is merely a remembrance to the genuine flogging. One should take a strap of calfskin, corresponding to the Biblical verse, “the ox knows his owner and the ass his master’s crib,” (Isaiah 1:3), (כל בו), The one who is flogged shall not stand nor shall he sit, but he should be in a slanting position, (מנהגים), with his face to the north and his rear should be to the south, (מהרי״ל). Yom Kippur only atones for the repenters who believe in its (Yom Kippur’s) atonement. However, one who despises it and thinks to himself, “how can this Yom Kippur help me,” Yom Kippur does not atone for him, (רמב״ם פ״ג מהלכות שגגות).

Maginei Eretz: Shulchan Aruch Orach Chaim, Lemberg, 1893 (Public Domain) · Hilkhot Yom ha-Kippurim, trans. by Jan M. Brahms. HUC, 1976 (CC-BY) · 6 se'ifim