Are you asking if it is illegal to buy spices (as in salt, pepper, oregano, etc...) online? If that is the question, as long as it is coming from a legal source that is fine. If you mean something else by the word "spice" I have no idea.
Anything information in the foregoing response is general information only and is not intended to be legal advice. Responding to questions on www.avvo.com does not form an attorney-client relationship.
If the product is imported, then advance notification to the Food and Drug Administration may be required. FDA testing and labeling requirements may apply to items intended to be resold, whether domestically produced or imported. See https://help.cbp.gov/app/answers/detail/a_id/337/~/importing-tea,-coffee-and-spices-for-commercial-purposes
I am an Attorney-at-Law, licensed to practice law only in the state of California. Unless we have both signed a formal retainer agreement, you are not my client, and my discussion of issues does not constitute legal advice. Opinions expressed herein are those of the author, and do not necessarily represent the opinions of those who hold other opinions.