Expressions used in Everyday Spoken English in Social and Professional contexts
Apart from the literal meaning (in which you suffer physical attack), when you 'take a beating', you lose badly, perhaps in a competition or sport; or perhaps in a business deal. You can use this expression in social or professional situations.