Decogro icon

Decogro

Decogro integration for n8n

Order → Recalculate Group

AI-generated

Overview

This node integrates with the Decogro API to perform various operations related to orders, contacts, companies, files, and administrative settings. Specifically, for the 'Order' resource and 'Recalculate Group' operation, it allows users to trigger a recalculation of a specific group within an order. This is useful in scenarios where order group details such as pricing, quantities, or discounts have changed and need to be recalculated to reflect accurate totals. For example, after updating items in a group, a user can recalculate the group to update the order's financial summary accordingly.

Use Case Examples

  1. Recalculate the pricing and totals of a specific group within an order after modifying the group's items or discounts.
  2. Ensure that the order's group totals are accurate before generating an invoice or requesting payment.

Properties

Name Meaning
Order ID The ID of the order to recalculate group for, used to identify which order contains the group to be recalculated.
Group ID The ID of the group within the order to recalculate, specifying the exact group that needs recalculation.

Output

JSON

  • operation - The operation performed, e.g., 'recalculateGroup'.
  • data - The response data returned from the Decogro API after recalculating the group.
  • metadata
    • method - The HTTP method used for the API request, typically 'POST' for this operation.
    • endpoint - The API endpoint called, e.g., 'order/{orderId}/groups/{groupId}/recalculate'.
    • timestamp - The timestamp when the API request was made.

Dependencies

  • Decogro API with an API key credential

Troubleshooting

  • Ensure the provided Order ID and Group ID are valid and exist in the Decogro system; invalid IDs will cause errors.
  • If the API key credential is missing or invalid, authentication errors will occur.
  • Network issues or incorrect base URL configuration can cause request failures.
  • Invalid JSON body or malformed requests will result in errors; however, this operation sends an empty body, so ensure no body content is mistakenly added.

Links

Discussion