preregister
ANNEX XI. SHIPMENT CODE STRUCTURES
This information is only mandatory for /delivery/cn shipments
Package Code Structure for National Registered Products
General Description
The package code has a maximum length of 23 characters and is designed to contain all necessary information for unique identification and automated processing of products.
Code Components
1. Product Type (XX)
- Position: 1-2
- Format: 2 alphanumeric characters
- Function: Identifies the product for correct postal management
- Reference: See Annex I for allowed starting letters
2. Client Code (CCCC)
- Position: 3-6
- Format: 4 alphanumeric characters
- Allowed characters: 0-9, A-Z (except I, Ñ, O, U)
- Special ranges:
- Offices: "0000" to "0ZZZ" (35,937 possible values)
- Labeling clients: "1000" to "ZZZZ" (1,149,984 possible values)
3. Generation Channel (EE)
- Position: 7-8
- Format: 2 numeric characters
- Function: Indicates the system that generated the shipment identification
4. Client Sequential (NNNNNNN)
- Position: 9-15
- Format: 7 numeric characters
- Characteristic: Preferably sequential correlative
- Function: Unique shipment identification from the sender's perspective
5. Package Number (BB)
- Position: 16-17
- Format: 2 characters
- Observation: Reserved for future use in multi-packages
- Requirement: Must match the pre-registration file
- Mandatory: Required (except in OV2)
6. Destination Postal Code (PPPPP)
- Position: 18-22
- Format: 5 characters
- Special case Andorra:
- Standard format: AD[XXX]
- Alternative: 99[XXX]
7. Control Character (H)
- Position: 23
- Format: 1 alphabetic character
- Function: Guarantees the global validity of the code
- Reference: See Annex IV for calculation formula
Additional Notes
- The structure is compatible with Correos Express sorters
- Detailed requirements for code generation can be 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 No.
| | | └─ Sequential
| | └─ Channel
| └─ Client
└─ Product Type
Package Code Structure 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 correlative
- Uniquely identifies each shipment
- Combines with product type and control digit
3. Control Digit (D)
- Position: 11
- Format: 1 numeric character
- Function: Guarantees the global validity of the code
- Reference: See Annex V for calculation formula
4. Country Code (ES)
- Position: 12-13
- Format: 2 alphabetic characters
- Standard: ISO 3166-1
- Example: "ES" for Spain
- Function: Identifies country of origin
Position Diagram
[XX][SSSSSSSS][D][ES]
| | | |
| | | └─ Country (ISO 3166-1)
| | └─ Control Digit
| └─ Client Sequential
└─ Product Type
POAXAC Code Structure for deliverypostcn
General Description
For this endpoint, it is mandatory to provide the package code with the already defined structure.
The shipment code has a specific structure for unitary admission notifications, with a defined format: NVEEEE9800000000000001A
Code Components
1. Product Type (NV)
- Position: 1-2
- Value: NV
- Product: Unitary admission notification
- Product Code: POAXAC
- Available modalities:
- NTAPEU
- S0273
- NOTIF
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 pre-registration channel is API
4. Client Numbering (00000000000001)
- Position: 9-22
- Format: 14 numeric digits
- Characteristics:
- Must not repeat in 5 years
- If exhausted, requires labeler change
- Maximum capacity: 99,999,999,999,999
- Important: Evaluate expected consumption to calculate when numbering will be exhausted
5. Control Digit (A)
- Position: 23
- Format: 1 alphabetic character
- Calculation: Similar to Spanish DNI algorithm
Position Diagram
[NV][EEEE][98][00000000000001][A]
| | | | |
| | | | └─ Control Digit (DNI type)
| | | └─ Client Numbering (14 digits)
| | └─ API Channel (fixed)
| └─ Labeler
└─ Product Type (Notification)