The Order Aggregation Engine combines many individual orders into a single aggregated order. Sending fewer orders to downstream systems, such as NetSuite, reduces API traffic and can lower costs where pricing is based on volume.
With the Order Aggregation Engine, you can:
- Combine thousands of orders (5,000 by default) into one aggregated order.
- Total SKU quantities, payments, discounts, and taxes across the combined orders.
- Create one shipping request for each aggregated order, with fulfillments that match the locations of the original orders.
- Send aggregated orders to NetSuite as sales orders.
Before you begin
- Ask Pipe17 to enable the Order Aggregation Engine for your account. Once it's on, users who can edit integrations can change its settings.
- Decide which sales channels to include, whether to combine different payment methods, how to handle orders with more than one payment method, whether to split lines by fulfillment location, and the capacity and window to use.
- Test the configuration in a lower environment first, if you have one.
Eligibility and limitations
- Only orders in Fulfilled status with accepted fulfillments are aggregated. Partially fulfilled orders and orders without fulfillments, such as some FBA flows, are excluded.
- Orders from multiple sources, such as Shopify and TikTok, are supported. Aggregated orders use their own order source type, Aggregated, and are never aggregated again.
- Aggregated orders can be separated by payment method only. They're never split into separate orders by fulfillment location.
- Aggregated orders, and their shipping requests and fulfillments, are excluded from inventory calculations to avoid double counting.
How it works
The engine runs every 5 minutes. For each aggregation rule you configure, it collects matching orders into aggregated orders:
- When the first eligible order for a rule arrives in a window, the engine creates an aggregated order in Draft status. The Draft order has a note that collection is in progress and when the window ends. Its lines and totals are filled in when it's finalized.
- As the engine collects each original order, it adds the tags
aggregatedand the aggregated order's ID to it. An order with theaggregatedtag isn't collected again. - The engine finalizes the aggregated order when the first of these happens:
- Capacity is reached: The aggregated order reaches the order capacity or 1,000 distinct lines. The engine finalizes it on its next run and starts a new Draft aggregated order for the rest of the window.
- The window closes: The engine finalizes every Draft aggregated order for the rule, even if it hasn't reached capacity. Allow 5–10 minutes after the window ends.
- When it finalizes an aggregated order, the engine fills in the lines, payments, discounts, and taxes, then creates one shipping request and one fulfillment for each fulfillment location. The aggregated order then shows as Fulfilled.
An order belongs to the window in which its last accepted fulfillment was created. Windows start at midnight Pacific time and run back to back. In one window, you might see several aggregated orders for the same rule if volume exceeds capacity, or if the rule separates orders by payment method.
Grouping by payment method
The engine groups orders by their custom payment method (for example, shopify_payments or paypal), or by their payment method when there is no custom one. Gift card payments are grouped with shopify_payments.
- When Aggregate payment method is selected, one aggregated order collects orders regardless of payment method.
- When it's cleared (the default), the engine creates a separate aggregated order for each payment method. For orders with more than one payment method, the multiple-payment setting decides what happens. See Settings below.
Orders fulfilled from more than one location
The engine doesn't create separate aggregated orders per fulfillment location, because it can't safely divide one payment across locations before posting to your ERP. It always keeps the payment on one aggregated order and creates one fulfillment per location.
By default, each SKU appears on one line with its total quantity. If you select Split Order Lines by fulfillment locations, the engine creates one line per SKU per fulfillment location instead.
Example: An order has 3 units of sku123, paid in full with one payment method. Two units ship from location A and one from location B. With Split Order Lines by fulfillment locations selected, the aggregated order sent to NetSuite has two lines instead of one line for 3 units:
| SKU | Quantity | Location |
|---|---|---|
| sku123 | 2 | locationA |
| sku123 | 1 | locationB |
This keeps the per-location fulfillment detail without splitting the payment.
NetSuite
Aggregated orders can be sent to NetSuite as sales orders. Use the aggregated order source you set in the rule (for example, Shopify Aggregated) to filter and map them in your NetSuite integration.
How to configure the engine
- Navigate to Integrations, and then open Order Aggregation Engine. Its Settings page opens. If you don't see the integration, contact support to enable it.
- Under Order Aggregation Settings, set the fields for the aggregation rule. See Settings below.
- To add a rule with different settings, for example, one for Shopify and one for TikTok, click Add Aggregation Settings. To delete a rule, click its remove icon.
- Click Save.
Important: Don't use Restore Defaults to reset one rule. It replaces all of the integration's settings with factory defaults, which removes your aggregation rules.
Settings
| Setting | Description | Options or default |
|---|---|---|
| Order Sources (Required) | The order sources this rule applies to. | Enter one or more exact source names, for example, shopify. Enter * to include all sources. |
| The order source of the aggregation order | The order source written on the aggregated orders the engine creates. Use it to find, filter, and route aggregated orders, and to map them in integrations such as NetSuite. | We recommend <Source> Aggregated, for example, Shopify Aggregated. Must be different for each rule. |
| Aggregate payment method | Whether orders with different payment methods go into the same aggregated order. | Selected: one aggregated order for all payment methods. Cleared: a separate aggregated order for each payment method. Default: cleared. |
| If group by payment method is enabled, and orders have multiple payment methods, what to do? | What happens when an order has more than one payment method. Applies only when Aggregate payment method is cleared. | Create an Exception, order will not be aggregated; Fallback to first payment method, order will be aggregated; or Fallback to highest-value payment method. Order will be aggregated (default). |
| Split Order Lines by fulfillment locations | Whether a SKU fulfilled from more than one location gets one line per location on the aggregated order. | Default: cleared (one line per SKU). |
| Aggregated order capacity | The maximum number of orders in one aggregated order. When the count is reached, the engine starts a new aggregated order. | Default: 5,000. |
| Aggregation Window | How long the engine collects orders before finalizing. | 3, 6, 12, or 24 hours. Default: 24 hours. |
Use a cleared Aggregate payment method when your ERP or accounting needs payment types handled separately. Larger capacities mean fewer API calls, while smaller ones make auditing easier.
The engine checks your rules before it runs:
- Each rule needs at least one order source, a capacity, and a window.
- An order source can be used in only one rule, and
*works only when it's the only rule. - Each rule needs its own aggregation order source.
Rules that break these checks are skipped, and the integration shows an exception. If two rules share an order source or an aggregation order source, aggregation stops until you fix the rules.
How to view aggregated orders
- Navigate to Orders > All Orders.
- If the list opens with an Ingested date filter, click Clear All, and then set the Ingested or Ordered filter to the dates you want.
- Select Aggregated in the Order Source Type filter.
Draft aggregated orders are still collecting orders. They finalize when the window closes or capacity is reached.
Aggregated order details
Select an aggregated order to open its details page.
- The lines show the aggregated SKUs with total quantities and values. If Split Order Lines by fulfillment locations is selected, a SKU shipped from more than one location appears once per location.
- To see the original orders that make up the aggregated order, filter All Orders by the tag that matches the aggregated order's ID. If the page shows an Orders In This Aggregate card, click View related orders to open that list.
Best practices
- Use a separate rule for each channel when they need different behavior, for example, a different window or payment handling.
- Choose a window that matches your operational cutoffs and how often you post to your ERP.
- Name the aggregated order source clearly, for example,
Shopify Aggregated, so you can filter and map it easily. - Avoid removing a rule or changing its aggregated order source while orders are being collected. The engine drops that rule's in-progress collection, and its Draft aggregated order isn't completed.
- Review the first few aggregated orders, shipping requests, and fulfillments after you enable the engine, before you rely on it.
Troubleshooting
- An aggregated order stays in Draft
The window hasn't closed yet, or capacity wasn't reached. Allow 5–10 minutes after the window ends. - Expected orders are missing from an aggregated order
Check that the orders are in Fulfilled status with accepted fulfillments, that they came from a source included in the rule, and that their last fulfillment was created during the window. Orders that already have theaggregatedtag aren't collected again. - Orders are split across several aggregated orders
Aggregate payment method might be cleared, which creates a separate aggregated order for each payment method. Reaching the capacity or 1,000 distinct lines also starts a new aggregated order. - An order has the exception "Order cannot be aggregated - it has multiple payment methods."
The rule groups by payment method and is set to Create an Exception, order will not be aggregated. Choose a fallback option in the multiple-payment setting, or select Aggregate payment method. - The Order Aggregation Engine integration shows an exception and no orders are aggregated
A rule failed the engine's checks, for example, two rules use the same order source or the same aggregation order source. Fix the rules described in the exception, and then click Save. - Aggregated orders don't appear on All Orders
A date filter might be hiding them. Click Clear All, set a wider date range, and select Aggregated in Order Source Type. - Inventory totals look wrong
Aggregated orders, shipping requests, and fulfillments are excluded from inventory calculations to avoid double counting. Check that you're not adding them back in views or exports.
Need Help?
If you need additional assistance:
- Use Ask Pippen, our AI agent, located at the top of the platform page.
- Submit a support request with as much relevant detail as possible. Learn how to submit a request.
We're here to help you succeed with your operations.
Comments
0 comments