Synchronize your Stripe invoices with Abby.fr
- Node.js (v14+)
- Stripe Account with paid invoices available
- Abby.fr Account with an API token
- Clone the repository
git clone https://github.com/johackim/abby.git
- Install dependencies
cd abby
npm install- Configure Environment Variables
Create a .env file in the root directory with the following content:
STRIPE_SECRET_KEY=your_stripe_secret_key ABBY_API_TOKEN=your_abby_api_token PAYMENT_METHOD=9 # Stripe PRODUCT_TYPE=2 # Prestations de services
Run the script to synchronize your Stripe invoices with Abby.fr:
node index.mjs --sync
The script performs the following tasks:
- Fetches all paid invoices from Stripe.
- Skips invoices already present in Abby (matched by reference number).
- Creates new income book entries in Abby using invoice details such as reference number, client information, date, total amount, and a link to the PDF invoice.
If you need to wipe all existing entries from Abby, use the --delete flag:
node index.mjs --delete
You can customize the script by modifying the following environment variables:
- PRODUCT_TYPE: (Default is
2representing "Prestations de services") - PAYMENT_METHOD: (Default is
9, corresponding to "Stripe")
Feel free to fork the project and tailor it to your specific needs.
I'd love to work on this project, but my time on this earth is limited, support my work to give me more time!
Please support me with a one-time or a monthly donation and help me continue my activities.
This project is licensed under the GNU GPL v3.0 - see the LICENSE.txt file for details
Free Software, Hell Yeah!