In 2021 I had 38,000 gross income, after deductions my income was -5,500. So I didn't need to file a Schedule SE. How, then, do I get credit for that year towards Social Security? Is it my gross income that is reported to the SSA?
See https://www.ssa.gov/pubs/EN-05-10072.pdf
You get credit for your net earnings.