REMADV — EDIFACT Remittance Advice Message (D.18B)
The REMADV message is the remittance advice sent from a buyer to a supplier: it lists which invoices are paid, by which means, with which deductions (discounts, withholdings) and the payment references. This page summarises the segment structure as published by UN/CEFACT for directory D.18B.
Purpose
The REMADV message is the remittance advice sent from a buyer to a supplier: it lists which invoices are paid, by which means, with which deductions (discounts, withholdings) and the payment references.
This page focuses on the structure published by UN/CEFACT for directory D.18B. The segments listed, their status (M / C), position and repetition factor are extracted from the official file remadv_c.htm hosted on service.unece.org.
Segment structure
The REMADV D.18B message has 19 header entries, 37 detail entries and 6 summary entries (segments and groups combined). Groups are shown in bold and their members are indented by actual nesting depth.
Header
| Pos. | Tag | Name | S | Rep. |
|---|---|---|---|---|
00010 | UNH | Message header | M | 1 |
00020 | BGM | Beginning of message | M | 1 |
00030 | DTM | Date/time/period | M | ×5 |
00040 | RFF | Reference | C | ×5 |
00050 | FII | Financial institution information | C | ×5 |
00060 | PAI | Payment instructions | C | 1 |
00070 | FTX | Free text | C | ×99 |
00080 | GEI | Processing information | C | ×5 |
00090 | SG1 | Group (×99) | C | ×99 |
00100 | NAD | Name and address | M | 1 |
00110 | SG2 | Group (×9) | C | ×9 |
00120 | RFF | Reference | M | 1 |
00130 | DTM | Date/time/period | C | ×9 |
00140 | SG3 | Group (×5) | C | ×5 |
00150 | CTA | Contact information | M | 1 |
00160 | COM | Communication contact | C | ×5 |
00170 | SG4 | Group (×5) | C | ×5 |
00180 | CUX | Currencies | M | 1 |
00190 | DTM | Date/time/period | C | 1 |
Detail
| Pos. | Tag | Name | S | Rep. |
|---|---|---|---|---|
00200 | SG5 | Group (×999999) | C | ×999999 |
00210 | DOC | Document/message details | M | 1 |
00220 | MOA | Monetary amount | M | ×5 |
00230 | DTM | Date/time/period | C | ×5 |
00240 | RFF | Reference | C | ×5 |
00250 | NAD | Name and address | C | ×2 |
00260 | SG6 | Group (×5) | C | ×5 |
00270 | CUX | Currencies | M | 1 |
00280 | DTM | Date/time/period | C | 1 |
00290 | SG7 | Group (×100) | C | ×100 |
00300 | AJT | Adjustment details | M | 1 |
00310 | MOA | Monetary amount | C | 1 |
00320 | RFF | Reference | C | 1 |
00330 | FTX | Free text | C | ×5 |
00340 | QTY | Quantity | C | ×9 |
00350 | SG8 | Group (×9) | C | ×9 |
00360 | TAX | Duty/tax/fee details | M | 1 |
00370 | MOA | Monetary amount | C | ×9 |
00380 | SG9 | Group (×5) | C | ×5 |
00390 | INP | Parties and instruction | M | 1 |
00400 | FTX | Free text | C | ×5 |
00410 | SG10 | Group (×9999) | C | ×9999 |
00420 | DLI | Document line identification | M | 1 |
00430 | MOA | Monetary amount | C | ×5 |
00440 | PIA | Additional product id | C | ×5 |
00450 | DTM | Date/time/period | C | ×5 |
00460 | SG11 | Group (×5) | C | ×5 |
00470 | CUX | Currencies | M | 1 |
00480 | DTM | Date/time/period | C | 1 |
00490 | SG12 | Group (×10) | C | ×10 |
00500 | AJT | Adjustment details | M | 1 |
00510 | MOA | Monetary amount | C | 1 |
00520 | RFF | Reference | C | 1 |
00530 | FTX | Free text | C | ×5 |
00540 | SG13 | Group (×9) | C | ×9 |
00550 | TAX | Duty/tax/fee details | M | 1 |
00560 | MOA | Monetary amount | C | ×9 |
Summary
| Pos. | Tag | Name | S | Rep. |
|---|---|---|---|---|
00570 | UNS | Section control | M | 1 |
00580 | MOA | Monetary amount | M | ×99 |
00590 | SG14 | Group (×99) | C | ×99 |
00600 | ALC | Allowance or charge | M | 1 |
00610 | MOA | Monetary amount | C | ×9 |
00620 | UNT | Message trailer | M | 1 |
Changes vs D.96A
Top-level differences between D.96A and D.18B for the REMADV message (segments directly inside header / detail / summary, ignoring nested groups). The comparison is indicative: a given tag may have evolved inside nested groups without showing up in this synthesis.
Segments added vs D.96A
GEIin the header section (status C, repeat ×5) — not present at the top of the corresponding D.96A section.QTYin the detail section (status C, repeat ×9) — not present at the top of the corresponding D.96A section.TAXin the detail section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.ALCin the summary section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
Max-repeat changes
FTX(header): repeat ×5 in D.96A → ×99 in D.18B.MOA(summary): repeat ×5 in D.96A → ×99 in D.18B.
Structural example
Minimal example of an REMADV D.18B message with mandatory segments only. The goal is to show the exact version declared in UNH (REMADV:D:18B:UN) — not to replicate a full business case (see the REMADV D.96A page for an annotated example).
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL018001'
UNH+1+REMADV:D:18B:UN'
BGM+481+REM-2026-0125+9'
DTM+137:20260514:102'
DTM+209:20260520:102'
NAD+PR+5410000000123::9'
NAD+PE+5410000000456::9'
CUX+2:EUR:4'
DOC+380+INV-2026-7811'
MOA+12:1240.00'
UNS+S'
MOA+128:1240.00'
UNT+12+1'
UNZ+1+CTRL018001' Common errors
- Misaligned UNH tokens — The
UNH+...+REMADV:D:18B:UNtoken must reflect exactly the directory in use — a mismatch between the UNH release and the release agreed with the partner is rejected by every strict validator. - Wrong UNT segment count — The value after
UNT+must include UNH and UNT themselves. By far the most common sender-side error, regardless of the directory in use. - Stale code lists — Between D.96A and D.18B, several code lists received new qualifiers (DTM status, RFF qualifier, NAD codes…). Reusing an older directory’s code tables triggers warnings or even rejections depending on the partner’s strict-conformance mode.
Related messages
Other versions of this message available on ediverse.io: REMADV D.96A, REMADV D.01B, REMADV D.10A, REMADV D.16B, REMADV D.21B, REMADV D.24A, REMADV D.97A, REMADV D.99B, REMADV D.00B, REMADV D.02B, REMADV D.05A, REMADV D.08A, REMADV D.13B, REMADV D.20B.
X12 functional equivalent: X12 820.