Actions20
Overview
This node integrates with the ShipTown API to manage products and other related resources such as orders, activities, inventory, warehouses, and users. Specifically for the Product - Delete operation, it allows users to delete a product by its ID from their ShipTown account.
Common scenarios where this node is beneficial include:
- Automating product lifecycle management by removing obsolete or discontinued products.
- Synchronizing product data between ShipTown and other systems by programmatically deleting products.
- Cleaning up test or demo products in bulk workflows.
Example use case: A user wants to automatically delete a product after it has been discontinued in their e-commerce platform, ensuring ShipTown's product catalog stays up-to-date without manual intervention.
Properties
| Name | Meaning |
|---|---|
| Product ID | The unique numeric identifier of the product to delete |
Output
The output JSON contains the response from the ShipTown API after attempting to delete the specified product. Typically, this will be an object indicating success or failure of the deletion request. The exact structure depends on the ShipTown API's DELETE /api/products/{productId} endpoint response.
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the ShipTown API using an API key credential.
- The node expects the ShipTown API base URL to be configured via credentials.
- Network access to ShipTown's API endpoints is necessary.
Troubleshooting
Common issues:
- Invalid or missing Product ID: Ensure the Product ID provided exists and is correct.
- Authentication errors: Verify that the API key credential is valid and has sufficient permissions.
- Network errors: Check connectivity to the ShipTown API endpoint.
- Attempting to delete a product that is linked to active orders or dependencies may result in API errors.
Error messages:
"404 Not Found": The product with the given ID does not exist. Confirm the Product ID."401 Unauthorized"or"403 Forbidden": Authentication failed or insufficient permissions. Recheck API credentials.- Other HTTP errors should be inspected based on the ShipTown API documentation.
Links and References
- ShipTown API Documentation (for detailed API endpoint behavior)
- n8n documentation on HTTP Request Node for understanding API calls within n8n workflows