Printcart icon

Printcart

Consume Prinrcart API

Actions83

Overview

This node integrates with the Printcart API to manage design resources. Specifically, the "Get List of Design" operation retrieves a list of design entries from the Printcart platform. This is useful for workflows that need to fetch and process multiple designs, such as syncing design data with other systems, generating reports, or automating design-related tasks.

Practical examples include:

  • Fetching recent designs for review or approval.
  • Automating updates or notifications based on design status.
  • Integrating design lists into e-commerce platforms or content management systems.

Properties

Name Meaning
Authentication Method of authentication; currently supports "API Token".
Limit Maximum number of design results to return (minimum 10).
Sort Collection specifying sorting order: "Type" can be "Desc" (descending) or "Asc" (ascending).
Sort By Field by which to sort the designs, default is "id".
Status Filter designs by their status; options are "Processing", "Accepted", "Trashed", or "Declined".

Output

The output is a JSON array where each item represents a design object retrieved from the Printcart API. Each design object contains details as provided by the API endpoint /v1/designs, including but not limited to identifiers, status, associated images, notes, viewport dimensions, and uploader information.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API token credential for authenticating requests to the Printcart API.
  • The node makes HTTP GET requests to the Printcart API endpoint https://api.printcart.com/v1/designs with query parameters for limit, sorting, and status filtering.
  • Proper configuration of the API token credential in n8n is necessary.

Troubleshooting

  • Common Issues:

    • Invalid or missing API token will cause authentication failures.
    • Requesting fewer than 10 results may be rejected due to minimum limit enforcement.
    • Incorrect status or sort option values may result in empty responses or errors.
  • Error Messages:

    • Authentication errors typically indicate invalid credentials; verify the API token.
    • HTTP errors from the API (e.g., 400 or 500 series) suggest issues with request parameters or server-side problems.
    • Network errors may occur if the API endpoint is unreachable; check network connectivity.
  • Resolution Tips:

    • Ensure the API token is correctly set up and has sufficient permissions.
    • Use valid values for "Status" and "Sort Type" properties.
    • Confirm that the Printcart API service is operational.

Links and References

Discussion