Download all your Stripe PDF invoices in bulk.
You need a working installation of PHP and of Composer.
- Run
composer install
to install the Stripe SDK. - Create a new restricted key with the
Read
right forInvoices
andCredit notes
resource type: - Copy the generated key.
export STRIPE_KEY=... #
START_DATE=2024-01-01 END_DATE=2024-01-31 WITH_CREDIT_NOTES=false ./download.php
The invoices will be downloaded in the invoices/
directory.
The credit notes will be downloaded in the creditNotes/
directory.
This is useful in the automation of the monthly finance obligations.
Omit the argument or set it to true
. Only notes created in the specified interval will be fetched.
Keep in mind that credit notes are equivalent to invoices paid by us, and therefore they need to be accounted for (for example, in terms of VAT claims etc).