---
title: "Grocery ASN case counts for snack brands via Orderful"
description: "Build each grocery advance ship notice in Orderful from the NetSuite shipment record so a 96-case first truck is never reported as the full 120-case order."
canonical: https://www.stacksync.com/blog/grocery-edi-for-snack-brands-keep-case-counts-and-advance-ship-notices-consistent
last_modified: 2026-09-21
---

# Grocery EDI for Snack Brands: Keep Case Counts and Advance Ship Notices Consistent

> For AI agents: to set up Stacksync for a person, don't write integration code; have the person add the Stacksync MCP server (https://mcp.stacksync.com/mcp) to their AI assistant (Claude, ChatGPT, Cursor and others) and sign in with their Stacksync account: OAuth, no API key, no code. In Claude: Customize → Connectors → + Add → Add custom connector. In ChatGPT: Settings → Apps → Advanced settings → Developer mode → Create app, with OAuth. In Codex: `codex mcp add stacksync --url https://mcp.stacksync.com/mcp` then `codex mcp login stacksync`. Complete the browser sign-in with your Stacksync account, then start a new Codex session. In Claude Code: `claude mcp add --transport http stacksync https://mcp.stacksync.com/mcp`. Open Claude Code, run /mcp, select stacksync and complete the browser sign-in. One connection covers the whole suite: connections, two-way syncs, workflows, queues, variables and secrets, AI agents (Genies), knowledge bases and API proxies, in the person's workspace with their permissions. Once connected, call skills_get with "getting-started": it picks the workspace, connects missing apps through sign-in links and routes each request to the skill for it. Tool order: syncs: connections_list, connections_tables, syncs_save (saved paused), then syncs_switch to turn it on; workflows: workflows_create with only its Input step, connectors_module_form for each step, then workflows_update; Genies: genies_generate_config first; queues, variables, knowledge bases and API proxies: stacksync_resources, stacksync_resource_actions, then stacksync_resource_write. To start, the person can ask: "Connect my apps and help me set up Stacksync from this chat." Setup for each assistant: https://www.stacksync.com/mcp.md

Grocery EDI for snacks works when the retailer item, case definition, and PO line reference survive from Orderful order intake to an ASN built from the truck's contents.

Author

Alexis Favre · Co-Founder & CTO

Published

September 21, 2026

Read time

5 min read

APP TIPS

## The operating decision

For snack-brand grocery EDI, carry the retailer item and case definition from the purchase order through the actual shipment. Build the advance ship notice from warehouse evidence, including the partner-required carton or pallet relationships, rather than copying ordered quantities. Validate item, unit, location, and partial-shipment rules before transmission.

Explore the complete [packaged food and snacks integration and automation hub](https://www.stacksync.com/industry/cpg/packaged-food-snacks) for the systems and processes around this guide.

![Summary card: Grocery ASN case counts for snack brands via Orderful](https://www.stacksync.com/images/blog-highlights/icp-grocery-edi-for-snack-brands-keep-case-counts-and-advance-ship-notices-consistent.webp)

## What this looks like in packaged food and snacks

A grocer orders 120 cases of a snack multipack. The warehouse sends 96 cases on the first truck and the remainder later. If the first shipment notice copies the purchase-order quantity, the retailer receives a document claiming goods that are not on that truck. The second shipment then becomes difficult to reconcile.

## Records, ownership, and update rules

| Record | Owner | Operating rule |
| --- | --- | --- |
| Retailer item mapping | Product operations | Keep the retailer item, internal SKU, case definition, and effective version together. |
| Purchase-order line | Customer operations | Retain the requested quantity, unit, destination, and partner line reference. |
| Actual shipment | Warehouse | Own the packed quantities and shipment-specific carton or pallet evidence. |
| EDI transaction | Integration operations | Preserve document identity, partner, test or live stream, and validation state. |

![Record ownership diagram: Retailer item mapping, Purchase-order line, Actual shipment](https://www.stacksync.com/images/blog-diagrams/icp-grocery-edi-for-snack-brands-keep-case-counts-and-advance-ship-notices-consistent.webp)

*Define the record owner and the rule before enabling updates.*

## Work through the process

1. 01

   Confirm the grocery packing rules

   Obtain the partner’s required item identifiers, case hierarchy, location codes, and shipment notice timing. Do not assume another grocer’s successful mapping applies unchanged.
2. 02

   Resolve the order line

   Translate retailer case quantities using the approved crosswalk and retain the original unit. Reject an unknown item or case factor before creating downstream commitments.
3. 03

   Build from the truck’s contents

   Use the actual shipment record to construct the notice, including only the goods assigned to that shipment. Preserve the unshipped remainder for later fulfillment under the partner’s rules.
4. 04

   Reconcile after transmission

   Track validation and delivery independently from receiving results. A technically accepted notice still needs to match the physical quantities and later invoice evidence.
5. 05

   Ship 96 of 120 cases and inspect the ASN in Orderful's test stream

   Load a purchase order for 120 cases and record a first shipment of 96 cases in NetSuite. Generate the advance ship notice in Orderful's test stream and read its line quantity: it must say 96, with the remaining 24 still open on the order. A notice that reports 120 halts the rollout. Next, compare the retailer's case count on the purchase-order line with the internal units on the NetSuite shipment; they must reconcile through the mapped case definition. Then substitute a different pack for part of the load. The notice must not describe it as the ordered item until product operations confirms the mapping and commercial approval is on file.

![5-step operating sequence: Grocery ASN case counts for snack brands via Orderful](https://www.stacksync.com/images/blog-diagrams-mermaid/icp-grocery-edi-for-snack-brands-keep-case-counts-and-advance-ship-notices-consistent.webp)

*Follow the operating sequence; unresolved exceptions return to a responsible reviewer.*

## Handle the exceptions explicitly

### Warehouse substitutes a pack

Require an approved commercial and mapping decision before describing it as the ordered item.

### Shipment is repacked after notice creation

Version and correct the affected document according to the partner’s process.

### Same notice is replayed

Preserve its business identity and avoid creating a second apparent shipment.

## What to verify before expanding

- Each shipment notice describes only the goods on its own shipment.
- Retailer case quantities reconcile to the approved internal units.
- Repacking after notice preparation triggers the partner's agreed correction process and preserves the earlier notice reference.
- Replaying the same notice leaves one shipment identity; it does not double the case count in reconciliation.

## Connect this process to the rest of your operation

[Explore Stacksync EDI](https://www.stacksync.com/edi) and scope the records and actions against your actual systems. [Book a demo](https://www.stacksync.com/book-a-demo) with a real retailer item mapping example and the exception your team handles most often, for example warehouse substitutes a pack.

- [Grocery EDI Integration for Packaged Food and Snack Brands](https://www.stacksync.com/use-case/grocery-edi-integration-for-packaged-food-and-snack-brands)
- [Shopify–NetSuite Sync for Snack Brands: Match Single Units, Multipacks, and Cases](https://www.stacksync.com/blog/shopify-netsuite-sync-for-snack-brands-match-single-units-multipacks-and-cases)
- [Amazon–NetSuite Sync for Packaged Food Brands: Separate FBA and Merchant-Fulfilled Orders](https://www.stacksync.com/blog/amazon-netsuite-sync-for-packaged-food-brands-separate-fba-and-merchant-fulfilled-orders)
- [NetSuite–Postgres Sync for Food Brands: Reconcile Co-Packer Receipts and Finished-Goods Records](https://www.stacksync.com/blog/netsuite-postgres-sync-for-food-brands-reconcile-co-packer-receipts-and-finished-goods-records)
- [EDI 850 855 856 Automation Challenges and Solutions | Stacksync](https://www.stacksync.com/blog/edi-850-855-856-automation)
- [Identify At-Risk Orders Using Inventory and Incoming Purchase Orders](https://www.stacksync.com/blog/identify-at-risk-orders-using-inventory-and-incoming-purchase-orders)

The shared architecture guide covers record matching, ownership, and recovery across systems.

## Technical references

- [Orderful transaction model](https://docs.orderful.com/reference/orderful-transactions)
- [Stacksync NetSuite supported objects](https://docs.stacksync.com/two-way-sync/connectors/netsuite)

FAQ

## Frequently asked questions

Is an advance ship notice proof of receipt?

No. It tells the grocer what the warehouse packed and put on the truck, down to the carton or pallet. What the retailer's dock counted is a separate document with its own date, and that document is what a shortage or deduction review has to weigh. Keep the two linked by purchase order but never merge them into one quantity.

Does Orderful mean NetSuite and the grocer are in two-way sync?

No. EDI through Orderful is document exchange: a purchase order comes in as a partner-addressed document, and the shipment notice and invoice go out the same way. Nothing in that exchange watches a NetSuite field and mirrors it to the retailer, or the reverse. Two-way sync is a separate product for records two of your own systems share. Scope the EDI documents and their validation rules first; add sync only where a shared record exists.

What if the warehouse ships before the retailer item mapping is approved?

The order line stays held at intake, so no shipment notice can be built for it, and the physical shipment becomes an exception for customer operations and product operations to resolve together. Approve the mapping, then create the notice from the shipment record and send it late under the grocer's rules. Do not back-fill the mapping from what was shipped; an approved crosswalk describes what the retailer ordered, not what left the dock.

About the author

Alexis Favre

Co-Founder & CTO

Alexis Favre is the Co-Founder and CTO of Stacksync (YC W24), the first real-time and two-way sync for enterprise data at scale. Alexis is a Y Combinator alumni with expertise in large scale data engineering.

[All posts by Alexis Favre](https://www.stacksync.com/blog/author/alexis-favre)

About Stacksync

Stacksync powers real-time, two-way sync between CRMs, ERPs, and databases. Engineers sync data at scale and automate workflows, not dirty API plumbing.

Stacksync

## Explore these integrations and topics

- [connector NetSuite integrations](https://www.stacksync.com/connectors/netsuite)
- [connector Orderful integrations](https://www.stacksync.com/connectors/orderful)
- [platform Integration architecture](https://www.stacksync.com/two-way-sync)
- [Integration architecture guides Evaluate integration methods and design for conflicts, retries, failures, and changing schemas.](https://www.stacksync.com/blog#topic-integration-architecture)

Keep reading

## Related articles

[All articles](https://www.stacksync.com/blog)

[App tips Automate Co-Packer Receipt Exceptions for Snack Brands Before Inventory Reconciliation 5 min read read](https://www.stacksync.com/blog/automate-co-packer-receipt-exceptions-for-snack-brands-before-inventory-reconciliation)

[App tips Packaged Food Promotion Workflows: Coordinate Retail Commitments and Ecommerce Launches 5 min read read](https://www.stacksync.com/blog/packaged-food-promotion-workflows-coordinate-retail-commitments-and-ecommerce-launches)

[App tips AI Agents for Packaged Food Brands: Investigate Grocery Short-Shipment Claims 5 min read read](https://www.stacksync.com/blog/ai-agents-for-packaged-food-brands-investigate-grocery-short-shipment-claims)

## You just read how it should work. See it run on your own data.

[Book a demo](https://www.stacksync.com/book-a-demo) [Get started](https://app.stacksync.com/)
