Skip to main content

Overview

The Consulta endpoint allows you to retrieve detailed information about a specific traffic violation. The violation is uniquely identified by the municipality code and the expedition number within that municipality.

Endpoint

GET /Consulta

Authentication

This endpoint requires authentication.

Content Type

  • Consumes: application/json, application/xml
  • Produces: application/xml

Query Parameters

pCdclie
string
required
Municipality code (3-digit string). Example: ‘100’ = Hospitalet de Llobregat. Use ObtenirMunicipis() to see all valid values.
pCdexpa
string
required
Expedition number within the municipality. Together with pCdclie, this uniquely identifies the violation.

Response

Success Response (200)

Returns a MultaExtended object containing all violation details and additional metadata.
Cdagen
string
Agent code
Cdasig
string
Assignment code
Cdclie
string
Municipality code
Cdcond
string
Conduct code
Cdexpa
string
Expedition number
Cdiden
string
Identification code
Cdmatr
string
License plate number
Cdmunc
string
Municipality code where violation occurred
Cdposc
string
Postal code
Cdrefe
string
Reference code
Codvia
string
Street type code
Color
string
Vehicle color
Desamp1
string
Additional description field 1
Desamp2
string
Additional description field 2
Desamp3
string
Additional description field 3
Desamp4
string
Additional description field 4
Desamp5
string
Additional description field 5
Dsadrc
string
Street address
Dslloc
string
Location description
Dsmunc
string
Municipality name
Dspais
string
Country
Dsprov
string
Province
Dtcoca
string
Notification date
Dtinfr
string
Violation date (format: ddMMyyyy)
Dtmenor
string
Minor date
Foto
byte[]
Photo in Base64 encoded format
Hmmult
string
Violation time (HHmm format)
Identi
string
Identity document (DNI/NIE)
Idepda
string
PDA device identifier
Immult
string
Violation amount
Imppag
string
Payment amount (reduced if paid early)
Marca
string
Vehicle brand
Model
string
Vehicle model
Nmmobi
string
Mobile number
Nom
string
Name
Numvia
string
Street number
Orivia
string
Street orientation
Quiden
string
Identification type
Resident
string
Resident flag
Retcar
string
Card withdrawal flag
Snfoto
string
Photo flag (S/N)
Snmeno
string
Minor flag (S/N)
Snsign
string
Signature flag (S/N)
Sqcond
string
Conduct sequence number
Tpmatr
string
License plate type
Tpvehi
string
Vehicle type
Viapen
string
Penalty route flag
Anulada
boolean
Indicates if the violation has been cancelled
CodiBarres
string
Barcode for payment
DataPagament
datetime
Payment date (format: yyyy-MM-ddTHH:mm:ss)
cdesta
string
Status code
dniden
string
DNI/NIE identification
dserror
string
Error description (if any)

Examples

Request Example

GET /Consulta?pCdclie=088&pCdexpa=0880000001

Success Response Example

<MultaExtended xmlns="http://schemas.datacontract.org/2004/07/WcfMultesPDA" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Cdagen>501</Cdagen>
  <Cdasig>A</Cdasig>
  <Cdclie>088</Cdclie>
  <Cdcond>D</Cdcond>
  <Cdexpa>0880000001</Cdexpa>
  <Cdiden>0</Cdiden>
  <Cdmatr>1234ABC</Cdmatr>
  <Cdmunc>245</Cdmunc>
  <Cdposc>08923</Cdposc>
  <Cdrefe/>
  <Codvia>CR</Codvia>
  <Color/>
  <Desamp1/>
  <Desamp2/>
  <Desamp3/>
  <Desamp4/>
  <Desamp5/>
  <Dsadrc/>
  <Dslloc>CARRER ARAGÓ</Dslloc>
  <Dsmunc>SANTA COLOMA</Dsmunc>
  <Dspais>ESPAÑA</Dspais>
  <Dsprov>BARCELONA</Dsprov>
  <Dtcoca/>
  <Dtinfr>28072018</Dtinfr>
  <Dtmenor/>
  <Foto>BytesCodificatsEnBase64,exemple./9j/YZVDELmjozSniHHQ//2Q2A==</Foto>
  <Hmmult>1106</Hmmult>
  <Identi/>
  <Idepda/>
  <Immult>8000</Immult>
  <Imppag>0</Imppag>
  <Marca>SEAT</Marca>
  <Model>MALAGA</Model>
  <Nmmobi>123456</Nmmobi>
  <Nom/>
  <Numvia>0</Numvia>
  <Orivia>O</Orivia>
  <Quiden i:nil="true"/>
  <Resident/>
  <Retcar>N</Retcar>
  <Snfoto>N</Snfoto>
  <Snmeno>N</Snmeno>
  <Snsign>N</Snsign>
  <Sqcond>3888</Sqcond>
  <Tpmatr>1</Tpmatr>
  <Tpvehi/>
  <Viapen>N</Viapen>
  <Anulada>false</Anulada>
  <CodiBarres/>
  <DataPagament>0001-01-01T00:00:00</DataPagament>
  <cdesta>P</cdesta>
  <dniden i:nil="True"/>
  <dserror i:nil="True"/>
</MultaExtended>

Important Notes

  • Both pCdclie and pCdexpa are required to uniquely identify a violation
  • The municipality code must be a 3-digit string (e.g., ‘088’, not ‘88’)
  • Photos are returned in Base64 encoded format
  • The response includes extended fields not present in the basic MultaType (Anulada, CodiBarres, DataPagament, cdesta, dniden, dserror)
  • Null fields are represented with i:nil="true" or i:nil="True" attributes

Build docs developers (and LLMs) love