Actions80
- Account Actions
- Clipart Actions
- Clipart Storage Actions
- Design Actions
- Font Actions
- Image Actions
- Product Actions
- Project Actions
- Project Folder Actions
- Side Actions
- Storage Actions
- Store Actions
- Template Actions
- Webhook Actions
Overview
This node integrates with the Printcart API to manage various resources related to print-on-demand products and their associated data. Specifically, for the Product resource and the Delete Product operation, the node allows users to delete a product by its ID from the Printcart system.
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 a larger automation process, such as syncing inventory or cleaning up test data.
Example use case:
- A user wants to automatically delete a product from their Printcart store when it is no longer available or has been replaced by a new version. By providing the product ID, this node sends a DELETE request to remove that product.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authentication; only option is "API Token" which uses an API key credential to authorize requests. |
| Product ID | The unique identifier (ID) of the product to be deleted. This is a required string input. |
Output
The node outputs a JSON object representing the response from the Printcart API after attempting to delete the specified product. Typically, this will contain confirmation of deletion or details about the deleted product.
The output structure corresponds directly to the API's JSON response for the DELETE /products/{productId} endpoint. It does not produce binary data.
Dependencies
- Requires an API token credential for authenticating requests to the Printcart API.
- The node makes HTTP DELETE requests to the Printcart API endpoint:
https://{sid}:{secret}@api.printcart.com/v1/products/{productId} - The
sidandsecretare retrieved from the stored API token credentials. - No additional external dependencies beyond network access to the Printcart API.
Troubleshooting
Invalid or missing Product ID:
If the Product ID is not provided or incorrect, the API will likely return an error indicating the product was not found. Ensure the Product ID is correct and exists in the Printcart system.Authentication errors:
If the API token credential is invalid or expired, the node will fail with an authentication error. Verify that the API token is valid and has sufficient permissions.Network or API availability issues:
Network problems or Printcart API downtime can cause request failures. Check connectivity and Printcart service status.Error messages from the API:
The node returns error messages from the Printcart API in the output JSON if the deletion fails. Review these messages for specific causes (e.g., permission denied, product locked).Continue on Fail setting:
If enabled, the node will continue processing subsequent items even if one deletion fails, returning error details in the output.
Links and References
- Printcart API Documentation (general reference for endpoints and payloads)
- Printcart API endpoint for deleting a product:
DELETE /v1/products/{productId}
This summary is based solely on static analysis of the provided source code and property definitions.