Printcart icon

Printcart

Consume Prinrcart API

Actions83

Overview

This node interacts with the Printcart API to manage "Project Folder" resources, specifically allowing users to retrieve a list of project folders. It is useful in scenarios where you want to organize or access collections of projects grouped into folders within the Printcart system.

A practical example use case is when you have multiple projects categorized under different folders (e.g., by client, department, or project type) and you want to fetch these folders programmatically to display them, synchronize with another system, or automate workflows based on folder organization.

Properties

Name Meaning
Authentication Method of authentication; currently supports "API Token" for accessing the Printcart API.
Limit Maximum number of project folder results to return (minimum 10).
Sort Collection specifying sorting order:
   Type Sorting direction, either "Asc" (ascending) or "Desc" (descending).
Sort By Field name by which to sort the project folders, default is "id".

Output

The node outputs a JSON array containing the list of project folders retrieved from the Printcart API. Each item in the array represents a project folder object as returned by the API, typically including properties such as folder ID, name, associated project IDs, and other metadata defined by the Printcart service.

No binary data output is produced by this operation.

Dependencies

  • Requires an API token credential for authenticating requests to the Printcart API.
  • The node makes HTTP GET requests to the endpoint:
    https://api.printcart.com/v1/project-folder
    
    with query parameters for limit, sort type, and sortBy field.
  • n8n must be configured with the appropriate API token credential to authorize these requests.

Troubleshooting

  • Common Issues:

    • Invalid or missing API token will cause authentication failures.
    • Requesting fewer than 10 items for the limit property may not be accepted due to minimum value constraints.
    • Incorrect or unsupported values for sorting fields may result in unexpected ordering or API errors.
  • Error Messages:

    • Authentication errors typically indicate invalid or expired API tokens; ensure the token is valid and has necessary permissions.
    • HTTP request failures might occur if the API endpoint is unreachable or network issues exist.
    • If the API returns errors about invalid parameters, verify that the limit, sort.type, and sortBy inputs conform to expected values.

Links and References

Discussion