Printcart icon

Printcart

Consume Prinrcart API

Actions83

Overview

This node integrates with the Printcart API, enabling users to manage various Printcart resources such as accounts, stores, products, sides, images, cliparts, designs, projects, templates, storages, fonts, webhooks, clipart storages, and project folders. Specifically, for the Store resource and the Renew UnAuth Token operation, the node sends a request to renew or revoke an unauthorized token related to a store.

Common scenarios where this node is beneficial include automating store management tasks within Printcart, such as renewing authentication tokens to maintain secure API access without manual intervention. For example, if a store's unauthorized token expires or needs revocation, this node can programmatically renew it, ensuring uninterrupted integration workflows.

Properties

Name Meaning
Authentication Method of authentication; only option available is "API Token".

(Note: The provided properties JSON only includes the "Authentication" property with one option "API Token". Additional parameters relevant to the "Renew UnAuth Token" operation are not listed in the provided input properties but are handled internally.)

Output

The node outputs a JSON array containing the response from the Printcart API for the requested operation. For the Renew UnAuth Token operation on the Store resource, the output JSON will contain the API response confirming the renewal or revocation of the unauthorized token.

No binary data output is indicated in the source code for this operation.

Dependencies

  • Requires an API key credential (referred generically) for authenticating requests to the Printcart API.
  • The node uses HTTP requests to the Printcart API endpoints, specifically:
    • PUT https://{sid}:{secret}@api.printcart.com/v1/stores/token-revoke
  • The credentials provide sid and secret used for basic authentication in the URL.
  • The node expects the Printcart API to be accessible and the credentials to be valid.

Troubleshooting

  • Common Issues:

    • Invalid or expired API credentials (sid and secret) will cause authentication failures.
    • Network connectivity issues may prevent reaching the Printcart API endpoint.
    • Incorrect resource or operation selection may lead to unexpected errors or no action.
  • Error Messages:

    • Authentication errors typically indicate invalid credentials; verify and update the API token credential.
    • HTTP errors (e.g., 404, 401, 500) suggest issues with the API endpoint or server; check API status and endpoint correctness.
    • If the node throws an error about missing parameters, ensure all required inputs for the selected operation are provided.
  • Resolution Steps:

    • Confirm that the API token credential is correctly configured in n8n.
    • Verify network access to api.printcart.com.
    • Check the Printcart API documentation for any changes in endpoint URLs or authentication methods.
    • Use the node’s "Continue On Fail" option to handle errors gracefully during batch executions.

Links and References


This summary is based solely on static analysis of the provided source code and input properties.

Discussion