---
id: "edifact_message_type"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["ecommerce"]
langs: ["common"]
quality: 100
url: "http://registry.apicrafter.io/datatype/edifact_message_type"
---

# UN/EDIFACT message type (`edifact_message_type`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Six-letter code that names a standard message of UN/EDIFACT, the United Nations rules for electronic data interchange in trade, transport and administration, for example ORDERS for a purchase order or INVOIC for an invoice. The code is written in the message header (UNH segment) together with the directory version. UN/CEFACT publishes the message types in each release of the UN/EDIFACT directories.

- Personal data (PII): no
- Categories: E-commerce (ecommerce)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[A-Z]{6}$
```

## Examples

- `ORDERS` — Purchase order message
- `INVOIC` — Invoice message
- `DESADV` — Despatch advice message
- `APERAK` — Application error and acknowledgement message
- `ORDER` (invalid example) — Five letters
- `orders` (invalid example) — Lowercase

## Mappings

- autotype: `EDIFACT_correct`

## Supported by tools

- `autotype`

## Translations

- ru: Тип сообщения UN/EDIFACT: Код из шести заглавных букв, обозначающий стандартное сообщение UN/EDIFACT, например ORDERS (заказ) или INVOIC (счёт).

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/EDIFACT>
- wikipedia: <https://de.wikipedia.org/wiki/EDIFACT>
- other: <https://github.com/congy/AutoType/blob/master/data_release/EDIFACT_correct.txt>

## Quality

Score 100/100.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/edifact_message_type.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/ecommerce/edifact_message_type.yaml>
