Printcart icon

Printcart

Consume Prinrcart API

Actions80

Overview

This node integrates with the Printcart API, enabling users to manage various Printcart resources such as accounts, stores, products, sides, images, cliparts, designs, projects, templates, storages, fonts, webhooks, clipart storage, and project folders. It supports a wide range of operations including creating, retrieving, updating, deleting, and counting these resources.

Typical use cases include automating product catalog management, store configuration, design asset handling, and webhook setup within Printcart. For example, a user can automate the creation of new products with specific design parameters or retrieve detailed information about existing projects and their associated assets.

Properties

Name Meaning
Authentication Method of authentication; currently supports only "API Token" authentication.

Note: The full node supports many additional input properties depending on the selected Resource and Operation, such as names, IDs, status types, limits, sorting options, and various resource-specific fields (e.g., productName, sideId, designId). These are dynamically retrieved based on the chosen operation and resource.

Output

The node outputs an array of JSON objects corresponding to the results of the executed API calls. Each item in the output array represents the response from the Printcart API for each input item processed.

  • The json field contains the parsed JSON response from the Printcart API.
  • No binary data output is indicated in the code.

Dependencies

  • Requires an API token credential for authenticating requests to the Printcart API.
  • Uses HTTP requests to the Printcart API endpoints (https://api.printcart.com/v1/), often embedding credentials in the URL or using authenticated request helpers.
  • Relies on n8n's built-in HTTP request helper methods for making API calls.
  • The node expects the API token credential to provide at least two values (sid and secret) used for basic authentication in some requests.

Troubleshooting

  • Authentication errors: If the API token or credentials are invalid or missing, requests will fail. Ensure the API token credential is correctly configured in n8n.
  • Parameter issues: Missing or incorrect parameters for specific operations (e.g., missing productId when updating a product) will cause API errors. Verify all required parameters are provided.
  • Unsupported operations: Selecting a resource-operation combination not implemented in the node will result in no action or errors.
  • Network or API errors: Standard HTTP errors from the Printcart API (e.g., 4xx or 5xx responses) will be thrown. Check API availability and request correctness.
  • Continue on Fail: The node supports continuing execution on failure for individual items if enabled, returning error messages per item.

Links and References


This summary is based solely on static analysis of the provided source code and does not execute or simulate runtime behavior.

Discussion