Our company needs to pay taxes in EU and works on automation this process. This is WIP set of scripts to send tax report to Cyprus Tax Portal
You need to have:
- zx (https://google.github.io/zx/cli) to run mjs files
- miller (https://miller.readthedocs.io/en/6.12.0/) for CSV processing
- stripe cli (https://github.com/stripe/stripe-cli)
> ./export.mjs
Now you need to run curl -H 'Authorization: Bearer rk_live_XXXXXXXXXXXXX' https://files.stripe.com/XXXXXXXXXX > output.csv
> curl -H 'Authorization: Bearer rk_live_XXXXXXXXXXXXX' https://files.stripe.com/XXXXXXXXXX > output.csv
> REPORT_ID=12345 ACCESS_TOKEN=<JWT_TOKEN> ./process.mjs
{
status: 'SUCCESS',
data: null,
message: 'Vat Return saved temporary successfuly'
}