Shopistuff icon

Shopistuff

Consume Shopify API

Overview

This node allows you to delete an order from a Shopify store via the Shopistuff integration in n8n. It is useful for automating the removal of orders that are no longer needed, such as test orders or those created in error. For example, you might use this node in a workflow that cleans up old or invalid orders after certain checks fail.

Properties

Name Type Meaning
Order ID String The unique identifier of the order you want to delete from your store.

Output

The output will be a JSON object indicating the success of the operation:

{
  "success": true
}

If an error occurs and "Continue On Fail" is enabled, the output will include an error message:

{
  "error": "Error message here"
}

Dependencies

  • Shopify API: Requires valid Shopify API credentials configured in n8n under the name shopistuffApi.
  • n8n Configuration: Ensure the Shopistuff node is properly installed and credentials are set up.

Troubleshooting

  • Common Issues:

    • Invalid Order ID: If the provided Order ID does not exist, the node will throw an error.
    • Missing Credentials: If the required Shopify API credentials are not set, the node will fail to connect.
    • Insufficient Permissions: The API key used must have permission to delete orders.
  • Error Messages:

    • "At least one line item has to be added": This is not relevant for delete but may appear if the wrong operation is selected.
    • "Order not found" or similar: Indicates the Order ID does not exist or is incorrect.
    • "API key missing or invalid": Check your n8n credential setup.

How to resolve:

  • Double-check the Order ID.
  • Verify your Shopify API credentials in n8n.
  • Ensure your API user has the necessary permissions.

Links and References

Discussion