Madrid's official DTV page doesn't list payslips or company accounts by name. For the workcation route it asks for an employment contract or work certificate from your home country, or a professional portfolio showing remote-worker or self-employed status. You also need a bank statement or account certificate showing at least 500,000 THB, and a criminal-record certificate. You must be a Spanish or Andorran national, or a permanent resident of Spain or Andorra.
If you're employed, a contract or certificate signed by your employer (not self-signed) is the core document, and a few recent payslips are a sensible backup. If you run your own company, show it's real and earning from outside Thailand: registration, client contracts or invoices, and the matching payments on your statement. The embassy may also ask for criminal-record certificates from other countries you've lived in. Beyond the listed documents, anything that makes your case clear helps.
Official pages:
***************************************************
·
*****************************************