Printcart icon

Printcart

Consume Prinrcart API

Actions83

Overview

This node integrates with the Printcart API to manage storage resources. Specifically, the "Get List of Storages" operation retrieves a list of storage entries from the Printcart platform. This is useful for workflows that need to access or manipulate storage data such as folders or file repositories within Printcart.

Common scenarios include:

  • Fetching available storages to display or process in subsequent workflow steps.
  • Automating inventory or asset management by syncing storage information.
  • Filtering and sorting storages based on criteria like ID or type.

Example: A user wants to retrieve up to 20 storage entries sorted ascendingly by their ID to update an external database or trigger further processing.

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 how to sort the results.
  Type Sorting order: "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 where each element represents a storage object retrieved from the Printcart API. The structure corresponds directly to the API response for storages, typically including fields such as storage ID, name, parent ID, and other metadata related to the storage entity.

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, and sortBy.
  • The node expects the environment to have network access to the Printcart API.

Troubleshooting

  • Authentication errors: Ensure the provided API token credential is valid and has sufficient permissions to access storage data.
  • Invalid parameter values:
    • The "Limit" must be at least 10; setting lower values may cause errors or unexpected behavior.
    • The "Sort Type" must be either "Asc" or "Desc".
    • The "Sort By" field should correspond to a valid sortable field in the storage resource.
  • Network issues: Verify connectivity to the Printcart API endpoint.
  • API rate limits or server errors: If the API returns errors, check the API status and retry after some time.
  • Missing or incorrect parameters: If the node fails, confirm all required parameters are set correctly according to the operation.

Links and References

Discussion