Skip to content

Instantly share code, notes, and snippets.

@ben221199
Last active December 2, 2025 23:18
Show Gist options
  • Select an option

  • Save ben221199/ff55b4bbc571030bae7a7ebfc31e5397 to your computer and use it in GitHub Desktop.

Select an option

Save ben221199/ff55b4bbc571030bae7a7ebfc31e5397 to your computer and use it in GitHub Desktop.
UN/ECE Identifier

UN/ECE Identifier

In UBL (and some other formats, like CII and EDIFACT) some objects reference to other objects using well-defined identifiers. For UBL and CII, this identification is done on the <ID> and <Code> elements (UBL uses the same elements as CII for this), in EDIFACT this may be done in a different way.

The <ID> element uses scheme* attributes. The <Code> element uses list* attributes. The identifier resolution starts at UN/ECE 3055, which defines the agencies.

1. schemeAgencyID and listAgencyID

The id of the agency listed in UN/ECE 3055. So ISO will have value 5 and UN/ECE will have value 6. See https://service.unece.org/trade/untdid/d24a/tred/tred3055.htm for all values.

1.1 schemeAgencyName and listAgencyName

The name of the agency referenced with the id in schemeAgencyID or listAgencyID.

2. schemeID and listID

The id of scheme or list defined by the agency.

2.1 schemeName and listName

The name of the scheme or list referenced with the id in schemeID or listID.

3. Others

When the scheme or list is known, some additional information can be given, like the version id of the scheme or list, or some URIs of the scheme/list or its data.

schemeDataURI and listSchemeURI

The data URI of the scheme or list.

schemeURI and listURI

The URI of the scheme or list.

schemeVersionID and listVersionID

The version id of the scheme or list.

Examples

Agency ID ID Version ID
5 (ISO) ISO 3166-1 2A second edition 2006
5 (ISO) 13616 2007
5 (ISO) ISO 4217 3A 2007-06-18
6 (UN/ECE) 4277 D07A
6 (UN/ECE) 1225_Acknowledgement D07A
6 (UN/ECE) 4465 D07A
6 (UN/ECE) 1001_Billing Document D07A
6 (UN/ECE) 9651 D07A
6 (UN/ECE) 9653 D07A
6 (UN/ECE) 9655 D07A
6 (UN/ECE) 4053 D07A
6 (UN/ECE) 1001 D07A
6 (UN/ECE) 1373 D07A
6 (UN/ECE) 9657 D07A
6 (UN/ECE) 9659 D07A
6 (UN/ECE) 9661 D07A
6 (UN/ECE) 4431 D07A
6 (UN/ECE) 4461 D07A
6 (UN/ECE) 4439 D07A
6 (UN/ECE) 2475_Payment Terms Event D07A
6 (UN/ECE) 5375 D07A
6 (UN/ECE) 9665 D07A
6 (UN/ECE) 9667 D07A
6 (UN/ECE) 9669 D07A
6 (UN/ECE) 9671 D07A
6 (UN/ECE) 9673 D07A
6 (UN/ECE) 9675 D07A
6 (UN/ECE) 9677 D07A
6 (UN/ECE) 5305 D07A
6 (UN/ECE) 5153 D07A
6 (UN/ECE) 2475 D07A
6 (UN/ECE) Recommendation 28 2007
6 (UN/ECE) Recommendation 19 2

Source of these examples: https://unece.org/DAM/uncefact/data/standard/QualifiedDataType_3p0.xsd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment