Skip to content

This is a simple script that fetches all invoices from all payouts of your Stripe Account and saves them as PDF files grouped by payout.

License

Notifications You must be signed in to change notification settings

seb-kw/stripe-invoice-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stripe Invoice Fetcher

This is a simple script that fetches all invoices from all payouts of your Stripe Account and saves them as PDF files grouped by payout.

Installation

  1. Clone this repository
  2. Set your Stripe API key as environment variable STRIPE_API_KEY, e.g. export STRIPE_API_KEY=sk_test_1234567890
  3. Run go run main.go

Output

The script will create a folder with the name scheme <Payout Arrival Date formatted as YYYY-MM-DD>-<Payout ID> for each payout. The invoices will be saved as PDF files in this folder as <Invoice ID>.pdf

About

This is a simple script that fetches all invoices from all payouts of your Stripe Account and saves them as PDF files grouped by payout.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Languages