A family from the American city of New York was surprised this week when an order of almost a thousand ice creams was delivered.

They turned out to have been ordered in an unguarded moment by a young family member.

Four-year-old Noah Bryant, who has an autism spectrum disorder, ordered $ 2,168 (about $ 1,780) ice creams from the popular cartoon character SpongeBob SquarePants via Amazon.

The boy had a total of 51 boxes, containing 918 ice creams, sent to his aunt's house in the Brooklyn borough, according to American media.

The boy's family informed Amazon that they could not pay the bill for it.

Amazon then said it could not take the order back but would donate to a local charity.

A crowdfunding campaign to help the family pay the bill has already raised more than $ 16,000 (more than $ 13,000) - enough to get Noah to order another 6,000 ice cream, were it not for the boy's temporary Amazon ban imposed by his mother.

The money that is left after paying the bill goes to Noah's education, according to the family.