The cancellation is covered by the DOT on timing, but the Rule permits the carrier to specify how a cancellation is made. SQ requires a call. What I don't know is what happens if you don't call until outside the 24 hours.
At a minimum, I would call back and ask what they are talking about given that you did cancel within 24 hours, even if you did it online.