Petstore icon

Petstore

Interact with Petstore API

Overview

This node interacts with a store API to delete an existing order by its unique identifier. It is useful in scenarios where you need to programmatically remove orders from the system, such as canceling orders that were created by mistake or cleaning up test data. For example, an e-commerce workflow could use this node to automatically delete orders that have been flagged as fraudulent.

Properties

Name Meaning
Order Id ID of the order that needs to be deleted

Output

The node outputs JSON data representing the response from the API after attempting to delete the specified order. This typically includes confirmation of deletion or error details if the operation failed. The output does not include binary data.

Dependencies

  • Requires access to the Petstore API endpoint at https://petstore3.swagger.io/api/v3.
  • Needs an API authentication token or key configured in n8n credentials to authorize requests.
  • Uses standard HTTP headers for JSON content type and acceptance.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent Order Id will likely result in an error response from the API.
    • Missing or incorrect API authentication credentials can cause authorization failures.
    • Network connectivity problems may prevent the node from reaching the API endpoint.
  • Error messages:

    • "Order not found" or similar indicates the specified Order Id does not exist.
    • "Unauthorized" or "Authentication failed" suggests issues with API credentials.
    • Timeout or connection errors indicate network or endpoint availability problems.

To resolve these, verify the Order Id is correct, ensure valid API credentials are set up in n8n, and check network connectivity.

Links and References

Discussion