Step 1: Understanding the Concept
A soap is made by saponification of fats and oils with NaOH or KOH.
Step 2: Structure
It is a metal salt of a higher fatty acid, for example \(\text{C}_{17}\text{H}_{35}\text{COONa}\) or \(\text{C}_{17}\text{H}_{35}\text{COOK}\).
Step 3: Compare the options
Ammonium salts and salts of formic acid are not soaps. The potassium salt of higher fatty acids is a soap, option (D).
Final Answer:
A soap is a potassium (or sodium) salt of higher fatty acids.
\[ \boxed{\text{(D) }\text{Potassium salt of higher fatty acids}} \]