For the complete documentation index, see llms.txt. This page is also available as Markdown.

Extract Document Data

This service returns all data extracted from an identity document by applying OCR to the MRZ code, PDF, barcode, and visible fields in other areas of the document, according to the model defined for each country.

Integration

This service is used for implementations of the SelphID Mobile widget by sending the TokenOCR property generated by the widget's native function.

Endpoint

POST /services/extractDocumentData

Headers

Name
Type
Required
Description

x-api-key

string

Yes

API key for access authorization.

family

string

No

Value: OnBoarding. Required when using the tracking service.

All calls to the tracking endpoints with Identity Platform must include the header family.

Request body

Content-Type: application/json

Parameters

Parameter
Type
Required
Description

tokenOcr

string

Yes

Token generated by the native or hybrid SelphID widget, encrypted with AES256 and tokenized, sent in Base64. It contains the OCR result from the document capture.

tracking

object

No

Object representing the required tracking information.

tracking.extraData

string

No

Token generated by the SDK Mobile/Web. Contains tracking information tokenized with the Platform.

tracking.operationId

string

No

Operation identifier generated by the SDK Mobile/Web.

Request example

Responses

200 Success

Response parameters

Parameter
Type
Description

serviceResultCode

integer

Code indicating the overall result of the service execution. See Service Result Code

serviceResultLog

string

Descriptive field containing the result of the service execution. Module details are included in the event of an error or exception.

serviceDocument

string

Object representing the captured document. Its properties are all fields extracted by the OCR process.

serviceTime

string

Total service execution time (milliseconds).

serviceTransactionId

string

Transaction identifier associated with the request processed by the API.

Service Result Code

The serviceResultCode indicates the overall result of the service execution:

serviceResultCode
Description
HTTP Code

0

The service executed successfully; the module processed the request correctly.

200

Response example

400 Bad Request

401 Unauthorized

403 Forbidden

502 Bad Gateway

504 Gateway Timeout

Last updated