Git Product home page Git Product logo

stripe-invoice-downloader's Introduction

Stripe Invoice Downloader

A Node.js CLI to download PDF invoices from Stripe.

Install

git clone https://github.com/minifjurt123/stripe-invoice-downloader
cd stripe-invoice-downloader
cp .env.example .env
npm i

Edit .env and enter your Stripe secret key.

Usage

# year is required, month and date are optional
npm start [year] [month] [date]

The downloaded PDFs will be put into a downloads folder in the repo.

Examples

# Will get all invoices created between 2020-01-01 - 2020-12-31
npm start 2020
# Will get all invoices created between 2020-01-01 - 2020-01-29
npm start 2020 1
# Will get all invoices created on 2020-01-01
npm start 2020 1 1
# Download & Combine into one pdf (using python script that ships with mac systems)
npm start 2020 1 && "/System/Library/Automator/Combine PDF Pages.action/Contents/Resources/join.py" -o ./downloads/merged.pdf downloads/*.pdf

Background

This tool was created to easily get PDF versions of VAT Invoices required when bookkeeping in Sweden.

stripe-invoice-downloader's People

Contributors

fabhed avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.