Below that threshold (calculated net of VAT across the whole EU) you may keep charging Spanish VAT; once you cross it, registering for the OSS through the AEAT lets you pay all those foreign VAT amounts in a single periodic return. Do not confuse it with intra-EU B2B sales, which run through a different channel: the modelo 349.
Rather have this calculated for you?
kontora generates your tax forms box by box, tells you how much to set aside and reminds you before every deadline.