Printcart icon

Printcart

Consume Prinrcart API

Actions83

Overview

This node integrates with the Printcart API to manage various resources related to print-on-demand products and stores. Specifically, for the Product resource and the Get List of Import Products operation, it retrieves a list of imported products from an external source integrated with Printcart.

Typical use cases include:

  • Synchronizing imported product data from Printcart into your workflow.
  • Automating inventory or product catalog updates by fetching the latest imported products.
  • Integrating Printcart product imports with other systems like e-commerce platforms or databases.

Example: You want to fetch all products imported from a connected supplier or integration source to process them further in your automation pipeline.

Properties

Name Meaning
Authentication Method of authentication; currently supports "API Token"
Sid The SID (identifier) used for authenticating the request to the Printcart API
Secret The secret key paired with the SID for authenticating the request

These properties are required to authenticate and authorize requests to the Printcart API when fetching the list of imported products.

Output

The node outputs JSON data representing the list of imported products retrieved from the Printcart API endpoint:

GET https://{sid}:{secret}@api.printcart.com/v1/integration/source-products

The output JSON structure corresponds directly to the API response from this endpoint, typically including details such as product IDs, names, descriptions, statuses, and other metadata about each imported product.

No binary data output is involved in this operation.

Dependencies

  • Requires valid credentials consisting of a SID and Secret for Printcart API access.
  • The node uses HTTP Basic Authentication by embedding the SID and Secret in the request URL.
  • Requires network access to https://api.printcart.com.
  • No additional environment variables or n8n-specific configurations beyond providing the API token credential are needed.

Troubleshooting

  • Authentication errors: If the SID or Secret is incorrect or missing, the API will reject the request. Verify that the credentials are correct and have sufficient permissions.
  • Network issues: Ensure that the n8n instance can reach api.printcart.com over HTTPS.
  • Empty or unexpected responses: Confirm that there are imported products available in the Printcart account associated with the provided credentials.
  • Error handling: If the API returns an error, the node will throw an exception unless "Continue On Fail" is enabled, in which case the error message will be included in the output for the respective item.

Links and References


This summary is based on static analysis of the node's execute method and bundled source code, focusing on the Product resource's Get List of Import Products operation.

Discussion