Decogro icon

Decogro

Decogro integration for n8n

Order → Create Line Group

AI-generated

Overview

This node operation 'Create Line Group' in the 'Order' resource allows users to create a new line group for an existing order in the Decogro system. It is useful for organizing order items into groups with specific attributes such as group name, hidden columns, and detailed item information including category, color, sizes, price, and mockups. This operation is beneficial in scenarios where orders need to be segmented into logical groups for better management and processing, such as grouping T-shirts by size and color in a clothing order.

Use Case Examples

  1. Creating a line group named 'T-Shirts' for order ID 123 with items specifying category, color, item number, description, sizes, price, and mockups.
  2. Organizing order items into groups to facilitate bulk updates or processing in Decogro.

Properties

Name Meaning
Order ID The ID of the order to create a line group for, used to specify which order the new line group will be added to.
JSON Body The JSON data to send in the request body, containing details of the line group such as group name, columns to hide, and the items within the group with their attributes.

Output

JSON

  • operation - The operation performed, e.g., 'createLineGroup'.
  • data - The response data from Decogro API after creating the line group, including details of the created group.
  • metadata
    • method - HTTP method used for the request, typically 'POST'.
    • endpoint - API endpoint used for the request, e.g., 'order/{orderId}/groups'.
    • timestamp - Timestamp when the request was made.

Dependencies

  • Requires Decogro API credentials including base URL and API key for authentication.

Troubleshooting

  • Ensure the 'Order ID' is valid and corresponds to an existing order in Decogro to avoid errors.
  • Validate the JSON Body format to be correct JSON; invalid JSON will cause the request to fail with an error indicating invalid JSON in the body.
  • Check API credentials and permissions to ensure the user has rights to create line groups on the specified order.
  • If the API returns an error, inspect the error message for details such as missing required fields or invalid data types in the JSON body.

Links

Discussion