Introduction
The Alta Multes API is a REST web service that enables municipalities to register traffic infractions and obtain supporting master files. Originally designed for PDA devices, the API now supports mobile applications and centralized web applications.API Architecture
The API follows REST principles with XML-based communication for both requests and responses.Key Architectural Features
- RESTful Design: Standard HTTP methods (GET, POST) for different operations
- XML Format: All POST requests and responses use XML format
- Certificate Authentication: HTTPS with mutual TLS certificate authentication
- Device-Based Identification: Each device is identified by an IMEI or assigned unique identifier
- Offline Capability: Range-based expedition numbers allow offline operation
Device Identification
Each device accessing the API must be identified by an IMEI (or assigned code):- PDA Devices: Use actual IMEI from the device
- Mobile Applications: ORGT assigns a unique code per device and municipality
- Centralized Web Apps: Use pattern
company_name-municipality_code(e.g., “MULTA-001”)
Each device IMEI is associated with a single municipality. To work with multiple municipalities, use different IMEIs for each.
XML Format Requirements
All Communications Use XML
Both POST request bodies and all API responses are in XML format.Example: Alphabetically Ordered XML
Additional XML Rules
- All text data must be in UPPERCASE
- Photos are encoded as Base64 byte arrays
- Empty fields can be self-closing tags or empty elements
Authentication & Security
HTTPS with Certificate Authentication
All API access requires:- Client Certificate: Provided by your organization
- Server Certificate: Validates ORGT servers
- Mutual TLS: Both client and server authenticate each other
Registration Process
Before API access:- Complete the adhesion form (signed by the Mayor)
- Submit via EACAT to ORGT
- Provide your public certificate
- Register all device IMEIs with ORGT
- Receive credentials for pre-production testing
Response Format
All endpoints return XML responses with a standard structure:Return Codes
0: Success1: Warning (operation completed with conditions)-1: Application error (specific to each endpoint)- Negative codes (except -9000): Database errors
-9000: Uncontrolled exception or other error
See the Error Codes page for detailed error code meanings by endpoint.
Testing Requirements
Pre-Production Testing
Before production use:- Test all operations in pre-production environment
- Verify certificate authentication works
- Validate data format and field ordering
- Test offline range functionality
Production Testing
For connectivity testing in production:- Use agent codes starting with “USU” (e.g., “USU1”)
- These test infractions are not entered into the ORGT system
- Allows verification of production connectivity without affecting real data
Available Operations
The API provides the following main operations:| Operation | Purpose | Method |
|---|---|---|
| AltaMulta | Register a new traffic infraction | POST |
| AltaAnulada | Cancel a previously registered infraction | GET |
| Consulta | Query an infraction by municipality and expedition number | GET |
| ObtenirActualitzacions | Get updates to master files (conducts, articles, etc.) | GET |
| ObtenirRang | Request range of expedition numbers for offline work | GET |
| ObtenirMunicipis | Get complete list of municipalities with codes | GET |
| FerLogin | Authenticate agent and device | GET |
| ObtenirEscuts | Download municipality emblems/logos | GET |
Several deprecated endpoints exist (BuscarActualitzacions, DemanarRang, ValidarLogin, etc.). Use the recommended modern equivalents listed above.
Master Files
The API provides access to master reference data:- Conducts (Conductes): Infraction types with codes
- Articles: Legal references
- Municipalities: ORGT and INE codes
- Streets: Road/street catalog
- Vehicle Models: Makes and models
- Colors: Standard color codes
- Documents: Associated PDF documents
ObtenirActualitzacions to sync these files periodically.
Offline Operation
The API supports offline work through expedition number ranges:- Request a range using
ObtenirRang - Device receives min/max expedition numbers
- Create infractions offline using numbers from the range
- Submit when connectivity is restored
- Request new range when current range is exhausted
Next Steps
- Environment URLs - Production and pre-production endpoints
- Error Codes - Detailed error code reference
- AltaMulta - Register traffic violations
- ObtenirRang - Request expedition number ranges