preregister icon

preregister

(0 reviews)

ANNEX XI. SHIPMENT CODE STRUCTURES

This information is only mandatory for shipments of /delivery/cn

Structure of the Package Code for National Registered Products

General Description

The package code has a maximum length of 23 characters and is designed to contain all the necessary information for the unique identification and automated processing of the products.

Code Components

1. Product Type (XX)

  • Position: 1-2
  • Format: 2 alphanumeric characters
  • Function: Identifies the product/deliveryMethod for its correct postal management
  • Reference: See Annex I for the allowed starting letters

2. Labeler Code (CCCC)

  • Position: 3-6
  • Format: 4 alphanumeric characters
  • Allowed characters: 0-9, A-Z (except I, Ñ, O, U)
  • Provided by the Commercial Department

3. Generation Channel (98)

  • Position: 7-8
  • Format: 2 numeric characters (fixed value: 98)
  • Function: Indicates that the preregistration channel is API.

4. Client Sequential (NNNNNNN)

  • Position: 9-15
  • Format: 7 numeric characters
  • Characteristic: Preferably sequential correlatively
  • Function: Unique identification of the shipment from the sender's perspective

5. Package Number (BB)

  • Position: 16-17
  • Format: 2 characters

6. Destination Postal Code (PPPPP)

  • Position: 18-22
  • Format: 5 characters
  • Special cases:
    • Andorra: use 99XXX instead of ADXXX
    • Portugal: use 8XXXX, where XXXX are the first 4 digits of the Portuguese postal code

7. Control Character (H)

  • Position: 23
  • Format: 1 alphabetic character
  • Function: Ensures the global validity of the code
  • Reference: See 'Control digit calculation' for the calculation formula

Additional Notes

  • The structure is compatible with Correos Express sorters
  • Detailed requirements for code generation are found in Annex III
  • Labels generated from OV2 or by the client must follow the design specified in Annex IIA

Position Diagram

[XX][CCCC][EE][NNNNNNN][BB][PPPPP][H]
 |    |     |     |      |    |     |
 |    |     |     |      |    |     └─ Control
 |    |     |     |      |    └─ Postal Code
 |    |     |     └─ Package Number
 |    |     └─ Sequential
 |    └─ Channel
 └─ Client
 └─ Product Type

Structure of the Package Code for International Parcel Products

General Description

The package code for international shipments has a maximum length of 13 characters and is designed to identify products from the international portfolio.

Code Components

1. Product Type (XX)

  • Position: 1-2
  • Format: 2 alphabetic characters
  • Function: Identifies the specific product
  • Reference: See Annex I for allowed values

2. Client Sequential (SSSSSSSS)

  • Position: 3-10
  • Format: 8 numeric characters
  • Characteristics: Preferably sequential correlatively
  • Function: Unique identification of the shipment from the sender's perspective

3. Control Digit (D)

  • Position: 11
  • Format: 1 numeric character
  • Function: Ensures the global validity of the code
  • Reference: See Annex V 'Control digit calculation' for the calculation formula

4. Country Code (ES)

  • Position: 12-13
  • Format: 2 alphabetic characters
  • Standard: ISO 3166-1
  • Example: "ES" for Spain
  • Function: Identifies the country of origin

Position Diagram

[XX][SSSSSSSS][D][ES]
 |      |      |  |
 |      |      |  └─ Country (ISO 3166-1)
 |      |      └─ Control Digit
 |      └─ Client Sequential
 └─ Product Type

Structure of the code Notifications of the endpoint deliverypostcn

General Description

For this endpoint, it is optional to inform the package code, but if you do, you must follow the already defined structure.

The shipping code has a specific structure for unit admission notifications, with a defined format: NVEEEE9800000000000001A

Code Components

1. Product Type (NV)

  • Position: 1-2
  • Value: NV
  • Product: Unit admission notification
  • Product Code: POAXAC
  • Available methods:
    • NTAPEU

2. Labeler Code (EEEE)

  • Position: 3-6
  • Format: 4 alphanumeric characters
  • Observation: Provided by the commercial department

3. Generation Channel (98)

  • Position: 7-8
  • Fixed value: 98
  • Meaning: Indicates that the preregistration channel is API

4. Client Numbering (00000000000001)

  • Position: 9-22
  • Format: 14 numeric digits
  • Characteristics:
    • Must not be repeated in 5 years
    • If exhausted, requires labeler change
    • Maximum capacity: 99,999,999,999,999

5. Control Digit (A)

  • Position: 23
  • Format: 1 alphabetic character
  • Calculation: See 'Control digit calculation' for the calculation formula

Control Digit Calculation

The letter of the control character is obtained from the following formula, which involves the first 22 characters of the shipping code:

The ASCII value corresponding to the character (in uppercase) occupying each of the 22 positions is obtained.

All the obtained values are summed.

0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22
T  R  W  A  G  M  Y  F  P  D  X  B  N  J  Z  S  Q  V  H  L  C  K  E

The result of the sum is divided by 23. The remainder of the division is a number between 0 and 22, which will indicate the letter to be used as the control character, within the following table, which is the same used for the calculation of the NIF:

Example:

The initial string of 22 characters, to which the control character must be added, is as follows:

PE08000536165000755542.

Obtaining the ASCII values of each position:

CharacterASCII Code
P80
E69
048
856
048
048
048
553
351
654
149
654
553
048
048
048
755
553
553
553
452
250

The sum of all ASCII codes is 1171.

The remainder of the division of 1171 by 23 is 21.

The letter assigned to this position, according to the table, is K.

The complete shipping code would be PE08000536165000755542K.


Reviews