Look up a person by Swedish ID number (raw SPAR XML)
Looks up a person in SPAR by `personnummer`/`samordningsnummer` and returns the **raw SPAR SOAP XML** response. For parsed JSON, use `/service/persondata/search/id.json`. > **Production uses your own SPAR agreement.** Upload the certificate and > Skatteverket's customer numbers in the Cerrtify dashboard; until then > production returns `403 spar_not_configured`. Sandbox uses the > platform's test certificate against Skatteverket's SPAR test > environment; you need none of your own.
Authorization
ApiKeyAuth API key in the form cert_<prefix>_<secret>.
In: header
Query Parameters
Run the call as a background job and return 202 Accepted with a job_id.
Queue priority for async jobs.
Value in
- "low"
- "default"
- "high"
Header Parameters
Dedupe key so a retried async enqueue does not create a duplicate job.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/xml
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/service/persondata/search/id" \ -H "Content-Type: application/json" \ -d '{ "idNummer": "195704133106" }'"string"{ "job_id": "string", "status": "queued", "poll": "/service/jobs/<id>"}{ "error": "string", "detail": "string"}{ "error": "string", "detail": "string"}{ "error": "insufficient_credits", "message": "Organisationen har slut på krediter. Fyll på för att fortsätta."}{ "error": "string", "detail": "string"}{ "error": "string", "detail": "string"}{ "error": "upstream_unavailable", "service": "bankid", "message": "There is currently a problem with BankID. Please try again shortly."}{ "error": "string", "detail": "string"}Service health GET
Liveness/health probe. Reports overall status plus DB/Redis sub-status. Open (no API key required).
Look up a person by Swedish ID number (parsed JSON) POST
As `/search/id`, but the SPAR response is parsed into JSON. Always synchronous (`?async` is ignored). > **Production uses your own SPAR agreement.** Upload the certificate and > Skatteverket's customer numbers in the Cerrtify dashboard; until then > production returns `403 spar_not_configured`. Sandbox uses the > platform's test certificate against Skatteverket's SPAR test > environment; you need none of your own.