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 stores. Specifically, for the Storage resource with the Get List of Storages operation, it retrieves a list of storage entities from the Printcart platform.

Common scenarios where this node is beneficial include:

  • Fetching available storage locations or categories to organize digital assets.
  • Integrating storage data into workflows that automate product or design management.
  • Synchronizing storage information between Printcart and other systems.

For example, a user might use this node to get a paginated and sorted list of storages to display in a dashboard or to feed into another process that manages product assets.

Properties

Name Meaning
Authentication Method of authentication; currently supports only "API Token".
Limit Maximum number of storage results to return (minimum 10).
Sort Collection specifying sorting order:
- Type: "Desc" (descending) or "Asc" (ascending)
Sort By Field by which to sort the storage list; defaults to "id".

Output

The node outputs a JSON array containing the list of storages retrieved from the Printcart API. Each item in the array represents a storage object with its properties as returned by the API.

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://{sid}:{secret}@api.printcart.com/v1/storages
    with query parameters for limit, sort type, and sortBy field.
  • The sid and secret are obtained from the API token credentials configured in n8n.

Troubleshooting

  • Common issues:

    • Invalid or missing API token credential will cause authentication failures.
    • Providing a limit value less than 10 may be rejected or ignored by the API.
    • Incorrect sort or sortBy values may result in unexpected ordering or errors.
  • Error messages:

    • Authentication errors typically indicate invalid or expired API tokens; reconfigure the credential.
    • HTTP 4xx or 5xx errors may indicate issues with request parameters or server availability.
    • If the node logs "Sort parameter not found. Using default value.", it means the optional sort type was not set and default sorting is applied.

Links and References


Note: Internal credential names and sensitive details have been generalized per guidelines.

Discussion