Actions16
- Customers Actions
- Options Actions
- Orders Actions
- Products Actions
- Variants Actions
Overview
This node integrates with the Sharpei API to manage product variants, specifically allowing deletion of a variant associated with a product. It is useful in scenarios where you need to programmatically remove outdated or incorrect variants from your product catalog within an automated workflow.
For example, if a variant of a product is discontinued or no longer available, this node can be used to delete that variant by specifying its unique identifier (Pid) along with the product's Pid.
Properties
| Name | Meaning |
|---|---|
| Product Pid | The unique identifier (Pid) of the product to which the variant belongs. This is required to specify the context for the variant deletion. |
| Variant Pid | The unique identifier (Pid) of the variant to be deleted. This identifies exactly which variant will be removed. |
Output
The node outputs JSON data representing the result of the delete operation. Typically, this would include confirmation of successful deletion or details about any error encountered. The exact structure depends on the Sharpei API response but generally confirms whether the variant was successfully deleted.
No binary data output is expected from this operation.
Dependencies
- Requires an active connection to the Sharpei API.
- An API authentication token or key credential must be configured in n8n to authorize requests.
- The base URL for the API is
https://api.prod.gosharpei.com/api. - Proper permissions on the API side to delete product variants are necessary.
Troubleshooting
- Invalid Product Pid or Variant Pid: If either identifier is incorrect or does not exist, the API will likely return an error indicating the resource was not found. Verify the IDs before running the node.
- Authentication Errors: Missing or invalid API credentials will cause authorization failures. Ensure the API key/token is correctly set up in n8n.
- Network Issues: Connectivity problems may prevent the node from reaching the Sharpei API. Check network settings and API availability.
- Permission Denied: If the API user lacks permission to delete variants, the operation will fail. Confirm appropriate access rights.
Links and References
- Sharpei API Documentation (Assumed base URL; consult official docs for detailed endpoints and responses)
