Printcart icon

Printcart

Consume Prinrcart API

Actions83

Overview

This node integrates with the Printcart API to manage fonts and other related resources. Specifically, for the Font resource with the Get List of Font operation, it retrieves a list of fonts available in the Printcart system. This is useful when you want to fetch font data for use in print designs, templates, or product customization workflows.

Common scenarios include:

  • Automatically fetching available fonts to populate dropdowns or selection lists in design tools.
  • Synchronizing font data from Printcart into another system or database.
  • Filtering and sorting fonts based on criteria like ID or type.

Example: You might use this node to get the top 10 fonts sorted by their ID in descending order to display in a custom UI or to process further in your workflow.

Properties

Name Meaning
Authentication Method of authentication; currently supports "API Token"
Limit Maximum number of font results to return (minimum 10)
Sort Sorting direction for the results; options are "Desc" (descending) or "Asc" (ascending)
Sort By Field by which to sort the fonts; defaults to "id"

Output

The node outputs an array of JSON objects representing fonts retrieved from the Printcart API. Each object contains font details such as name, alias, URL, type, subset, and other metadata provided by the API.

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 GET requests to endpoints like https://<sid>:<secret>@api.printcart.com/v1/fonts with query parameters for limit, sort, and sortBy.
  • Proper configuration of the API token credential in n8n is necessary.

Troubleshooting

  • Authentication errors: Ensure that the API token credential is correctly configured and valid.
  • Invalid parameter values: The "Limit" must be at least 10; setting lower values may cause errors.
  • Sort parameters missing or invalid: If sort options are not set properly, the node defaults to descending order by ID.
  • Network or API errors: Check connectivity and API availability; error messages from the API will be returned in the node's output if continueOnFail is enabled.
  • Unexpected response structure: Verify that the API endpoint has not changed and that the credentials have sufficient permissions.

Links and References

Discussion