Actions74
- ai Actions
- array Actions
- audiovideo Actions
- carbone Actions
- charts Actions
- code Actions
- data Actions
- datetime Actions
- events Actions
- files Actions
- geo Actions
- hellospaces Actions
- images Actions
- Get Metadata of an Image
- Scale an Image
- Overlay an Image on another Image
- Scale an Image to Fit Given Dimensions
- Resize an Image
- Mask an Image with Another Image
- Mask an Image with a Circle Mask
- Crops an image by the given x, y, width and height paramters.
- Convert Texts to an Image
- Convert HTML String or URL to an Image
- Generates a QRCode with given text and color.
- Get EXIF from Image
- Remove EXIF from Image
- Modify Image EXIF
- playground Actions
- spreadsheet Actions
- stripe Actions
- youtube Actions
stripe → Bulk Download of Stripe PDF Invoices
AI-generatedOverview
This node enables bulk downloading of PDF invoices from Stripe. It is particularly useful for automating the retrieval and archival of customer invoices, such as for accounting, compliance, or reporting purposes. For example, a business could use this node to periodically fetch all invoices for a specific customer or date range, saving them as binary files in a workflow for further processing or storage.
Properties
| Name | Meaning |
|---|---|
| Secret Key | Stripe restricted API secret key. Only for invoices. See Stripe documentation for details. |
| Customer ID | The customer ID in Stripe for whom you want to retrieve invoices. If left empty, invoices for all customers will be loaded. |
| From Date | The start date (inclusive) from which invoices should be retrieved. |
| Until Date | The end date (inclusive) until which invoices should be retrieved. |
| Naming Pattern | File naming pattern for downloaded invoices. Options: date_invoicenumber, customerId_date_invoicenumber, date_customerId_invoicenumber, invoice_invoicenumber. Defaults to date_invoicenumber. |
| Binary Property | Name of the binary property where the PDF data will be stored. Default is data. |
Output
- Binary Data:
Each output item contains a binary property (default name:data) holding the PDF file of an invoice. - JSON Metadata:
The original JSON input is preserved alongside the binary data. - File Naming:
The filename is set according to the selected naming pattern.
Example Output Structure
{
"json": { /* original input data */ },
"binary": {
"data": {
"fileName": "2024-06-01_INV12345.pdf",
"mimeType": "application/pdf",
"data": "<base64-encoded-pdf>"
}
}
}
Dependencies
- External Service: Requires access to the Stripe API with a restricted secret key that allows reading invoices.
- n8n Credentials: The node expects the
1001fxApicredential to be configured. - Environment: Internet access to https://api.1001fx.com.
Troubleshooting
Invalid API Key:
Error message:error: Invalid API Key provided.
Solution: Ensure the correct restricted Stripe secret key is used and has permissions for invoices.No Invoices Found:
Error message:error: No invoices found for the specified criteria.
Solution: Check the Customer ID, date range, and ensure invoices exist in Stripe for those parameters.Permission Denied:
Error message:error: Permission denied.
Solution: Verify the restricted API key has the necessary permissions for invoice retrieval.Output Binary Property Missing:
If the specified binary property name is not present in the output, check that the property matches the value set in "Binary Property".