Printcart icon

Printcart

Consume Prinrcart API

Actions83

Overview

This node integrates with the Printcart API to manage products and other related resources. Specifically, for the Delete Product operation under the Product resource, it allows users to delete a product by its ID from their Printcart account.

Common scenarios where this node is beneficial include:

  • Automating product lifecycle management in an e-commerce or print-on-demand workflow.
  • Removing obsolete or discontinued products programmatically.
  • Integrating product deletion as part of larger automation flows that sync inventory or catalog data.

Example use case:

  • A user wants to automatically delete a product from their Printcart store when it is removed from their main inventory system. This node can be used to trigger that deletion via the API using the product's unique ID.

Properties

Name Meaning
Authentication Method of authentication; currently supports "API Token" only.
Product ID The unique identifier (ID) of the product to delete. This is a required string property.

Output

The node outputs a JSON array containing the response from the Printcart API after attempting to delete the specified product. The structure of the output JSON corresponds to the API's response for a DELETE request on a product resource, typically including status information or confirmation of deletion.

No binary data output is involved in this operation.

Dependencies

  • Requires an API token credential for authenticating requests to the Printcart API.
  • The node uses HTTP requests to the Printcart API endpoints, specifically the DELETE method on /v1/products/{productId}.
  • No additional external dependencies are needed beyond the configured API token.

Troubleshooting

  • Common issues:

    • Invalid or missing Product ID: The operation requires a valid product ID; ensure this is provided and correct.
    • Authentication errors: If the API token is invalid or expired, the request will fail.
    • Network or connectivity issues: Ensure the n8n instance has internet access to reach the Printcart API.
  • Error messages:

    • Errors returned from the API will be included in the node's output if "Continue On Fail" is enabled.
    • Typical error responses may include 401 Unauthorized (invalid token), 404 Not Found (product ID does not exist), or 400 Bad Request (malformed request).
  • Resolution tips:

    • Verify the API token is correctly set up and has necessary permissions.
    • Double-check the product ID value for correctness.
    • Use the node's error output to inspect API error messages for further debugging.

Links and References

Discussion