EDIFACT QTY segment: quantity.

The QTY segment carries a quantity value. The qualifier identifies what is being counted. In ORDERS: 21=ordered quantity. In DESADV: 12=despatched quantity, 52=quantity in trade units, 131=number of packages. In INVOIC: 47=invoiced quantity, 46=delivered quantity. The unit of measure appears in the third sub-element.

Tag
QTY
Full name
Quantity
Part of the message
Line items
Data elements
1

A QTY segment, explained

Hover any part of the segment to see what it is. Open What your system receives to see the JSON or XML CleanEDI delivers.

  1. QTY+21:100:PCE'
    QTYQuantity

    Ordered quantity: 100 pieces.

    QTY
    Quantity
    21
    Ordered quantity (quantity qualifier)
    PCE
    pieces (quantity unit)

QTY structure

Elements are separated by + and their parts by :. Positions match the explainer, so 2.3 is the third part of the second element.

PositionElementParts
1Quantity1.1 Qualifier, 1.2 Value, 1.3 Unit

Quantity: Qualifier (1.1)

CodeMeaning
1Discrete quantity
12Despatched quantity
21Ordered quantity
46Delivered quantity
47Invoiced quantity
48Received quantity
59Consumer units per traded unit
113Quantity to be delivered
145Actual stock
192Free goods quantity
194Received and accepted
195Received, not accepted

Quantity: Unit (1.3)

CodeMeaning
PCEpieces
EAeach
KGMkg
GRMg
LTRlitres
MTRmetres
CTcartons
CScases
PKpacks
NARarticles
C62units

Common EANCOM and UN/EDIFACT values. Your trading partner's implementation guide is the final word on which codes they send.

QTY segment FAQ

Have a real message with QTY in it? The explainer breaks down every segment and runs in your browser.

Explain my message

What is the QTY segment in EDIFACT?

QTY is the Quantity segment. The QTY segment carries a quantity value. The qualifier identifies what is being counted. In ORDERS: 21=ordered quantity. In DESADV: 12=despatched quantity, 52=quantity in trade units, 131=number of packages. In INVOIC: 47=invoiced quantity, 46=delivered quantity. The unit of measure appears in the third sub-element.

What are the common QTY quantity: qualifier codes?

1 means discrete quantity; 12 means despatched quantity; 21 means ordered quantity; 46 means delivered quantity; 47 means invoiced quantity; 48 means received quantity; 59 means consumer units per traded unit; 113 means quantity to be delivered.

Where does QTY appear in an EDIFACT message?

QTY belongs to the line items part of a message, alongside LIN, PIA, IMD, ALI, PRI, MOA.

How do I read a QTY segment in my own message?

Paste the message into the free CleanEDI explainer. It breaks every QTY segment into its elements, translates the codes and shows the JSON and XML your system would receive. Nothing you paste leaves your browser.

Related segments in line items