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, it supports operations such as creating a project folder, listing folders, retrieving projects by folder, getting folders by project, and deleting a project folder.

The Delete Project Folder operation allows users to delete a specific project folder identified by its storage ID. This is useful in scenarios where you want to programmatically clean up or reorganize your project folders within the Printcart system.

Practical example:

  • Automatically remove obsolete or empty project folders from your Printcart account to keep your workspace organized.
  • Integrate with other workflows that archive or finalize projects, triggering deletion of associated folders.

Properties

Name Meaning
Authentication Method of authentication; currently only "API Token" is supported.
Storage ID The unique identifier of the project folder (storage) to be deleted. Required parameter.

Output

The node outputs an array of JSON objects representing the response from the Printcart API for the delete operation. Typically, this will include confirmation of deletion or any relevant status message returned by the API.

The output JSON structure depends on the API's response but generally includes fields indicating success or failure of the deletion request.

No binary data output is involved in this operation.

Dependencies

  • Requires an API token credential for authenticating requests to the Printcart API.
  • The node makes HTTP requests to https://api.printcart.com/v1/project-folder endpoints.
  • Proper network access to the Printcart API is necessary.
  • No additional environment variables are required beyond the API token credential configured in n8n.

Troubleshooting

  • Common issues:

    • Invalid or missing Storage ID: Ensure the Storage ID provided corresponds to an existing project folder.
    • Authentication errors: Verify that the API token credential is valid and has sufficient permissions.
    • Network connectivity problems: Confirm that the n8n instance can reach the Printcart API endpoint.
  • Error messages:

    • API error responses will be passed through; typical errors might include 404 Not Found if the folder does not exist, or 401 Unauthorized if authentication fails.
    • If the node is set to continue on fail, error details will be included in the output JSON for each failed item.
  • Resolution tips:

    • Double-check input parameters for correctness.
    • Refresh or regenerate API tokens if authentication errors persist.
    • Review Printcart API documentation for specific error codes and meanings.

Links and References

Discussion