Decogro icon

Decogro

Decogro integration for n8n

Order → Delete Line Group

AI-generated

Overview

This node integrates with the Decogro API to manage orders and related entities. Specifically, the 'Delete Line Group' operation allows users to delete a specific line group from an existing order in Decogro. This is useful for workflows that need to programmatically remove groups of line items from orders, such as order corrections or updates.

Use Case Examples

  1. Deleting a line group from an order when a customer cancels part of their order.
  2. Automating order cleanup by removing obsolete line groups after certain conditions are met.

Properties

Name Meaning
Order ID The ID of the order to delete a line group from, used to identify the target order for the deletion.
Group ID The ID of the line group to delete, specifying which group within the order should be removed.

Output

JSON

  • operation - The operation performed, e.g., 'deleteLineGroup'.
  • data - The response data from the Decogro API after deleting the line group.
  • metadata
    • method - The HTTP method used for the request, typically 'DELETE'.
    • endpoint - The API endpoint called to perform the deletion.
    • timestamp - The timestamp when the operation was performed.

Dependencies

  • Requires an API key credential for Decogro API authentication.

Troubleshooting

  • Ensure the Order ID and Group ID are valid and exist in Decogro; invalid IDs will cause errors.
  • Check API key validity and permissions to allow deletion operations.
  • Common error: 'Unknown operation' if the operation parameter is incorrect; verify the operation name is 'deleteLineGroup'.
  • If the API returns an error, inspect the error message for details such as authorization issues or resource not found.

Discussion