EDI 820 payment order and remittance advice: how to read it
An EDI 820 is the message a customer sends to say “we paid you, and here is what the payment covers.” It is transaction set 820 in the X12 standard, called Payment Order/Remittance Advice. For an accounts receivable team, it is the document that lets a payment be matched to invoices without someone reading a PDF or an email.
What is an EDI 820?
Stedi’s 820 reference (X12 version 004010) describes the transaction set as an order to a financial institution to make a payment to a payee. It can also be a remittance advice used for cash application in the payee’s accounts receivable system, or both at once. The remittance advice can go straight from payer to payee, through a financial institution, or through a third-party agent. Stedi notes that this version is not used for HIPAA transactions.
So an 820 can mean two different things. Sometimes it moves money instructions to a bank. Sometimes it is only the explanation that arrives alongside, or after, a payment. As a seller, you mostly see the second kind.
It sits at the end of the order-to-cash chain. The 850 purchase order starts the sale and the 810 invoice asks for payment. The 820 is how the customer answers. Our order to cash guide covers the whole flow.
Which segments does an 820 need?
Per Stedi’s 4010 page, only three segments are mandatory at the top level:
| Segment | What it does |
|---|---|
| ST | Starts the transaction set |
| BPR | Beginning segment for payment order/remittance advice |
| SE | Ends the transaction set |
Everything else sits in optional loops. Two matter most for invoice payers:
- N1 loop: names the payer and the payee.
- RMR loop: Stedi says it is “for open items being referenced or for payment on account.” Each RMR points to one open item, usually an invoice.
Other loops exist for adjustments (ADX), tax payments, child support, pensions, payroll and royalties. Most distributors can ignore those.
What does the BPR segment tell you?
BPR is the header of the money. Per Stedi’s BPR page, the only mandatory elements are the first four:
- BPR01, transaction handling code: the action to be taken by all parties.
- BPR02, monetary amount: the payment amount.
- BPR03, credit/debit flag: Stedi’s code list has two values, C for credit and D for debit.
- BPR04, payment method code: how the payment instructions move.
Two code lists are worth a look. From Stedi’s BPR01 list:
| Code | Meaning |
|---|---|
| C | Payment Accompanies Remittance Advice |
| D | Make Payment Only |
| I | Remittance Information Only |
| U | Split Payment and Remittance |
| H | Notification Only |
The difference matters. An “I” means the 820 carries remittance information only, so the money may move separately and the 820 alone is not proof of payment. A “D” means make payment only, so you may have little detail to match against.
Stedi’s BPR04 list includes ACH (Automated Clearing House), CHK (Check), FWT (Federal Reserve Funds/Wire Transfer, Nonrepetitive) and BOP (Financial Institution Option). The same page lists many more.
Banking details such as the bank ID and account numbers are optional or conditional in BPR. Your partner’s guide will say whether they send them.
How does the RMR segment match a payment to invoices?
RMR is where cash application happens. Stedi’s RMR page describes these elements:
- RMR01 and RMR02: a reference qualifier and a reference identification, such as an invoice number. If either is present, the other is required.
- RMR04: “the amount paid.”
- RMR05: the invoice amount before terms discount, including charges, less allowance.
- RMR06: the discount amount taken.
- RMR07: an adjustment reason code, conditional.
A simple, illustrative case (made-up numbers): an invoice for 1,000.00 with a 2% prompt-pay discount could arrive with RMR05 at 1,000.00, RMR06 at 20.00 and RMR04 at 980.00. Your system should see that the invoice is settled, not short by 20.00. Whether the discount was actually allowed under your terms is a business decision, so it should go to a person if it does not match.
Adjustment reason codes explain short pays. From Stedi’s reason code list, examples include:
| Code | Meaning |
|---|---|
| 01 | Pricing Error |
| 06 | Quantity Contested |
| 11 | Returns - Damage |
| 50 | Late Charge |
| 59 | Item not received |
| 75 | Total Order Not Received |
Stedi’s page gives only these short labels. A code tells you the customer’s stated reason. It does not tell you the customer is right.
What goes wrong with 820 data?
These are practical risks, not rules from the standard:
- Payment and remittance arrive separately. With a code like “I”, the detail can show up before the money does. Posting cash from the 820 alone can overstate what you have in the bank.
- One payment, many invoices. A single BPR amount can cover dozens of RMR lines. The RMR amounts should add up to the payment, and a person should look when they do not.
- Invoice numbers do not match. A customer system may trim leading zeros or add prefixes. Keep a rule for how you match RMR02 to your invoice number.
- Short pays with a reason code. A “pricing error” claim is a dispute. It needs the original 850, the 855 and the 810 side by side.
- Unapplied cash. An RMR for an invoice you cannot find, or a payment on account, lands in a bucket that someone has to clear.
- No receipt check. A 997 functional acknowledgment says the file was readable. It does not say the amounts agree with your books.
Frequently asked questions
Is an 820 the same as a payment?
Not always. Stedi’s description says the transaction set can be a payment order, a remittance advice or both. Check BPR01 and BPR04, and confirm with your bank feed.
Who sends the 820?
It comes from the payer, either directly or through a bank or a third-party agent, per Stedi’s description. Your trading partner’s guide says which applies to you.
Do I have to use every segment?
No. Only ST, BPR and SE are mandatory at the top level. Which optional loops you receive depends on what your partner sends.
Where Dockmend fits
Dockmend is being built to help operations and finance teams line up payments, invoices and order records, and to flag the differences for a person to decide. It is still being built, and we have not announced support for any particular EDI network, bank feed or accounting system. Join the waitlist
This guide is general information, not legal, tax or financial advice. EDI details vary by trading partner, version and implementation guide, so check your partner’s before you build or change anything.