Printcart icon

Printcart

Consume Prinrcart API

Actions80

Overview

This node integrates with the Printcart API to manage various resources related to print-on-demand projects, stores, products, designs, and more. Specifically, for the Project Folder resource and the Get List of Project by Folder operation, it retrieves a list of projects contained within a specified project folder (identified by a storage ID).

Typical use cases include:

  • Organizing projects into folders and retrieving all projects under a specific folder.
  • Automating workflows that require fetching projects grouped by their folder/category.
  • Integrating Printcart project management into broader automation pipelines.

Example: You have multiple project folders representing different clients or categories, and you want to fetch all projects under a particular folder to process or analyze them further.

Properties

Name Meaning
Authentication Method of authentication; currently supports "API Token" only.
Storage ID The identifier of the project folder (storage) from which to retrieve the list of projects. This is required for operations on the Project Folder resource such as getting projects by folder.

Output

The node outputs an array of JSON objects representing the projects retrieved from the specified project folder. Each object corresponds to a project with its associated data as returned by the Printcart API endpoint:

GET https://{sid}:{secret}@api.printcart.com/v1/project-folder/{storageId}/projects

The exact structure of each project object depends on the Printcart API response but typically includes project details like project ID, name, status, notes, and other metadata.

No binary data output is involved in this operation.

Dependencies

  • Requires an API token credential for authenticating requests to the Printcart API.
  • The node uses HTTP requests with basic authentication using credentials (sid and secret) obtained from the API token.
  • No additional external dependencies beyond access to the Printcart API.

Troubleshooting

  • Invalid or missing Storage ID: The operation requires a valid storage ID (project folder ID). Ensure this is provided and correct.
  • Authentication errors: If the API token is invalid or expired, requests will fail. Verify the API token credential configuration.
  • Network or API errors: Check network connectivity and Printcart API availability.
  • Unexpected API responses: If the API changes or returns unexpected data, the node may not behave as expected.

Common error messages:

  • "401 Unauthorized": Indicates authentication failure; check API token.
  • "404 Not Found": Likely caused by an incorrect storage ID or resource path.
  • "500 Internal Server Error": Server-side issue; retry later or contact Printcart support.

Links and References


This summary focuses solely on the Project Folder resource and the Get List of Project by Folder operation as requested, based on static analysis of the provided source code and input properties.

Discussion