Hi jmcjmc,
In Spain and in most European countries (if not all) what you need is a VAT ID. This is the equivalent of the US sales tax ID.
Maybe these links may help you -
Link hidden: Login to view
Link hidden: Login to view
Hope this helps. Happy Holidays :)