Simple CloudFlare worker script that fetches the most recent 20 invoices per customer ID and returns them as JSON or as a list of Tailwind CSS Cards.
- Create a CloudFlare Worker
- Edit your
locationid
and add your APIKEY variable. - Ready to go!
https://yourworkerurl.com/?html=(true|false)&id=(comma separated list of customer IDS)
Setting HTML to true will return a list of Tailwind CSS Cards.