All guides

EDI 870 order status report: segments, status codes and when to use it

An EDI 870 is an order status report. It is transaction set 870 in the X12 standard, and it tells a trading partner where a purchase order stands: shipped, backordered, canceled, out of stock, and so on. If your customers keep calling or emailing to ask “where is my order?”, the 870 is the message built to answer that in a structured form.

What is an EDI 870?

Stedi’s 870 reference names it Order Status Report. It describes the set as a way to report the current status of a requirement forecast, a purchase order in full or by selected lines or products, purchase orders for a customer, or one or more requisitions. It can include a reason for each status and can update the supplier’s scheduled ship or delivery dates.

Per the same page, an 870 may result from an inquiry or from a prearranged schedule. So one partner may send it only when asked, and another may send it every night. Which one applies is a trading partner agreement, not a rule of the standard. Stedi does not name a sender, though the page mentions updating “the supplier’s” dates, so confirm the direction with each partner. You only need to support the 870 if a partner asks for it.

Stedi lists release 4010 as a Draft Standard for Trial Use. Later releases exist, so check which version your partner uses.

How is the 870 different from the 855 and 856?

The messages overlap, which is why partners spell out which one they expect.

Where the 870 can sit in an order
  1. 1Purchase order (850)
  2. 2Acknowledgment (855)
  3. 3Status report (870)
  4. 4Ship notice (856)
  5. 5Invoice (810)

A typical order flow. The 870 can appear more than once, or not at all, depending on the partner.

What segments does an 870 use?

Per Stedi’s 4010 page, the mandatory pieces are small (ISR is mandatory only when its optional loop is used):

Segment What it does
ST Starts the transaction set
BSR Beginning segment for the order status report
HL loop The detail level; mandatory and can repeat up to 1,000 times
ISR Item status report, mandatory inside its loop
SE Ends the transaction set

Inside the detail, an optional PRF segment points to the purchase order. An optional PO1 loop carries line item data. An optional ISR loop can sit under a PO1 line, so status can be reported per line. Stedi also shows optional N1 name loops, REF references, DTM dates, QTY quantities and carrier detail segments such as TD5.

The 870 does not fix which HL levels to use. Partners set them in their own guides, so confirm before you map.

What do BSR, PRF and ISR carry?

The BSR segment opens the message. Stedi’s BSR page gives its purpose as “To indicate the beginning of an Order Status Report Transaction Set.” Four elements are mandatory:

  • BSR01 is the status report code.
  • BSR02 is the order/item code.
  • BSR03 is a reference identification.
  • BSR04 is a date.

Optional elements include a time (BSR07), a transaction set purpose code (BSR11) and an action code (BSR12). Map the BSR01 and BSR02 codes from your partner’s guide.

The PRF segment ties the report to an order. Stedi’s PRF page says its purpose is “To provide reference to a specific purchase order.” PRF01, the purchase order number, is the only mandatory element. Optional ones include a release number, a change order sequence number and a purchase order date.

The ISR segment holds the status. Stedi’s ISR page says its purpose is “To specify detailed purchase order/item status.” ISR01 is the shipment/order status code and is mandatory. ISR02 is a date, required if the status code specifies one. ISR03 is an optional three-character status reason code.

Which ISR01 status codes matter?

ISR01 uses element 368, which has 102 codes in release 4010. Some of the ones order teams meet, quoted from Stedi’s element 368 page:

Code Meaning
BP Shipment Partial, Back Order to Ship on (Date)
DS Out Of Stock Condition
IC Item Canceled
ID Insufficient Information
IP Inquiry by Purchase Order
SH Shipped (Date)
DR Dating Requirements

Codes like BP and SH expect a date, which is what ISR02 is for. A partner may use only a handful of these, so build your mapping from their guide, not from the full list.

How can an order team handle an 870?

  1. Match it to the order. Use PRF01 and the line identifiers to find the original 850. An 870 with no matching order is an exception for a person.
  2. Read the status and the date. A BP with a new date is a different problem from an IC. Treat a cancellation as something to confirm, not just file.
  3. Compare to your own records. If you sent a status that says shipped, make sure an 856 or carrier record agrees.
  4. Decide what each code triggers. Back orders may mean a call to the customer. An out-of-stock status may mean a substitution offer.
  5. Check for changes. If the status comes from a customer change, the 860 purchase order change guide covers that flow.

What goes wrong with 870 data?

These are practical risks, not rules from the standard:

  • No agreement on frequency. One side expects a nightly report and the other sends on request only.
  • Code drift. Two partners use ISR01 differently for the same situation.
  • Stale dates. A report says “ship on a date” that has already passed, and nobody updates it.
  • Line versus order status. A header says shipped while lines are still back-ordered.
  • Assuming acceptance. A 997 functional acknowledgment says the file was received and readable. It does not say the status is correct.

Where Dockmend fits

Dockmend is being built to help operations teams keep order status in one place and flag lines that look late, canceled or back-ordered for a person to review. It is still being built, and we have not announced support for any specific EDI network or message. Start your free trial

This guide is general information, not legal or professional advice. EDI details vary by trading partner, version and implementation guide, so check your partner’s before you build or change anything.