Printcart icon

Printcart

Consume Prinrcart API

Actions83

Overview

This node integrates with the Printcart API to manage products and related resources. Specifically, the Create Batch Product operation under the Product resource allows users to create multiple products in a batch by sending product details to the Printcart platform.

Use cases include:

  • Automating bulk product creation workflows for print-on-demand or e-commerce platforms.
  • Quickly setting up multiple product entries with consistent attributes such as dimensions, allowed file types, and status.
  • Managing product catalog updates programmatically without manual intervention.

For example, a user can prepare a list of new products with their specifications and use this node to create them all at once on Printcart, saving time and reducing errors 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 indicating if the product has dynamic sides (true/false).
Viewport Width Numeric width of the viewport for the product design area, with one decimal precision.
Viewport Height Numeric height of the viewport for the product design area, with one decimal precision.
Scale Numeric scale factor for the product, with one decimal precision.
Dpi Numeric DPI (dots per inch) setting for the product.
Demension Unit Unit of measurement for dimensions; options are "Cm", "Pixel", or "Inch".
Status Publishing status of the product; options are "Publish" or "Draft".
Allow File Types Allowed file types for product uploads; multiple selections possible from "Jpg", "Png", "Ai", "Pdf".
Enable Design Boolean to enable or disable design features for the product.
Enable Upload Boolean to enable or disable upload features for the product.
Enable Pod Boolean to enable or disable print-on-demand features for the product.
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 contains the details of the created product(s) as returned by the API, including identifiers, status, and other metadata.

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 POST requests to the Printcart API endpoint /v1/products/batch.
  • The API base URL and credentials are dynamically used from the node parameters and stored credentials.
  • Proper network access to https://api.printcart.com is required.

Troubleshooting

  • Authentication Errors: If the API token is invalid or missing, the node will fail to authenticate. Ensure the API token credential is correctly configured.
  • Validation Errors: Missing required fields like "Product Name" or invalid values for numeric fields may cause the API to reject the request. Double-check input property values.
  • API Endpoint Issues: Network issues or incorrect API URLs can cause request failures. Verify connectivity and correct usage of the API base URL.
  • Unexpected Response: If the API returns an error, the node will throw an exception unless "Continue On Fail" is enabled, in which case error details are included in the output.

Links and References

Discussion