EDI Reference / segments / G31
G31
Total Invoice Quantity
Closes the detail on an 880 — hash total of quantity invoiced, plus optional weight/volume.
Key elements
| Element | Name | What it carries |
|---|---|---|
| G3101 | Number of Units Shipped (hash total) | Sum of all G1701 quantities — a control total. |
| G3102 | Unit or Basis for Measurement Code | UN = unit. |
| G3103/04 | Weight & UOM | Total shipment weight, if sent. |
Key elements only — the ones that matter in retail trade, not the full element list.
Appears in
See a real G31 in context — paste any X12 and the Inspector breaks out every segment.
Inspect an X12 free