Create a way that JSON data could be passed through the API and an Excel file is generated. Each field in the JSON could be a column with the requirement that the JSON is flat (no array fields). It might not even require a template...the columns could just be names the same as the field.