All guides

EDI 867 product transfer and resale report: BPT, PTD and QTY explained

An EDI 867 is a product transfer and resale report. It tells a trading partner that product moved between locations, or that it was sold to an end customer. It is transaction set 867 in the X12 standard. Either the buyer or the seller can send it. For a supplier, it shows where product went after it left your dock.

What is an EDI 867?

Stedi’s 867 reference for release 4010 says the set can report product transfers between locations, sales to an end customer, or sales plus “demand beyond actual sales (lost orders).” It belongs to functional group PT.

It is a report, not an order. An 850 purchase order asks for goods. An 867 says what happened to goods that were already shipped or stocked. It is close to the 852 product activity data message, which reports sales and stock counts by reporting period. The 867 is built around individual transfers and resales.

Versions differ. This guide follows the 4010 release on Stedi’s page. Check the version and implementation guide your partner uses.

Which segments does an 867 need?

Per Stedi’s 4010 page, these are mandatory:

Segment What it does
ST Starts the transaction set
BPT Beginning segment for the report
PTD Starts each product transfer or resale detail loop
SE Ends the transaction set

The PTD loop is mandatory and can repeat. Inside it, an optional QTY loop carries the quantities, and optional N1 loops name the parties. The header can also carry N1 parties, a CUR currency segment, DTM dates and REF references. The optional CTT segment gives totals in the summary. Stedi says CTT01 is the count of LIN segments, and that a hash total in CTT02, if used, is the sum of the QTY02 values.

How an 867 is built
  1. 1Header (ST, BPT)
  2. 2Transfer or resale (PTD)
  3. 3Parties (N1)
  4. 4Quantity and item (QTY, LIN)
  5. 5Totals (CTT, SE)

A simplified view of the 4010 structure. Partners' guides vary.

What does the BPT segment say?

Stedi’s BPT page describes it as the segment “to indicate the beginning of the Product Transfer and Resale Report Transaction Set.” Its main elements are:

  • BPT01 is the transaction set purpose code. It is mandatory.
  • BPT02 is the transfer or resale number. It is optional.
  • BPT03 is the transfer or resale date, in CCYYMMDD format. It is mandatory.
  • BPT04 is the report type code. It is optional.
  • BPT08 is an optional time, and BPT09 can reference a previous report number.

Stedi’s list for element 353 has 65 purpose codes, including 00 (Original), 01 (Cancellation) and 05 (Replace). Most partners will expect only a few. Ask which ones they send and how they want a correction handled.

BPT04 says what kind of report this is. Stedi’s list for element 755 has 522 codes. These codes are the ones that fit an order or distribution team:

Code Meaning
01 Product Transfer
02 Resale
SS Seller Sales Report
TM Stock Sale Report
TN Delayed Sale Report
TO Demand Report
CS Consigned Inventory Sales Report
DD Distributor Inventory Report

If BPT04 is left out, PTD01 still gives the transfer type.

What do the PTD and QTY segments say?

Stedi’s PTD page says the segment starts “detail information relating to the transfer/resale of a product.” PTD01, the product transfer type code, is mandatory. PTD02 and PTD03 must appear together, and so must PTD04 and PTD05.

Stedi’s list for element 521 has 54 transfer type codes. Some of them:

Code Meaning
DS Drop Ship Sale
IB Interbranch
SS Stock Sale
RV Return to Vendor
RC Received From Vendor
PA Price adjustment
IA Inventory adjustment
SD Ship and Debit Sale

The QTY segment, per Stedi’s QTY page, is “to specify quantity information.” QTY01 is the quantity qualifier and is mandatory. QTY02 holds the number and QTY03 its unit of measure. The LIN segment identifies the item. Stedi’s LIN page says it can carry up to fifteen qualifier and ID pairs, such as UPC or SKU, so check which one your partner expects.

How can an order team use an 867, and what goes wrong?

Steps to check

  1. Read the type first. A drop ship sale, a return to vendor and an interbranch move mean different things. Check PTD01 before you look at quantities.
  2. Match the item. Tie the LIN identifier to your item master.
  3. Check the unit of measure. Cases and each are easy to mix up.
  4. Match the date. BPT03 is the transfer or resale date. Compare it with the dates in any DTM segments.
  5. Compare with your own shipments. A resale of product you never shipped to that partner is worth a question.
  6. Keep each report. You will want the history when a price adjustment or claim comes up.

What goes wrong with 867 data?

These are practical risks, not rules from the standard:

  • Different meaning of “sale.” One partner may report a sale at invoice. Another may report it at point of sale. Ask.
  • Replacements and cancellations. If a partner resends a report, you need a rule to avoid counting it twice.
  • Missing item matches. An unknown identifier is better held for review than loaded against the wrong product.
  • Price adjustments mixed with sales. Codes such as PA and SD can appear next to ordinary sales. Check what your partner’s guide says each should trigger.
  • No acknowledgment. A 997 functional acknowledgment says the file was received and passed syntax checks. It does not say the quantities are right.

Common questions

Is an 867 the same as an 852?

No. Both report what happened after shipment, but the 852 reports activity and stock by item for a reporting period, while the 867 reports individual transfers or resales. Some partners use both. Follow their guide.

Who sends an 867?

Per Stedi, either the buyer or the seller.

Is an 867 an invoice?

No. An 810 invoice asks for payment. The 867 is a report.

Where Dockmend fits

Dockmend is being built to help operations teams read reports from partners, match items to their own records and flag unusual quantities 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.