A set of tools for running an e-shop for event tickets using BTCPayServer
Extracting email and invoice id for a specific event from the whole json export of invoices from BTCPayServer
- Go to your BTCPayServer, click on Invoices on the left sidebar, click export as json.
- Select everything on the page using Ctrl + A
- Copy it using Ctrl + C
- Create a file
btc_pay_invoice_export.json
insideinputData
folder - Paste the previously copied json into this newly created file.
- Hit save.
- Run
bun extract.ts <event id>
The expected output after running this command is something like:
Successfully extracted {x} emails!
Output written to ./outputData/extracted_emails.json