ediverse Explore the platform

Spotlight PEPPOL BIS Billing 3.0 The EU e-invoicing mandate is here — France Sept 2026, Belgium Jan 2026, Germany 2025.
APERAK D.18B

APERAK — EDIFACT Application Error and Acknowledgement Message (D.18B)

The APERAK message is the application-error acknowledgement returned by the recipient of a business message (ORDERS, INVOIC, DESADV…) beyond the CONTRL syntactic check: it reports business anomalies detected during integration (unknown references, inconsistent dates, inactive items, unnegotiated prices) and lets the sender correct and resubmit. This page summarises the segment structure as published by UN/CEFACT for directory D.18B.

Purpose

The APERAK message is the application-error acknowledgement returned by the recipient of a business message (ORDERS, INVOIC, DESADV…) beyond the CONTRL syntactic check: it reports business anomalies detected during integration (unknown references, inconsistent dates, inactive items, unnegotiated prices) and lets the sender correct and resubmit.

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 aperak_c.htm hosted on service.unece.org.

Segment structure

The APERAK D.18B message has 22 header entries, 0 detail entries and 0 summary entries (segments and groups combined). Groups are shown in bold and their members are indented by actual nesting depth.

Pos.TagNameSRep.
00010UNHMessage headerM1
00020BGMBeginning of messageM1
00030DTMDate/time/periodC×9
00040FTXFree textC×9
00050CNTControl totalC×9
00060  SG1Group (×99)C×99
00070  DOCDocument/message detailsM1
00080  DTMDate/time/periodC×99
00090    SG2Group (×9)C×9
00100    RFFReferenceM1
00110    DTMDate/time/periodC×9
00120      SG3Group (×9)C×9
00130      NADName and addressM1
00140      CTAContact informationC×9
00150      COMCommunication contactC×9
00160        SG4Group (×99999)C×99999
00170        ERCApplication error informationM1
00180        FTXFree textC1
00190          SG5Group (×9)C×9
00200          RFFReferenceM1
00210          FTXFree textC×9
00220UNTMessage trailerM1

Detail

No segment in this section.

Summary

No segment in this section.

Changes vs D.96A

Top-level differences between D.96A and D.18B for the APERAK 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

  • DOC in the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.

Structural example

Minimal example of an APERAK D.18B message with mandatory segments only. The goal is to show the exact version declared in UNH (APERAK:D:18B:UN) — not to replicate a full business case (see the APERAK D.96A page for an annotated example).

edifact aperak-d18b-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL018001'
UNH+1+APERAK:D:18B:UN'
BGM+313+APERAK-2026-0099+9'
DTM+137:20260514:102'
CNT+2:1'
RFF+ON:ORDER789'
DTM+171:20260512:102'
NAD+SU+5410000000456::9'
ERC+27:::1'
FTX+AAO+1+++Unknown item reference 3520000099999'
UNT+10+1'
UNZ+1+CTRL018001'

Common errors

  • Misaligned UNH tokens — The UNH+...+APERAK:D:18B:UN token 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.

Other versions of this message available on ediverse.io: APERAK D.96A, APERAK D.01B, APERAK D.10A, APERAK D.16B, APERAK D.21B, APERAK D.24A, APERAK D.97A, APERAK D.99B, APERAK D.00B, APERAK D.02B, APERAK D.05A, APERAK D.08A, APERAK D.13B, APERAK D.20B.

X12 functional equivalent: X12 824.

← All EDIFACT versions