Actions80
- Account Actions
- Clipart Actions
- Clipart Storage Actions
- Design Actions
- Font Actions
- Image Actions
- Product Actions
- Project Actions
- Project Folder Actions
- Side Actions
- Storage Actions
- Store Actions
- Template Actions
- Webhook Actions
Overview
This node integrates with the Printcart API to manage products and other related resources. Specifically, the Create Batch Product operation under the Product resource allows users to create multiple products in batch by sending product details to the Printcart API endpoint designed for batch creation.
Typical use cases include:
- Automating the bulk creation of product entries in a Printcart store.
- Streamlining product onboarding workflows where many similar products need to be created programmatically.
- Integrating product data from external systems into Printcart efficiently.
For example, a user can prepare a list of product specifications (name, dimensions, allowed file types, status, etc.) and use this node to create all those products at once, saving time compared to manual entry.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authentication; currently supports "API Token". |
| Product Name | The name of the new product to be created. |
| Dynamic Side | Boolean flag indicating if the product has dynamic sides. |
| Viewport Width | Numeric width of the viewport for the product design area (precision 1 decimal). |
| Viewport Height | Numeric height of the viewport for the product design area (precision 1 decimal). |
| Scale | Numeric scale factor for the product (precision 1 decimal). |
| Dpi | Numeric DPI (dots per inch) setting for the product. |
| Demension Unit | Unit of measurement for dimensions; options are "Cm", "Pixel", or "Inch". |
| Status | Product status; options are "Publish" or "Draft". |
| Allow File Types | Allowed file types for product uploads; multi-select from "Jpg", "Png", "Ai", "Pdf". |
| Enable Design | Boolean flag to enable design features on the product. |
| Enable Upload | Boolean flag to enable file upload capability for the product. |
| Enable Pod | Boolean flag to enable print-on-demand (POD) functionality. |
| Type ID | Product type identifier; currently only "Simple" is supported. |
| Description | Text description of the new product. |
Output
The node outputs an array of JSON objects representing the response(s) from the Printcart API after attempting to create the batch product(s). Each object corresponds to one execution item and contains the API's response data, which typically includes details about the created product(s), such as IDs, names, statuses, and other metadata returned by the API.
No binary data output is produced by this operation.
Dependencies
- Requires an API token credential for authenticating requests to the Printcart API.
- The node makes HTTP requests to the Printcart API endpoints over HTTPS.
- No additional external dependencies beyond standard HTTP request capabilities provided by n8n.
Troubleshooting
- Authentication errors: If the API token is invalid or missing, the API will reject requests. Ensure the API token credential is correctly configured in n8n.
- Validation errors: Missing required fields like "Product Name" or invalid values for numeric fields may cause the API to return errors. Double-check input property values.
- API endpoint errors: Network issues or incorrect API URLs could cause failures. Verify network connectivity and that the Printcart API base URL is reachable.
- Incorrect parameter formatting: For example, the code attempts to call
.toStringwithout parentheses onstatuswhich might cause unexpected behavior. Ensure that the status parameter is properly formatted as a string before sending. - Batch size limits: The API might have limits on how many products can be created in a single batch. If errors occur, try reducing the batch size.
If the node is set to continue on failure, error messages will be included in the output JSON for each failed item.
Links and References
- Printcart API Documentation (assumed official docs for further details)
- n8n HTTP Request Node documentation for understanding request handling: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/