Tractor Supply Co
/
DTC Return Merchandise Authorization and Notification
  • Specification
  • EDI Inspector
Import guide into your account
Stedi maintains this guide based on public documentation from Tractor Supply Co. Contact Tractor Supply Co for official EDI specifications. To report any errors in this guide, please contact us.
Go to Stedi Network
Tractor Supply Co logo

X12 180 DTC Return Merchandise Authorization and Notification

X12 Release 4010

This Draft Standard for Trial Use contains the format and establishes the data contents of the Return Merchandise Authorization and Notification Transaction Set (180) for use within the context of an Electronic Data Interchange (EDI) environment. This transaction set can provide for customary and established business and industry practice relative to the returning of merchandise to the vendor. This transaction set may satisfy request for returns, authorization or disposition of the return, notification of return, or notification of consumer return.

Delimiters
  • ~ Segment
  • * Element
  • > Component
EDI sample
    View the latest version of this implementation guide as an interactive webpage
    Powered by
    Build EDI implementation guides at stedi.com
    Overview
    ISA
    -
    Interchange Control Header
    Max use 1
    Required
    GS
    -
    Functional Group Header
    Max use 1
    Required
    heading
    detail
    BLI Loop
    SE
    230
    Transaction Set Trailer
    Max use 1
    Required
    GE
    -
    Functional Group Trailer
    Max use 1
    Required
    IEA
    -
    Interchange Control Trailer
    Max use 1
    Required
    ISA

    Interchange Control Header

    RequiredMax use 1

    To start and identify an interchange of zero or more functional groups and interchange-related control segments

    Example
    ISA-01
    I01
    Authorization Information Qualifier
    Required

    Code to identify the type of information in the Authorization Information

    00
    No Authorization Information Present (No Meaningful Information in I02)
    ISA-02
    I02
    Authorization Information
    Required
    Min 10Max 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)

    ISA-03
    I03
    Security Information Qualifier
    Required

    Code to identify the type of information in the Security Information

    00
    No Security Information Present (No Meaningful Information in I04)
    ISA-04
    I04
    Security Information
    Required
    Min 10Max 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)

    ISA-05
    I05
    Interchange ID Qualifier
    Required
    Min 2Max 2

    Qualifier to designate the system/method of code structure used to designate the sender or receiver ID element being qualified

    Codes
    ISA-06
    I06
    Interchange Sender ID
    Required
    Min 15Max 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

    ISA-07
    I05
    Interchange ID Qualifier
    Required
    Min 2Max 2

    Qualifier to designate the system/method of code structure used to designate the sender or receiver ID element being qualified

    Codes
    ISA-08
    I07
    Interchange Receiver ID
    Required
    Min 15Max 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

    ISA-09
    I08
    Interchange Date
    Required
    YYMMDD format

    Date of the interchange

    ISA-10
    I09
    Interchange Time
    Required
    HHMM format

    Time of the interchange

    ISA-11
    I10
    Interchange Control Standards Identifier
    Required

    Code to identify the agency responsible for the control standard used by the message that is enclosed by the interchange header and trailer

    U
    U.S. EDI Community of ASC X12, TDCC, and UCS
    ISA-12
    I11
    Interchange Control Version Number
    Required

    This version number covers the interchange control segments

    00400
    Standard Issued as ANSI X12.5-1997
    ISA-13
    I12
    Interchange Control Number
    Required
    Min 9Max 9

    A control number assigned by the interchange sender

    ISA-14
    I13
    Acknowledgment Requested
    Required
    Min 1Max 1

    Code sent by the sender to request an interchange acknowledgment (TA1)

    0
    No Acknowledgment Requested
    1
    Interchange Acknowledgment Requested
    ISA-15
    I14
    Usage Indicator
    Required
    Min 1Max 1

    Code to indicate whether data enclosed by this interchange envelope is test, production or information

    I
    Information
    P
    Production Data
    T
    Test Data
    ISA-16
    I15
    Component Element Separator
    Required
    Min 1Max 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

    >
    Component Element Separator

    Functional Group Header

    RequiredMax use 1

    To indicate the beginning of a functional group and to provide control information

    Example
    GS-01
    479
    Functional Identifier Code
    Required

    Code identifying a group of application related transaction sets

    AN
    Return Merchandise Authorization and Notification (180)
    GS-02
    142
    Application Sender's Code
    Required
    Min 2Max 15

    Code identifying party sending transmission; codes agreed to by trading partners

    GS-03
    124
    Application Receiver's Code
    Required
    Min 2Max 15

    Code identifying party receiving transmission. Codes agreed to by trading partners

    GS-04
    373
    Date
    Required
    CCYYMMDD format

    Date expressed as CCYYMMDD

    GS-05
    337
    Time
    Required
    HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format

    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)

    GS-06
    28
    Group Control Number
    Required
    Min 1Max 9

    Assigned number originated and maintained by the sender

    GS-07
    455
    Responsible Agency Code
    Required
    Min 1Max 2

    Code used in conjunction with Data Element 480 to identify the issuer of the standard

    T
    Transportation Data Coordinating Committee (TDCC)
    X
    Accredited Standards Committee X12
    GS-08
    480
    Version / Release / Industry Identifier Code
    Required

    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

    004000
    ASC X12 Standards Approved by ANSI in 1997

    Heading

    ST
    010

    Transaction Set Header

    RequiredMax use 1

    To indicate the start of a transaction set and to assign a control number

    Example
    ST-01
    143
    Transaction Set Identifier Code
    Required

    Code uniquely identifying a Transaction Set

    • The transaction set identifier (ST01) used by the translation routines of the interchange partners to select the appropriate transaction set definition (e.g., 810 selects the Invoice Transaction Set).
    180
    Return Merchandise Authorization and Notification
    ST-02
    329
    Transaction Set Control Number
    Required
    Min 4Max 9

    Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set

    BGN
    020

    Beginning Segment

    RequiredMax use 1

    To indicate the beginning of a transaction set

    Usage notes

    Example: BGN00XXXXXXXXXX201712160959~

    Example
    BGN-01
    353
    Transaction Set Purpose Code
    Required

    Code identifying purpose of transaction set

    00
    Original
    BGN-02
    127
    Reference Identification
    Required
    Min 1Max 30

    Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier

    • BGN02 is the transaction set reference number.
    Usage notes

    For Inbound 180 to TSC, this field should be the same value as BGN02 on the outbound 180 from TSC.

    BGN-03
    373
    Date
    Required
    CCYYMMDD format

    Date expressed as CCYYMMDD

    • BGN03 is the transaction set date.
    BGN-04
    337
    Time
    Optional
    HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format

    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)

    • BGN04 is the transaction set time.
    PRF
    040

    Purchase Order Reference

    RequiredMax use 1

    To provide reference to a specific purchase order

    Usage notes

    Example: PRF*XXXXXXXXXX~

    Example
    PRF-01
    324
    Purchase Order Number
    Required
    Min 1Max 22

    Identifying number for Purchase Order assigned by the orderer/purchaser

    N9
    060

    Reference Identification

    RequiredMax use 10

    To transmit identifying information as specified by the Reference Identification Qualifier

    Usage notes

    Example: N9IAXXXXXXXXXX~

    Example
    N9-01
    128
    Reference Identification Qualifier
    Required

    Code qualifying the Reference Identification

    IA
    Internal Vendor Number
    N9-02
    127
    Reference Identification
    Optional
    Min 1Max 30

    Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier

    SAC
    080

    Service, Promotion, Allowance, or Charge Information

    OptionalMax use 10

    To request or identify a service, promotion, allowance, or charge; to specify the amount or percentage for the service, promotion, allowance, or charge

    Usage notes

    Example: SACAD24012345678901234*****XXXXXXXXXX~

    Example
    SAC-01
    248
    Allowance or Charge Indicator
    Required

    Code which indicates an allowance or charge for the service specified

    • If SAC01 is "A" or "C", then at least one of SAC05, SAC07, or SAC08 is required.
    A
    Allowance
    C
    Charge
    SAC-02
    1300
    Service, Promotion, Allowance, or Charge Code
    Optional

    Code identifying the service, promotion, allowance, or charge

    D240
    Freight
    G470
    Restocking Charge
    SAC-05
    610
    Amount
    Optional
    Min 1Max 15

    Monetary amount

    • SAC05 is the total amount for the service, promotion, allowance, or charge.
    • If SAC05 is present with SAC07 or SAC08, then SAC05 takes precedence.
    Usage notes

    Please note amount is implied decimal.

    SAC-13
    127
    Reference Identification
    Optional
    Min 1Max 30

    Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier

    • SAC13 is used in conjunction with SAC02 or SAC04 to provide a specific reference number as identified by the code used.

    Detail

    BLI Loop
    RequiredMax >1
    BLI
    010

    Baseline Item Data

    RequiredMax use 1

    To specify basic item data: item identification, quantity, and price

    • Quantity is specified either in the BLI segment (BLI03) or in the QTY segment.
    Usage notes

    Example: BLIINXXXXXXXXXX999999999EAUCP1234567890123456*VNXXXXXXXXXXUPXXXXXXXXXXXXX~

    Example
    If either Price Identifier Code (BLI-05) or Unit Price (BLI-06) is present, then the other is required
    If either Product/Service ID Qualifier (BLI-08) or Product/Service ID (BLI-09) is present, then the other is required
    If either Product/Service ID Qualifier (BLI-10) or Product/Service ID (BLI-11) is present, then the other is required
    BLI-01
    235
    Product/Service ID Qualifier
    Required

    Code identifying the type/source of the descriptive number used in Product/Service ID (234)

    • BLI01, BLI02, and BLI08 through BLI13 provide for four different product/service IDs for each item. For example: Case, Color, Drawing No., U.P.C. No., ISBN No., Model, SKU.
    IN
    Buyer's Item Number
    BLI-02
    234
    Product/Service ID
    Required
    Min 1Max 48

    Identifying number for a product or service

    BLI-03
    380
    Quantity
    Optional
    Min 1Max 15

    Numeric value of quantity

    BLI-04
    355
    Unit or Basis for Measurement Code
    Optional

    Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

    • BLI04, the unit of measure code applies to both quantity, (BLI03) and unit price (BLI06), unless BLI07 is present, in which case BLI04 applies only to BLI03, and BLI07 applies only to BLI06.
    EA
    Each
    BLI-05
    236
    Price Identifier Code
    Optional

    Code identifying pricing specification

    UCP
    Unit cost price
    BLI-06
    212
    Unit Price
    Optional
    Min 1Max 15

    Price per unit of product, service, commodity, etc.

    Usage notes

    Please note unit price is implied decimal.

    BLI-08
    235
    Product/Service ID Qualifier
    Optional

    Code identifying the type/source of the descriptive number used in Product/Service ID (234)

    VN
    Vendor's (Seller's) Item Number
    BLI-09
    234
    Product/Service ID
    Optional
    Min 1Max 48

    Identifying number for a product or service

    BLI-10
    235
    Product/Service ID Qualifier
    Optional

    Code identifying the type/source of the descriptive number used in Product/Service ID (234)

    UP
    U.P.C. Consumer Package Code (1-5-5-1)
    BLI-11
    234
    Product/Service ID
    Optional
    Min 1Max 48

    Identifying number for a product or service

    N9
    011

    Reference Identification

    RequiredMax use 20

    To transmit identifying information as specified by the Reference Identification Qualifier

    Usage notes

    Example: N9LIXXXXXXXXXX~

    Example
    N9-01
    128
    Reference Identification Qualifier
    Required

    Code qualifying the Reference Identification

    LI
    Line Item Identifier (Seller's)
    N9-02
    127
    Reference Identification
    Optional
    Min 1Max 30

    Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier

    RDR
    030

    Return Disposition Reason

    RequiredMax use 1

    To indicate the disposition of the item, the reason for return by the returnee, the response to the reason for return, and whether the item was used

    Usage notes

    Example: RDRCRCO~

    Example
    RDR-01
    1292
    Returns Disposition Code
    Optional

    Code indicating the disposition of a contested item

    CR
    Consumer Return to Vendor
    RDR-02
    1293
    Return Request Reason Code
    Optional

    Code indicating the reason for the return from the party returning, or requesting to return, the items

    CO
    Customer Ordering Error
    CV
    Color Variance
    DA
    Damaged Product
    DI
    Discontinued Product
    DM
    Defective Merchandise or Store Inspection
    DR
    Defective Merchandise or Returned by Consumer
    DT
    Damaged In Transit
    NA
    Not as Expected
    PF
    Poor Fit
    PS
    Product Spoiled
    PW
    Poor Workmanship
    SP
    Shipped past Cancel Date
    ST
    Style Problem
    WG
    Wrong Goods or Not Ordered
    AMT
    042

    Monetary Amount

    RequiredMax use >1

    To indicate the total monetary amount

    Usage notes

    Example: AMT112345678901234567~

    Example
    AMT-01
    522
    Amount Qualifier Code
    Required

    Code to qualify amount

    1
    Line Item Total
    AMT-02
    782
    Monetary Amount
    Required
    Min 1Max 15

    Monetary amount

    Usage notes

    Please note line item amount is implied decimal.

    PRF
    050

    Purchase Order Reference

    RequiredMax use 1

    To provide reference to a specific purchase order

    Usage notes

    Example: PRFXXXXXXXXXX***XXXXXXXXXX~

    Example
    PRF-01
    324
    Purchase Order Number
    Required
    Min 1Max 22

    Identifying number for Purchase Order assigned by the orderer/purchaser

    PRF-05
    350
    Assigned Identification
    Optional
    Min 1Max 20

    Alphanumeric characters assigned for differentiation within a transaction set

    SE
    230

    Transaction Set Trailer

    RequiredMax 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)

    Example
    SE-01
    96
    Number of Included Segments
    Required
    Min 1Max 10

    Total number of segments included in a transaction set including ST and SE segments

    SE-02
    329
    Transaction Set Control Number
    Required
    Min 4Max 9

    Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set

    Functional Group Trailer

    RequiredMax use 1

    To indicate the end of a functional group and to provide control information

    Example
    GE-01
    97
    Number of Transaction Sets Included
    Required
    Min 1Max 6

    Total number of transaction sets included in the functional group or interchange (transmission) group terminated by the trailer containing this data element

    GE-02
    28
    Group Control Number
    Required
    Min 1Max 9

    Assigned number originated and maintained by the sender

    Interchange Control Trailer

    RequiredMax use 1

    To define the end of an interchange of zero or more functional groups and interchange-related control segments

    Example
    IEA-01
    I16
    Number of Included Functional Groups
    Required
    Min 1Max 5

    A count of the number of functional groups included in an interchange

    IEA-02
    I12
    Interchange Control Number
    Required
    Min 9Max 9

    A control number assigned by the interchange sender

    EDI Samples

    Sample

    ST*180*0004~
    BGN*00*5004501956*20171220*1618~
    PRF*9004502074~
    N9*IA*800011~
    SAC*A*D240***500********20~
    SAC*A*G470***999********20~
    BLI*IN*1115518*1*EA*UCP*8930****UP*12685255620~
    N9*LI*1~
    RDR*CR*DM~
    AMT*1*8930~
    PRF*9004502074****10~
    SE*12*0004~

    Stedi is a registered trademark of Stedi, Inc. All names, logos, and brands of third parties listed on this page are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.