LOS ANGELES (AP) — Amazon says it is prepared to go to court against the Federal Trade Commission to defend itself against charges that it has not done enough to prevent children from making unauthorized in-app purchases.

The FTC alleged in a draft lawsuit released by Amazon that unauthorized charges by children on Amazon tablets have amounted to millions of dollars.

Amazon.com Inc. said in a letter Tuesday to FTC Chairwoman Edith Ramirez that it had already refunded money to parents who complained.

Apple agreed to a $32.5 million fine in January over a similar matter.

The FTC wouldn’t comment on whether it is investigating, but said it is focused on ensuring that companies comply with the principle that consumers shouldn’t have to pay for unauthorized purchases.

KXAN.com provides commenting to allow for constructive discussion on the stories we cover. In order to comment here, you acknowledge you have read and agreed to our Terms of Service. Users who violate these terms, including use of vulgar language or racial slurs, will be banned. If you see an inappropriate comment, please flag it for our moderators to review.