Sharpei icon

Sharpei

Consume Sharpei Api

Overview

This node integrates with the Sharpei API, specifically allowing operations on various resources such as Customers, Options, Orders, Products, Status, and Variants. The "Delete Image" operation under the "Variants" resource enables users to delete an image associated with a product variant by specifying its unique image identifier (Image PID). This is useful in scenarios where outdated or incorrect images need to be removed from product variants in an e-commerce or inventory management system.

Practical examples include:

  • Removing deprecated variant images after a product update.
  • Cleaning up incorrect or duplicate images linked to variants.
  • Automating image management workflows for product variants.

Properties

Name Meaning
Image PID The unique identifier of the image to be deleted from the variant.

Output

The node outputs JSON data representing the response from the Sharpei API after attempting to delete the specified image. This typically includes confirmation of deletion or error details if the operation failed. There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential for authenticating requests to the Sharpei API.
  • The base URL for API requests is https://api.prod.gosharpei.com/api.
  • Proper configuration of the API authentication credential within n8n is necessary.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent Image PID will likely result in an error response from the API.
    • Missing or incorrect API credentials will cause authentication failures.
    • Network connectivity issues can prevent successful API calls.
  • Error messages:

    • Authentication errors indicating invalid or missing API keys require checking the configured credentials.
    • Not found errors when the Image PID does not exist suggest verifying the identifier before attempting deletion.
    • General API errors should be reviewed in the context of the Sharpei API documentation for further guidance.

Links and References

Discussion