Skip to content
EDI 823 — EDI TransactionPublished Nov 7, 2026

EDI 823 Lockbox: Deposit and Remittance File

EDI 823 Lockbox explained: DEP, AMT, QTY, BAT, BPR and RMR segments, how wholesale lockbox works, a live three-check deposit, cash application and errors.

The EDI 823 is the lockbox's report of what came in the mail. Your customers mail checks to a post office box. The bank collects them, deposits them, captures the remittance stubs, and sends you an 823: one deposit of $14,327.50, three checks, five invoice references, one short-pay. Your cash application system matches each check to open invoices and posts it. Without the 823, someone in AR works from check images and a deposit total, one stub at a time.

This guide covers how a wholesale lockbox works, what the 823 carries, every segment you will map, a live example of a three-check deposit, how to apply cash from it, and the errors that leave payments unapplied.

What Is an EDI 823?

An EDI 823 is the Lockbox transaction set defined by the ASC X12 standards body, used to send lockbox (incoming payment) information and totals from a bank or other lockbox service provider to a company. It travels in functional group LB (the GS01 value).

Authoritative references for 823 work:

  • The X12 transaction set catalog defines the 823, and the Stedi X12 004010 823 reference shows the full structure: the DEP deposit loop, the BAT batch loop, and the BPR payment loop with its RMR open items
  • Published trading partner guides, such as J.R. Simplot's 004010 823 specification, show the subset banks send in practice: AMT qualifier 3 for the deposit total and 2 for the batch total, QTY qualifiers 41 and 42 for the number of batches and checks, and REF CK for check numbers
  • Your lockbox bank's own file specification governs which segments it sends and how it keys remittance data. Many banks offer the same data in BAI or their own fixed-width layouts too

Who sends it? The bank that runs your lockbox, or a lockbox processing provider working for it.

Who receives it? Accounts receivable, or the cash application module of your ERP.

When is it sent? After each deposit. Banks often run several deposit cycles a day, and you may receive an 823 for each, or one per day.

Why does it matter? The 823 is what turns a deposit into applied cash. Every check the 823 does not tie to an invoice stays unapplied, and every short-pay it reports has to be researched.

How a Wholesale Lockbox Works

A lockbox is a payment collection service. Customers send payments to a post office box the bank controls instead of to your office.

  1. Mail pickup. The bank collects mail from the lockbox address several times a day.
  2. Open and image. Staff or machines open each envelope, image the check and the remittance documents, and record the postmark date where your agreement asks for it.
  3. Capture. The bank reads the check's MICR line (routing number, account number, check number) and keys or scans the remittance data: invoice numbers and amounts from stubs, letters or attached statements.
  4. Batch and deposit. Checks are grouped into batches, and batches into a deposit credited to your account the same day.
  5. Transmit. The bank builds an 823 per deposit or per day and sends it to you, typically with images available in its portal.
  6. Apply. Your system reads the 823 and matches each check to open invoices.

There are two flavors. Wholesale lockbox handles business-to-business payments: fewer, larger checks with varied remittance documents. Retail lockbox handles high volumes of consumer payments with a standard scannable coupon. The 823 serves both, but wholesale is where most supply chain companies meet it. Healthcare lockboxes are different again: many banks convert paper explanation-of-benefits documents into an 835 Health Care Claim Payment/Advice instead.

Interactive Example: Lockbox Deposit With Three Checks

A camping-gear supplier's lockbox receives three customer checks on November 6. The bank deposits them as one deposit (DEP) of $14,327.50 (AMT 3), in one batch (QTY 41) of three checks (QTY 42). Each check is a BPR with the drawer's bank routing and account number, followed by its check number (REF CK), postmark date (DTM 108) and the invoices it pays (RMR). The first check pays two invoices. The third pays $2,000.00 against a $2,450.00 invoice, a $450.00 short-pay with no explanation on the stub.

Use the Plain English tab for a readable summary, or click any segment to break it down element by element.

Live exampleLockbox BankEDI 823

823 Lockbox Deposit with Three Checks

One lockbox deposit of $14,327.50 in one batch: three customer checks in BPR, each with its check number (REF CK), postmark date (DTM 108) and the invoices it pays (RMR). The third check pays $2,000.00 against a $2,450.00 invoice, a short-pay the lockbox reports but cannot explain

Document
823 Lockbox
From / to
LAKESHOREBANK → CEDARPEAK
Segments
27
Interchange date
Nov 6, 2026

Raw EDI (X12)

1
ISA*00* *00* *ZZ*LAKESHOREBANK *ZZ*CEDARPEAK *261106*1130*U*00401*000823001*0*P*:~
2
GS*LB*LAKESHOREBANK*CEDARPEAK*20261106*1130*823001*X*004010~
3
ST*823*0001~
4
N1*BK*FIRST LAKESHORE BANK*13*999000013~
5
N1*PE*CEDAR PEAK OUTDOOR CO~
6
DEP*40217*20261106*1030*D1106-01*01*999000013*DA*48120017755~
7
AMT*3*14327.50~
8
QTY*41*1~
9
QTY*42*3~
10
BAT*20261106**001~
11
AMT*2*14327.50~
12
BPR*I*8240.00*C*CHK*PBC*01*999000026*DA*7730041185~
13
REF*CK*104552~
14
DTM*108*20261103~
15
RMR*IV*INV-50155**5000.00~
16
RMR*IV*INV-50162**3240.00~
17
BPR*I*4087.50*C*CHK*PBC*01*999000039*DA*220051877~
18
REF*CK*8812~
19
DTM*108*20261104~
20
RMR*IV*INV-50171**4087.50~
21
BPR*I*2000.00*C*CHK*PBC*01*999000042*DA*331100294~
22
REF*CK*30017~
23
DTM*108*20261104~
24
RMR*IV*INV-50190**2000.00*2450.00~
25
SE*23*0001~
26
GE*1*823001~
27
IEA*1*000823001~

Human-Readable

Interchange

Sender ID(ZZ)LAKESHOREBANK
Receiver ID(ZZ)CEDARPEAK
Date261106
Time1130
Standards IDU
Version00401
Control Number000823001
Acknowledgment RequestedNo
UsageProduction
Included Groups (IEA01)1

Functional Group

Functional IDLBLB
SenderLAKESHOREBANK
ReceiverCEDARPEAK
Date20261106
Time1130
Control Number823001
Agency CodeX
Version004010
Transactions1
Reported Transaction Count (GE01)1

Transaction 823

Lockbox
Transaction Type823
Control Number0001
Segments, ST to SE23
Count in SE0123 (matches)

Segment Detail

N1Party Identification
N101Entity CodeBK
N102NameFIRST LAKESHORE BANK
N103ID Qualifier13
N104ID Code999000013
N1Party Identification
N101Entity CodePE
N102NameCEDAR PEAK OUTDOOR CO
DEPDeposit
DEP01Lockbox Number40217
DEP02Deposit Date20261106
DEP03Deposit Time1030
DEP04Deposit NumberD1106-01
DEP05(DFI) ID Number Qualifier01
DEP06(DFI) Identification Number999000013
DEP07Account Number QualifierDA
DEP08Account Number48120017755
AMTMonetary Amount Identification
AMT01Amount Qualifier3
AMT02Amount14327.50
QTYQuantity
QTY01Quantity Qualifier41
QTY02Quantity1
QTYQuantity
QTY01Quantity Qualifier42
QTY02Quantity3
BATBatch
BAT01Batch Date20261106
BAT03Batch Number001
AMTMonetary Amount Identification
AMT01Amount Qualifier2
AMT02Amount14327.50
BPRBeginning Segment for Payment Order/Remittance Advice
BPR01Transaction Handling CodeI
BPR02Total Payment Amount8240.00
BPR03Credit/Debit Flag CodeC
BPR04Payment Method CodeCHK
BPR05Payment Format CodePBC
BPR06Sender DFI ID Qualifier01
BPR07Sender DFI Number999000026
BPR08Sender Account Number QualifierDA
BPR09Sender Account Number7730041185
REFReference Identification
REF01QualifierCK
REF02Reference ID104552
DTMDate/Time Reference
DTM01Date Qualifier108
DTM02Date20261103
RMRRemittance Advice Accounts Receivable Open Item Reference
RMR01Reference Identification QualifierIV
RMR02Reference IdentificationINV-50155
RMR04Amount Paid5000.00
RMRRemittance Advice Accounts Receivable Open Item Reference
RMR01Reference Identification QualifierIV
RMR02Reference IdentificationINV-50162
RMR04Amount Paid3240.00
BPRBeginning Segment for Payment Order/Remittance Advice
BPR01Transaction Handling CodeI
BPR02Total Payment Amount4087.50
BPR03Credit/Debit Flag CodeC
BPR04Payment Method CodeCHK
BPR05Payment Format CodePBC
BPR06Sender DFI ID Qualifier01
BPR07Sender DFI Number999000039
BPR08Sender Account Number QualifierDA
BPR09Sender Account Number220051877
REFReference Identification
REF01QualifierCK
REF02Reference ID8812
DTMDate/Time Reference
DTM01Date Qualifier108
DTM02Date20261104
RMRRemittance Advice Accounts Receivable Open Item Reference
RMR01Reference Identification QualifierIV
RMR02Reference IdentificationINV-50171
RMR04Amount Paid4087.50
BPRBeginning Segment for Payment Order/Remittance Advice
BPR01Transaction Handling CodeI
BPR02Total Payment Amount2000.00
BPR03Credit/Debit Flag CodeC
BPR04Payment Method CodeCHK
BPR05Payment Format CodePBC
BPR06Sender DFI ID Qualifier01
BPR07Sender DFI Number999000042
BPR08Sender Account Number QualifierDA
BPR09Sender Account Number331100294
REFReference Identification
REF01QualifierCK
REF02Reference ID30017
DTMDate/Time Reference
DTM01Date Qualifier108
DTM02Date20261104
RMRRemittance Advice Accounts Receivable Open Item Reference
RMR01Reference Identification QualifierIV
RMR02Reference IdentificationINV-50190
RMR04Amount Paid2000.00
RMR05Invoice or Item Amount2450.00
1 functional group1 transactionControl #000823001Valid

The arithmetic your cash application should check: $8,240.00 + $4,087.50 + $2,000.00 = $14,327.50, which equals both the batch total and the deposit total. The first check's two invoices ($5,000.00 + $3,240.00) equal its $8,240.00.

823 Structure at a Glance

AreaSegmentNameUsageNotes
HeadingSTTransaction Set HeaderMandatoryST01 = 823
Heading, N1 loopN1 / N2 / N3 / N4 / REF / PERNameMandatory, up to 2The lockbox bank (BK), and optionally the company that owns the lockbox (PE)
HeadingTRN / DTMTrace, Date/TimeOptionalSome banks add a file trace and creation date
DEP loopDEPDepositMandatory, repeatsLockbox number, deposit date, deposit number, bank and account
DEP loopAMTMonetary AmountMandatoryDeposit total
DEP loopQTYQuantityMandatory, up to 2Number of batches, number of checks
DEP loopREF / DTMReference, Date/TimeOptionalDeposit references and dates
BAT loopBATBatchOptional, repeatsBatch date and number
BAT loopAMTMonetary AmountOptionalBatch total
BPR loopBPRBeginning Segment for Payment Order/Remittance AdviceRepeatsOne per check or payment
BPR loopREFReference IdentificationOptionalCheck number, and other references such as a scan line
BPR loopDTMDate/Time ReferenceOptionalPostmark, check date or receipt date
BPR, N1 loopN1NameOptionalThe remitter, where the bank captures it
BPR, RMR loopRMRRemittance Advice Accounts Receivable Open Item ReferenceOptional, repeatsOne per invoice or open item paid
TrailerSETransaction Set TrailerMandatorySegment count and control number

The X12 structure also allows adjustments, line-item detail and other loops under each payment. Most banks send only the core shown here; check your bank's specification before you build for the rest.

Key Segments Explained

N1: Lockbox Bank and Payee

N1*BK*FIRST LAKESHORE BANK*13*999000013~
N1*PE*CEDAR PEAK OUTDOOR CO~

The heading N1 loop identifies the lockbox's depository bank (BK), commonly by Federal Reserve routing number with qualifier 13. A second N1 with PE (payee) can name the company that owns the lockbox.

DEP: Deposit

DEP*40217*20261106*1030*D1106-01*01*999000013*DA*48120017755~
ElementNameExampleWhat it means
DEP01Reference Identification40217The lockbox number
DEP02Date20261106The deposit date
DEP03Time1030The deposit time, when sent
DEP04Reference IdentificationD1106-01The deposit number
DEP05(DFI) ID Number Qualifier0101 = ABA routing number
DEP06(DFI) Identification Number999000013The depository bank's routing number
DEP07Account Number QualifierDADA = demand deposit account
DEP08Account Number48120017755The account the deposit was credited to

DEP04 is what you match to the credit on your bank statement or BAI2 file. Two 823s on the same day with the same lockbox number are normal when the bank runs several deposit cycles; they are told apart by the deposit number.

AMT and QTY: Deposit Totals

AMT*3*14327.50~
QTY*41*1~
QTY*42*3~

In the DEP loop, AMT01 = 3 marks the deposit total, QTY01 = 41 the number of batches and QTY01 = 42 the number of checks. Reconcile all three before posting: the sum of the BPR02 amounts must equal the deposit total, and the count of BPR segments must equal the check count. A mismatch means the file is incomplete or a check was keyed twice.

BAT: Batch

BAT*20261106**001~
AMT*2*14327.50~
ElementNameExampleWhat it means
BAT01Date20261106The batch date
BAT02TimeOptional batch time
BAT03Reference Identification001The batch number
BAT04Batch Type CodeThe batch's status, where the bank sends it

At least one of BAT01 or BAT03 is required. The AMT with qualifier 2 that follows is the batch total.

BPR: The Check

BPR*I*8240.00*C*CHK*PBC*01*999000026*DA*7730041185~

The 823 reuses the BPR segment from the 820, but here it describes a check the bank received, not a payment instruction.

ElementNameExampleWhat it means
BPR01Transaction Handling CodeII = remittance information only. The money is already in the deposit
BPR02Monetary Amount8240.00The check amount
BPR03Credit/Debit Flag CodeCCredit
BPR04Payment Method CodeCHKCheck
BPR05Payment Format CodePBCCommercial/corporate check
BPR06(DFI) ID Number Qualifier01ABA routing number
BPR07(DFI) Identification Number999000026The routing number of the bank the check is drawn on, from the MICR line
BPR08Account Number QualifierDADemand deposit account
BPR09Account Number7730041185The drawer's account number, from the MICR line

The routing and account pair in BPR07 and BPR09 is the most reliable way to identify who paid, more reliable than the name on the check. Many cash application systems keep a table of MICR pairs per customer and learn new ones as AR confirms them.

REF and DTM: Check References

REF*CK*104552~
DTM*108*20261103~

REF with CK carries the check number. Banks may add other REF qualifiers for a batch number, a payee code or the scan line from a remittance coupon. DTM with 108 is the postmark date; banks may also send the check date or the date the lockbox received the item. Postmark dates matter when a customer takes an early-payment discount: they show whether the payment was sent in time.

RMR: The Invoices Paid

RMR*IV*INV-50190**2000.00*2450.00~
ElementNameExampleWhat it means
RMR01Reference Identification QualifierIVIV = seller's invoice number
RMR02Reference IdentificationINV-50190The invoice number, as captured from the remittance
RMR03Payment Action CodeOptional instruction for how to apply the item
RMR04Monetary Amount2000.00The amount applied to this item
RMR05Monetary Amount2450.00The invoice amount, where the remittance shows it

An RMR with an invoice number pays that open item. An RMR with only an amount is a payment on account. A check with no RMR at all means the bank found no remittance data, and the cash sits unapplied until someone looks at the image.

The lockbox reports what the stub said, nothing more. It does not know why a customer paid $2,000.00 on a $2,450.00 invoice. If your customer sends an 820 or emails a remittance with ADX-style reasons, that is where the explanation lives.

Applying Cash From an 823

A practical matching order:

  1. Reconcile the file. Sum of checks equals batch totals equals deposit total; check count equals QTY 42. Match DEP04 and the total to the bank credit.
  2. Identify the customer. Use the BPR07/BPR09 MICR pair first, then any remitter name, then the invoice numbers themselves.
  3. Match invoices exactly. Look up each RMR02 among that customer's open items. Normalize prefixes and leading zeros, because keyed or scanned stubs drop them.
  4. Match on amount when references fail. A check that equals one open invoice, or an exact combination of open invoices, can be applied with review.
  5. Handle differences. Short-pays become deductions to research. Overpayments become credits on account. Discounts taken late are deductions too.
  6. Route the rest. Anything unmatched goes to a queue with the check image link, ordered by amount.

The free remittance reader decodes 820 remittances and their deduction codes if your customers send them alongside their lockbox payments.

EDI 823 vs 820, 835, 822 and BAI2

DocumentSent byWhat it reports
823 LockboxYour lockbox bankChecks received in your lockbox and the open items each one pays
820 Payment Order/Remittance AdviceYour customer, or its bankWhat an electronic payment covers, with deduction reasons
835 Health Care Claim Payment/AdviceA health planClaim payments and adjustments, including paper EOBs a healthcare lockbox converts
822 Account AnalysisYour bankWhat the bank charged for services, including lockbox items
BAI2 fileYour bankDaily balances and transactions, including the lockbox deposit credit

The 823 and 820 do the same job for different payment types. Checks mailed to a lockbox produce an 823 from your bank. Electronic payments with remittance produce an 820 from your customer, or ACH addenda your bank reports. Most AR teams need to apply cash from both.

Common 823 Errors and How to Prevent Them

ErrorWhat happensPrevention
Check totals do not equal the deposit AMTCash posted does not match the bank creditReconcile every file before posting, and reject partial files
Invoice number keyed wrong or truncatedCheck sits unappliedFuzzy-match on prefixes and leading zeros, then fall back to amount
Unknown MICR routing and accountPayer not identifiedKeep a per-customer MICR table and add confirmed pairs
Check with no RMRPayment on account, or no stub at allRoute to the image queue; ask repeat offenders to include remittance
Duplicate fileCash applied twiceStore lockbox, deposit number and date, and block repeats
Short-pay treated as paid in fullDeduction never researchedCompare RMR04 to the open balance, not just to RMR05
Several deposit cycles in one daySecond file overwrites the firstKey on DEP04, not just the lockbox and date
Late discount acceptedLost marginCompare the discount taken with the DTM postmark date and your terms

823 Implementation Checklist

  • Get your bank's lockbox file specification and confirm it offers the 823 (some banks default to BAI or a fixed-width file)
  • Confirm the version (004010 is common), delivery channel and cut-off times for each deposit cycle
  • Confirm which REF and DTM qualifiers the bank sends, and whether it captures invoice amounts in RMR05
  • Decide what the bank should key from stubs, and agree on handling for checks with no stub
  • Build the file reconciliation: checks to batch to deposit to bank credit
  • Load customer MICR pairs and build the invoice matching rules
  • Send a 997 if the bank asks for one
  • Test with a clean deposit, a short-pay, a payment on account, a check with no remittance, and a multi-batch deposit

Where OrderSync Fits

OrderSync works at the front of the order-to-cash cycle. A wrong price, item or unit on an order becomes a wrong invoice, and a wrong invoice becomes a lockbox short-pay. OrderSync reads inbound orders in any format, from EDI 850s and 875s to emails, PDFs and spreadsheets, matches customers, items and units to your catalog, and outputs valid X12 or clean data for your ERP.

To read an 823, paste it into the free EDI inspector to see every DEP, BPR and RMR segment labelled, with a plain-English summary of each check and the invoices it pays. See our guide to order-to-cash automation for the wider cycle, or book a 15-minute walkthrough to see your own orders processed.

Frequently Asked Questions

What is an EDI 823 lockbox file?

The EDI 823 is the X12 file a bank sends to report payments received in a company's lockbox. It lists each deposit with its total, each batch, each check with its amount and MICR details, and the invoices each check pays, so the company can apply cash automatically.

What is the difference between an EDI 823 and an EDI 820?

The 823 comes from your bank and reports checks your customers mailed to your lockbox. The 820 comes from a customer, or its bank, and describes what an electronic payment covers, often with deduction reason codes. Both feed cash application.

What does the DEP segment contain in an 823?

DEP identifies one deposit: DEP01 is the lockbox number, DEP02 the deposit date, DEP03 an optional time, DEP04 the deposit number, DEP05 and DEP06 the depository bank's routing number, and DEP07 and DEP08 the account credited.

Why is BPR used in an 823?

The 823 reuses the BPR segment from the 820 to describe each check the bank received: the amount, the payment method (CHK), and the routing and account number of the bank it is drawn on, read from the MICR line. BPR01 is usually I, remittance information only.

What is a wholesale lockbox?

A wholesale lockbox is a bank service for business-to-business payments. Customers mail checks to a post office box the bank controls. The bank opens, images, deposits and reports them, typically the same day, so the payee receives the cash and the remittance data faster than through its own mailroom.

What happens to a check with no remittance in an 823?

It arrives as a BPR with no RMR segments, or with an RMR that has only an amount. That means the bank found no invoice reference. The payment is unapplied cash until someone reviews the check image and remittance documents and assigns it.

Does every bank send lockbox data as an EDI 823?

No. Many banks offer lockbox data in several formats: the X12 823, BAI files, or their own fixed-width layouts, plus images in a web portal. Ask your bank which formats it supports and what each one includes before choosing.

James Darby
Last updated: 11/7/2026

Related Resources