Overview
The AltaMulta endpoint allows you to register a new traffic violation (multa) in the system. The violation is uniquely identified by the municipality code and the expedition number within that municipality.Endpoint
Authentication
This endpoint requires authentication. You must obtain expedition number ranges using theObtenirRang() function before creating violations. The expedition number must be within the requested range.
Content Type
- Consumes:
application/xml - Produces:
application/xml
Request Body
The request body must contain violation data in XML format as aMultaType object.
Request Schema
Violation data in XML format with alphabetically ordered fields
Response
Success Response (200)
Returns atRetorn object with the operation result.
Return code indicating the result:
0: Success - violation created successfully-1: Failed to add violation to database- Negative value (not -9000): Database error
-9000: Other error (non-database)
Error description (empty on success)
Error Codes
| Code | Description |
|---|---|
| 0 | Success |
| -1 | Failed to add violation to database |
| -9000 | Unhandled exception |
| Other negative | Database error |
Examples
Request Example
Success Response Example
Important Notes
- Field ordering must be strictly alphabetical in the XML request
- The expedition number (Cdexpa) must be within the range obtained from
ObtenirRang() - The municipality code (Cdclie) must be valid (use
ObtenirMunicipis()to get valid codes) - Photos must be Base64 encoded
- Date fields use yyyyMMdd format
- Time fields use HHmm format (24-hour)
- Boolean-like fields use ‘S’ for Yes (Sí) and ‘N’ for No
Related Endpoints
- GET /Consulta - Query an existing violation
- GET /AltaAnulada - Cancel a violation
- GET /ObtenirRang - Obtain expedition number ranges
- GET /ObtenirMunicipis - Get list of valid municipality codes