Printcart icon

Printcart

Consume Prinrcart API

Actions83

Overview

This node integrates with the Printcart API to manage images and other related resources. Specifically, for the Image resource with the Get List of Image operation, it fetches a list of images from the Printcart service. This is useful in scenarios where you want to retrieve image assets stored or managed within Printcart, such as for product customization, design previews, or digital asset management.

Practical examples include:

  • Automatically fetching the latest images available in your Printcart account to display or process them further.
  • Integrating image lists into workflows that generate product designs or marketing materials.
  • Synchronizing image data between Printcart and other systems.

Properties

Name Meaning
Authentication Method of authentication; currently supports "API Token"
Limit Maximum number of image results to return (minimum 10, default 10)
Sort Sorting order for the results; option to sort by "Desc" (descending) or "Asc" (ascending)
Sort By Field by which to sort the images; defaults to "id"

Output

The node outputs a JSON array containing the list of images retrieved from the Printcart API. Each item in the array represents an image object with its associated metadata as returned by the API.

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 /v1/images with query parameters for limit, sorting type, and sorting field.
  • No additional external dependencies are required beyond the API access.

Troubleshooting

  • Common Issues:

    • Invalid or missing API token will cause authentication failures.
    • Requesting fewer than 10 items may be rejected due to minimum limit enforcement.
    • Incorrect or unsupported sort fields may result in unexpected ordering or errors.
  • Error Messages:

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

    • Ensure the API token is correctly configured in the node credentials.
    • Use valid values for the "Limit" property (minimum 10).
    • Confirm that "Sort" and "Sort By" values correspond to supported API parameters.

Links and References

Discussion