Printcart icon

Printcart

Consume Prinrcart API

Actions80

Overview

The node integrates with the Printcart API, enabling users to manage various Printcart resources programmatically within n8n workflows. Specifically, for the "Template" resource and the "Get Template Detail" operation, the node fetches detailed information about a specific template by its ID.

This is useful in scenarios where you want to retrieve metadata or configuration details of a particular template stored in Printcart, such as when automating design workflows, synchronizing templates with other systems, or auditing template properties.

Example use case:
You have a workflow that triggers when a new order is placed, and you want to fetch the exact template details used for the product customization to generate reports or send notifications.

Properties

Name Meaning
Authentication Method of authentication; currently supports "API Token" for accessing the Printcart API.
Template ID The unique identifier of the template whose details you want to retrieve.

Output

The node outputs an array of JSON objects representing the response from the Printcart API for the requested template detail. The structure corresponds directly to the API's template detail response, typically including fields such as:

  • Template metadata (e.g., ID, name, note)
  • Associated project and side IDs
  • Preview and template image IDs
  • Layers and viewport dimensions
  • Other template-specific attributes

No binary data output is produced by this operation.

Dependencies

  • Requires an active Printcart API token credential configured in n8n.
  • Network access to https://api.printcart.com is necessary.
  • The node uses HTTP requests authenticated via the provided API token.

Troubleshooting

  • Common issues:

    • Invalid or missing API token will cause authentication failures.
    • Providing an incorrect or non-existent Template ID will result in API errors or empty responses.
    • Network connectivity issues can prevent successful API calls.
  • Error messages:

    • Authentication errors typically indicate invalid credentials; verify the API token.
    • "Not Found" or similar errors suggest the Template ID does not exist; double-check the ID.
    • Timeout or network errors require checking your internet connection and firewall settings.

Links and References

Discussion