Product
Use Cases
Pricing
About
Resources
Login
Get Started

BOOK A DEMO

BOOK A DEMO

BOOK A DEMO

  • Product
  • Platform
  • Web EDI Fulfillment
  • Shipping Labels
  • Network
  • Realtime EDI Validator
  • Use Cases
  • Logistics
  • Retailers
  • Saas Platforms
  • Tools & Docs
  • Api Documentation
  • See What's new
  • Status
  • Support Form
  • Trust Center
  • Cookie Policy
  • EDI Glossary
  • Company
  • Our Story
  • Careers
  • Partners

Connect

  • Sales
  • Demo
  • Linkedin
  • Twitter
  • Youtube

newsletter

Awards

Terms of useTerms and conditionsPrivacy Policy

© 2024 orderful

Terms of useTerms and conditionsPrivacy Policy

© 2025 orderful

X12 Release 4010
Delimiters: ~ Segment * Element > Component
Certified July 26, 2024
CVS

X12 812 Credit/Debit Adjustment

This Draft Standard for Trial Use contains the format and establishes the data contents of the Credit/Debit Adjustment Transaction Set (812) for use within the context of an Electronic Data Interchange (EDI) environment.

X12 812 Credit/Debit Adjustment

ISA
Interchange Control Header
GS
Functional Group Header
ST
Transaction Set Header
BCD
Beginning Credit/Debit Adjustment
N9
Reference Identification
DTM
Date/Time Reference
SAC
Service, Promotion, Allowance, or Charge Information
N1_loop
N1
Name
AMT
Monetary Amount
CDD_loop
CDD
Credit/Debit Adjustment Detail
LIN
Item Identification
PO4
Item Physical Details
SAC
Service, Promotion, Allowance, or Charge Information
N9
Reference Identification
SE
Transaction Set Trailer
ISA
Interchange Control Header
Required
Max Use 1
To start and identify an interchange of zero or more functional groups and interchange-related control segments
ISA01
I01
Authorization Information Qualifier
Required
ID
Min 2 Max 2
Code to identify the type of information in the Authorization Information
ISA02
I02
Authorization Information
Required
alphanumeric (AN)
Min 10 Max 10
Information used for additional identification or authorization of the interchange sender or the data in the interchange; the type of information is set by the Authorization Information Qualifier (I01)
ISA03
I03
Security Information Qualifier
Required
ID
Min 2 Max 2
Code to identify the type of information in the Security Information
ISA04
I04
Security Information
Required
alphanumeric (AN)
Min 10 Max 10
This is used for identifying the security information about the interchange sender or the data in the interchange; the type of information is set by the Security Information Qualifier (I03)
ISA05
I05
Interchange ID Qualifier
Required
ID
Min 2 Max 2
Qualifier to designate the system/method of code structure used to designate the sender or receiver ID element being qualified
ISA06
I06
Interchange Sender ID
Required
alphanumeric (AN)
Min 15 Max 15
Identification code published by the sender for other parties to use as the receiver ID to route data to them; the sender always codes this value in the sender ID element
ISA07
I05
Interchange ID Qualifier
Required
ID
Min 2 Max 2
Qualifier to designate the system/method of code structure used to designate the sender or receiver ID element being qualified
ISA08
I07
Interchange Receiver ID
Required
alphanumeric (AN)
Min 15 Max 15
Identification code published by the receiver of the data; When sending, it is used by the sender as their sending ID, thus other parties sending to them will use this as a receiving ID to route data to them
ISA09
I08
Interchange Date
Required
date (DT)
Min 6 Max 6
Date of the interchange
ISA10
I09
Interchange Time
Required
time (TM)
Min 4 Max 4
Time of the interchange
ISA11
I10
Interchange Control Standards Identifier
Required
ID
Min 1 Max 1
Code to identify the agency responsible for the control standard used by the message that is enclosed by the interchange header and trailer
ISA12
I11
Interchange Control Version Number
Required
ID
Min 5 Max 5
This version number covers the interchange control segments
ISA13
I12
Interchange Control Number
Required
numeric (N0)
Min 9 Max 9
A control number assigned by the interchange sender
ISA14
I13
Acknowledgment Requested
Required
ID
Min 1 Max 1
Code sent by the sender to request an interchange acknowledgment (TA1)
ISA15
I14
Usage Indicator
Required
ID
Min 1 Max 1
Code to indicate whether data enclosed by this interchange envelope is test, production or information
ISA16
I15
Component Element Separator
Required
undefined ()
Min 1 Max 1
Type is not applicable; the component element separator is a delimiter and not a data element; this field provides the delimiter used to separate component data elements within a composite data structure; this value must be different than the data element separator and the segment terminator
GS
Functional Group Header
Required
Max Use 1
To indicate the beginning of a functional group and to provide control information
GS01
479
Functional Identifier Code
Required
ID
Min 2 Max 2
Code identifying a group of application related transaction sets
GS02
142
Application Sender's Code
Required
alphanumeric (AN)
Min 2 Max 15
Code identifying party sending transmission; codes agreed to by trading partners
GS03
124
Application Receiver's Code
Required
alphanumeric (AN)
Min 2 Max 15
Code identifying party receiving transmission. Codes agreed to by trading partners
GS04
373
Date
Required
longDate (DT)
Min 8 Max 8
Date expressed as CCYYMMDD
GS05
337
Time
Required
time (TM)
Min 4 Max 8
Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)
GS06
28
Group Control Number
Required
numeric (N0)
Min 1 Max 9
Assigned number originated and maintained by the sender
GS07
455
Responsible Agency Code
Required
ID
Min 1 Max 2
Code used in conjunction with Data Element 480 to identify the issuer of the standard
GS08
480
Version / Release / Industry Identifier Code
Required
alphanumeric (AN)
Min 1 Max 12
Code indicating the version, release, subrelease, and industry identifier of the EDI standard being used, including the GS and GE segments; if code in DE455 in GS segment is X, then in DE 480 positions 1-3 are the version number; positions 4-6 are the release and subrelease, level of the version; and positions 7-12 are the industry or trade association identifiers (optionally assigned by user); if code in DE455 in GS segment is T, then other formats are allowed
ST
Transaction Set Header
Required
Max Use 1
To indicate the start of a transaction set and to assign a control number
ST01
143
Transaction Set Identifier Code
Required
ID
Min 3 Max 3
Code uniquely identifying a Transaction Set
812
Credit/Debit Adjustment
ST02
329
Transaction Set Control Number
Required
alphanumeric (AN)
Min 4 Max 9
Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set
BCD
Beginning Credit/Debit Adjustment
Required
Max Use 1
To transmit identifying dates and numbers for the transaction set and indicate the monetary value to the receiver of the transaction
Syntax Notes
At least one of BCD07, BCD10 or BCD14 is required.
If any of BCD13 or BCD14 are present, then all are required.
BCD01
373
Date
Required
longDate (DT)
Min 8 Max 8
Date expressed as CCYYMMDD
BCD02
475
Credit/Debit Adjustment Number
Required
alphanumeric (AN)
Min 1 Max 22
Number assigned by issuer of a credit or debit memo
BCD03
305
Transaction Handling Code
Required
ID
Min 1 Max 2
Code designating the action to be taken by all parties
A
Off Invoice (Deduction from Original Invoice)
BCD04
610
Amount
Required
numeric2 (N2)
Min 1 Max 15
Monetary amount
BCD05
478
Credit/Debit Flag Code
Required
ID
Min 1 Max 1
Code indicating whether amount is a credit or debit
C
Credit
BCD06
373
Date
Required
longDate (DT)
Min 8 Max 8
Date expressed as CCYYMMDD
BCD07
76
Invoice Number
Required
alphanumeric (AN)
Min 1 Max 22
Identifying number assigned by issuer
BCD09
373
Date
Optional
longDate (DT)
Min 8 Max 8
Date expressed as CCYYMMDD
BCD10
324
Purchase Order Number
Optional
alphanumeric (AN)
Min 1 Max 22
Identifying number for Purchase Order assigned by the orderer/purchaser
BCD12
640
Transaction Type Code
Required
ID
Min 2 Max 2
Code specifying the type of transaction
CR
Credit Memo
DR
Debit Memo
N9
Reference Identification
Required
To transmit identifying information as specified by the Reference Identification Qualifier
Syntax Notes
At least one of N902 or N903 is required.
If N906 is present, then and N905 is required.
N901
128
Reference Identification Qualifier
Required
ID
Min 2 Max 3
Code qualifying the Reference Identification
IA
Internal Vendor Number
ZZ
Mutually Defined
N902
127
Reference Identification
Required
alphanumeric (AN)
Min 1 Max 30
Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier
DTM
Date/Time Reference
Required
To specify pertinent dates and times
Syntax Notes
At least one of DTM02, DTM03 or DTM05 is required.
If DTM04 is present, then and DTM03 is required.
If any of DTM05 or DTM06 are present, then all are required.
DTM01
374
Date/Time Qualifier
Required
ID
Min 3 Max 3
Code specifying type of date or time, or both date and time
007
Effective
DTM02
373
Date
Required
longDate (DT)
Min 8 Max 8
Date expressed as CCYYMMDD
SAC
Service, Promotion, Allowance, or Charge Information
Optional
Max Use 25
To request or identify a service, promotion, allowance, or charge; to specify the amount or percentage for the service, promotion, allowance, or charge
Syntax Notes
At least one of SAC02 or SAC03 is required.
If any of SAC03 or SAC04 are present, then all are required.
If any of SAC06 or SAC07 are present, then all are required.
If any of SAC09 or SAC10 are present, then all are required.
If SAC11 is present, then and SAC10 is required.
If SAC13 is present, then at least one of SAC02 or SAC04 is required.
If SAC14 is present, then and SAC13 is required.
If SAC16 is present, then and SAC15 is required.
SAC01
248
Allowance or Charge Indicator
Required
ID
Min 1 Max 1
Code which indicates an allowance or charge for the service specified
C
Charge
SAC02
1300
Service, Promotion, Allowance, or Charge Code
Required
ID
Min 4 Max 4
Code identifying the service, promotion, allowance, or charge
ZZZZ
Mutually Defined
G020
Reclamation, State
H650
Tax - Excise Tax - Origin
H850
Tax
D240
Freight
SAC05
610
Amount
Required
numeric2 (N2)
Min 1 Max 15
Monetary amount
SAC15
352
Description
Required
alphanumeric (AN)
Min 1 Max 80
A free-form description to clarify the related data elements and their content

N1 loop

Required
Min Items
Max Loop 200
N1
Name
Required
Max Use 1
To identify a party by type of organization, name, and code
Syntax Notes
At least one of N102 or N103 is required.
If any of N103 or N104 are present, then all are required.
N101
98
Entity Identifier Code
Required
ID
Min 2 Max 3
Code identifying an organizational entity, a physical location, property or an individual
BY
Buying Party (Purchaser)
N102
93
Name
Required
alphanumeric (AN)
Min 1 Max 60
Free-form name
N103
66
Identification Code Qualifier
Required
ID
Min 1 Max 2
Code designating the system/method of code structure used for Identification Code (67)
1
D-U-N-S Number, Dun & Bradstreet
N104
67
Identification Code
Required
alphanumeric (AN)
Min 2 Max 80
Code identifying a party or other code
AMT
Monetary Amount
Optional
Max Use 10
To indicate the total monetary amount
AMT01
522
Amount Qualifier Code
Required
ID
Min 1 Max 3
Code to qualify amount
5
Total Invoice Amount
AMT02
782
Monetary Amount
Required
decimal (R)
Min 1 Max 18
Monetary amount

CDD loop

Required
Min Items
Max Loop undefined
CDD
Credit/Debit Adjustment Detail
Required
Max Use 1
To provide information relative to a line item adjustment
Syntax Notes
At least one of CDD04 or CDD07 is required.
If CDD07 is present, then and CDD11 is required.
If any of CDD07 or CDD08 are present, then all are required.
If any of CDD10 or CDD11 are present, then all are required.
If any of CDD12 or CDD13 are present, then all are required.
CDD01
426
Adjustment Reason Code
Required
ID
Min 2 Max 2
Code indicating reason for debit or credit memo or adjustment to invoice, debit or credit memo, or payment
01
Pricing Error
02
Allowance/Charge Error
03
Extension Error
06
Quantity Contested
10
Pallet/Container Charge Error
54
Freight Deducted
55
Tax Deducted
59
Item not received
75
Total Order Not Received
CDD02
478
Credit/Debit Flag Code
Required
ID
Min 1 Max 1
Code indicating whether amount is a credit or debit
C
Credit
D
Debit
CDD03
350
Assigned Identification
Required
alphanumeric (AN)
Min 1 Max 20
Alphanumeric characters assigned for differentiation within a transaction set
CDD04
610
Amount
Required
numeric2 (N2)
Min 1 Max 15
Monetary amount
CDD07
477
Credit/Debit Quantity
Required
decimal (R)
Min 1 Max 10
Number of supplier units credited or debited
CDD08
355
Unit or Basis for Measurement Code
Required
ID
Min 2 Max 2
Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken
PC
Piece
CDD10
236
Price Identifier Code
Required
ID
Min 3 Max 3
Code identifying pricing specification
OPP
Original Purchase Order Price
CDD11
212
Unit Price
Required
decimal (R)
Min 1 Max 17
Price per unit of product, service, commodity, etc.
CDD12
236
Price Identifier Code
Required
ID
Min 3 Max 3
Code identifying pricing specification
INV
Invoice Billing Price
CDD13
212
Unit Price
Required
decimal (R)
Min 1 Max 17
Price per unit of product, service, commodity, etc.
LIN
Item Identification
Required
Max Use 1
To specify basic item identification data
Syntax Notes
If any of LIN04 or LIN05 are present, then all are required.
If any of LIN06 or LIN07 are present, then all are required.
If any of LIN08 or LIN09 are present, then all are required.
If any of LIN10 or LIN11 are present, then all are required.
If any of LIN12 or LIN13 are present, then all are required.
If any of LIN14 or LIN15 are present, then all are required.
If any of LIN16 or LIN17 are present, then all are required.
If any of LIN18 or LIN19 are present, then all are required.
If any of LIN20 or LIN21 are present, then all are required.
If any of LIN22 or LIN23 are present, then all are required.
If any of LIN24 or LIN25 are present, then all are required.
If any of LIN26 or LIN27 are present, then all are required.
If any of LIN28 or LIN29 are present, then all are required.
If any of LIN30 or LIN31 are present, then all are required.
LIN02
235
Product/Service ID Qualifier
Required
ID
Min 2 Max 2
Code identifying the type/source of the descriptive number used in Product/Service ID (234)
PI
Purchaser's Item Code
LIN03
234
Product/Service ID
Required
alphanumeric (AN)
Min 1 Max 48
Identifying number for a product or service
LIN04
235
Product/Service ID Qualifier
Required
ID
Min 2 Max 2
Code identifying the type/source of the descriptive number used in Product/Service ID (234)
UI
U.P.C. Consumer Package Code (1-5-5)
ND
National Drug Code (NDC)
LIN05
234
Product/Service ID
Required
alphanumeric (AN)
Min 1 Max 48
Identifying number for a product or service
PO4
Item Physical Details
Optional
Max Use 1
To specify the physical qualities, packaging, weights, and dimensions relating to the item
Syntax Notes
If any of PO402 or PO403 are present, then all are required.
If PO405 is present, then and PO406 is required.
If any of PO406 or PO407 are present, then all are required.
If any of PO408 or PO409 are present, then all are required.
If PO410 is present, then and PO413 is required.
If PO411 is present, then and PO413 is required.
If PO412 is present, then and PO413 is required.
If PO413 is present, then at least one of PO410, PO411 or PO412 is required.
If PO417 is present, then and PO416 is required.
If PO418 is present, then and PO404 is required.
PO401
356
Pack
Required
numeric (N0)
Min 1 Max 6
The number of inner containers, or number of eaches if there are no inner containers, per outer container
SAC
Service, Promotion, Allowance, or Charge Information
Optional
Max Use 25
To request or identify a service, promotion, allowance, or charge; to specify the amount or percentage for the service, promotion, allowance, or charge
Syntax Notes
At least one of SAC02 or SAC03 is required.
If any of SAC03 or SAC04 are present, then all are required.
If any of SAC06 or SAC07 are present, then all are required.
If any of SAC09 or SAC10 are present, then all are required.
If SAC11 is present, then and SAC10 is required.
If SAC13 is present, then at least one of SAC02 or SAC04 is required.
If SAC14 is present, then and SAC13 is required.
If SAC16 is present, then and SAC15 is required.
SAC01
248
Allowance or Charge Indicator
Required
ID
Min 1 Max 1
Code which indicates an allowance or charge for the service specified
C
Charge
SAC02
1300
Service, Promotion, Allowance, or Charge Code
Required
ID
Min 4 Max 4
Code identifying the service, promotion, allowance, or charge
ZZZZ
Mutually Defined
G020
Reclamation, State
H650
Tax - Excise Tax - Origin
H850
Tax
D240
Freight
SAC15
352
Description
Required
alphanumeric (AN)
Min 1 Max 80
A free-form description to clarify the related data elements and their content
N9
Reference Identification
Required
To transmit identifying information as specified by the Reference Identification Qualifier
Syntax Notes
At least one of N902 or N903 is required.
If N906 is present, then and N905 is required.
N901
128
Reference Identification Qualifier
Required
ID
Min 2 Max 3
Code qualifying the Reference Identification
IA
Internal Vendor Number
ZZ
Mutually Defined
N902
127
Reference Identification
Required
alphanumeric (AN)
Min 1 Max 30
Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier
SE
Transaction Set Trailer
Required
Max Use 1
To indicate the end of the transaction set and provide the count of the transmitted segments (including the beginning (ST) and ending (SE) segments)
SE01
96
Number of Included Segments
Required
numeric (N0)
Min 1 Max 10
Total number of segments included in a transaction set including ST and SE segments
SE02
329
Transaction Set Control Number
Required
alphanumeric (AN)
Min 4 Max 9
Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set