Printcart icon

Printcart

Consume Prinrcart API

Actions80

Overview

The node integrates with the Printcart API to manage products and other related resources. Specifically, for the Update Product operation under the Product resource, it allows users to update an existing product's details such as name, dimensions, status, allowed file types, and various feature toggles.

This node is beneficial in scenarios where you need to automate or programmatically manage product information within a Printcart store, such as updating product specifications after receiving new data from another system or adjusting product availability dynamically.

Practical example:
You have an e-commerce platform that syncs product details with Printcart. When a product's attributes change (e.g., size, description, or status), this node can be used to update the corresponding product in Printcart automatically.

Properties

Name Meaning
Authentication Method of authentication; currently supports "API Token".
Product ID The unique identifier of the product to update (required).
Product Name The new name for the product (required).
Dynamic Side Boolean flag indicating if the product has dynamic sides (true/false).
Viewport Width Numeric value representing the viewport width of the product (required).
Viewport Height Numeric value representing the viewport height of the product (required).
Scale Numeric scale factor for the product (required).
Dpi Numeric DPI (dots per inch) setting for the product (required).
Demension Unit Unit of measurement for dimensions; options are "Cm", "Pixel", or "Inch" (required).
Status Product status; options are "Publish" or "Draft".
Allow File Types Allowed file types for uploads/designs; multiple selections possible among "Jpg", "Png", "Ai", "Pdf" (required).
Enable Design Boolean flag to enable design features on the product (true/false).
Enable Upload Boolean flag to enable file upload capability on the product (true/false).
Enable Pod Boolean flag to enable print-on-demand features (true/false).
Type ID Product type identifier; currently only "Simple" is supported (required).
Description Text description of the product (required).

Output

The node outputs JSON data representing the response from the Printcart API after attempting to update the product. This typically includes the updated product object with all its properties as stored in Printcart, confirming the changes made.

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the Printcart API.
  • Requires an API token credential configured in n8n for authentication.
  • The node uses HTTP requests to communicate with the Printcart API endpoints over HTTPS.

Troubleshooting

  • Common issues:

    • Invalid or missing Product ID will cause the API call to fail.
    • Incorrect or expired API token will result in authentication errors.
    • Providing invalid values for required fields (e.g., non-numeric values for numeric fields) may cause request rejection.
    • Network connectivity issues can prevent successful API calls.
  • Error messages and resolutions:

    • 401 Unauthorized: Check that the API token is valid and correctly configured.
    • 404 Not Found: Verify that the Product ID exists in Printcart.
    • 400 Bad Request: Ensure all required fields are provided and formatted correctly.
    • 500 Internal Server Error: Retry later or contact Printcart support if persistent.

Links and References

Discussion