Printcart icon

Printcart

Consume Prinrcart API

Actions80

Overview

This node integrates with the Printcart API to manage various resources related to print-on-demand products and designs. Specifically, for the Template resource with the Get List of Template operation, it fetches a list of templates from the Printcart platform.

Use cases include:

  • Retrieving available design templates for products in your store.
  • Automating workflows that require fetching template data for further processing or display.
  • Integrating template data into other systems or dashboards.

For example, you might use this node to get the latest templates to show in a custom product design app or to sync templates with another database.

Properties

Name Meaning
Authentication Method of authentication; currently supports "API Token"
Limit Maximum number of template results to return (minimum 10)
Sort Sorting options: specify sort type as "Asc" (ascending) or "Desc" (descending)
Sort By Field by which to sort the templates; defaults to "id"

Output

The node outputs an array of JSON objects representing the templates retrieved from the Printcart API. Each object corresponds to a template and includes all relevant template details as returned 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 the endpoint:
    https://{sid}:{secret}@api.printcart.com/v1/templates?limit={Limit}&sort={Sort.Type}&sortBy={Sort By}
    where {sid} and {secret} are obtained from the API token credentials.
  • Ensure the API token has sufficient permissions to access template data.

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 sorting parameters may result in default sorting behavior or errors.
    • Network connectivity issues can prevent successful API calls.
  • Error messages:

    • Authentication errors typically indicate invalid or expired API tokens; verify and update credentials.
    • HTTP 4xx or 5xx errors from the API suggest issues with request parameters or server-side problems; check parameter values and retry later.
    • If the node returns empty results, confirm that templates exist and the limit/sort parameters are set correctly.

Links and References

Discussion