Skip to main content

How SPS Commerce EDI works

Retailers that trade over EDI don't email you orders or read your invoices. They send and expect a fixed set of electronic documents, each known by a three-digit code. SPS Commerce carries those documents between you and every retailer you trade with, and SKU.io reads and writes them for you, so the exchange runs alongside your ordinary order handling.

The documents​

CodeDocumentDirectionWhat it says
850Purchase orderRetailer → youWhat the retailer wants, at what price, shipped where and by when
855AcknowledgmentYou → retailerThat you accepted the order
856Ship noticeYou → retailerWhat shipped, in which cartons, with which carrier and tracking, each item's case pack, and the retailer's location ID for where it's going
810InvoiceYou → retailerWhat you're billing for the shipment
857Ship notice and invoiceYou → retailerWhat shipped and the bill for it, in one document, for a retailer that takes it instead of an 856 and an 810
846Inventory adviceYou → retailerHow many of each item you have available to sell them
940Warehouse orderYou → 3PLWhat a 3PL should ship, or stop shipping, or an update to an order it already has
945Warehouse shipping advice3PL → youWhat the 3PL shipped
997Functional acknowledgment3PL or SPS Commerce → youWhether a document you sent could be read
824Application advice3PL or SPS Commerce → youWhether a document you sent was accepted
860Purchase order changeRetailer → youA change to a purchase order. SKU.io keeps it for you to review, and never applies it by itself

Each document carries the retailer's trading partner ID (its address on the SPS Commerce network) and, apart from inventory advice, the purchase order number it belongs to.

How an order flows​

  1. A purchase order arrives. SKU.io checks SPS Commerce every five minutes, or when you click Check SPS for new orders. When every line matches one of your products, it creates the sales order straight away. When a line doesn't, the purchase order waits for you to map the item.

  2. The acknowledgment goes back. As soon as the sales order exists, SKU.io sends the retailer an acknowledgment, unless you turned that off because SPS Commerce acknowledges your orders for you. See Send order acknowledgments (855).

  3. You ship. You fulfill the sales order the way you fulfill any other order.

  4. The ship notice goes back. How it's built depends on the connection:

    • Item-level (the default): the ship notice lists what shipped and goes as soon as you record the shipment.
    • Carton-level: the ship notice lists every carton, with its SSCC-18 number, so it waits until you pack the shipment's cartons and finalize the packing. Retailers that receive by scanning carton labels require this.
    • Split by store: for a purchase order that orders for several stores or distribution centers, the ship notice has one order level per store, with or without cartons.

    You choose the structure for each retailer, and can change it for a single shipment. See Choose what SPS Commerce sends.

  5. The invoice goes back. When invoices are turned on, SKU.io sends one invoice per shipment right after its ship notice.

When inventory advice is turned on, SKU.io sends every retailer a daily count of the items it orders from you.

When a 3PL ships through SPS Commerce​

A retailer can use a different flow when a 3PL that works through SPS Commerce ships its orders. Step 3 changes: SKU.io sends the 3PL a warehouse order (940) when the order is released, and records the shipment when the 3PL's shipping advice (945) comes back. The ship notice then goes out from SKU.io or from the 3PL. A 997, 824 or 860 only reaches you on a connection using this flow. See Send SPS orders to a 3PL by warehouse order.

A 3PL that already gets the retailer's orders another way, and sends the retailer's ship notices itself, uses the Receive only flow instead. SKU.io sends that 3PL nothing and sends the retailer no acknowledgment, ship notice or inventory advice. It keeps the stock reserved, records each shipment from the 3PL's shipment confirmation, and sends the retailer the invoice (810). See Use the Receive only flow for a 3PL.

Neither flow is ready for a live retailer until the file layouts are confirmed with SPS Commerce.

Retailers with their own rules​

Some retailers change the steps above:

  • A combined 857. Steps 4 and 5 stay the same in SKU.io: it sends the ship notice, which carries every field the 857 needs, and then the invoice, and SPS Commerce builds one 857 from them for a retailer that takes it, such as Barnes & Noble. See Retailers that take an 857.
  • One order per distribution center. A purchase order for many stores becomes one sales order per distribution center, with the stores kept on its lines and cartons. See Ship multi-store purchase orders by store.
  • Document rules. The ship notice can wait for carrier pickup, a load number or a bill of lading, go one per carton for UPS, or keep location numbers at 4 digits. See Set a retailer's document rules.

None of these is confirmed with SPS Commerce yet, so don't use them for a live retailer until they are.

The retailer's location ID​

Most retailers number their own distribution centers and stores, for example DC 0553. When a purchase order's ship-to address carries that number, SKU.io keeps it with the purchase order. Open the purchase order on the Purchase Orders tab to see it under Ship to, as Location ID 0553 (qualifier 92). The qualifier says who assigned the number; 92 means the retailer did.

When you ship, SKU.io sends the location ID back without you doing anything:

  • Ship notice (856). The ship-to on the ship notice carries the same location ID, so the retailer's receiving system can match your delivery to the right distribution center or store. When the purchase order sent a location number without a qualifier, the ship notice sends qualifier 92.
  • Carton labels. The ship-to on carton labels you print through SPS Commerce carries it too, for retailers whose labels show the distribution center or store number.

The invoice (810) usually doesn't carry it, because SKU.io's invoice names only the bill-to address. Two settings add it: the 810 per shipment, destination in ST and BY document rule, and the Receive only flow, whose invoice names the destination with its location number.

When a purchase order has no location ID, nothing changes: the Ship to shows the name and address only, and the ship notice sends the address only. Purchase orders that arrived before SKU.io kept location IDs show theirs too.

A multi-store purchase order that names each store on its lines is different: each store's number goes out on its own order level of a split-by-store ship notice. See Ship multi-store purchase orders by store.

What runs on its own, and what you do​

On its ownYour part
Checking SPS Commerce for purchase orders, every five minutesMap an item the first time a retailer orders it, if SKU.io can't match it to a product
Creating the sales order and sending the acknowledgmentFulfill the sales order
Sending the ship notice when the shipment is recorded (item-level)Pack and finalize the cartons, and print their labels (carton-level)
Sending the invoice after the ship noticeChoose which documents the connection sends, once
Sending inventory advice once a dayResend a document if SPS Commerce rejected it

Every document received and sent is listed on the connection's Documents tab, so you can confirm what went out and resend anything that failed.

Sandbox and production connections​

A connection shows Sandbox or Production next to its name. Documents sent from a sandbox connection go to SPS Commerce's test environment and never reach a real retailer, so you can try the whole flow before you go live.

Next steps​

Last verified: