Guatemala
Civil validation service for Guatemala. Performs identity verification against data from the Guatemalan Civil Registry.
Endpoint
POST /services/civilValidationHeaders
x-api-key
string
Yes
API Key for access authorization.
family
string
No
Value: OnBoarding. Required for the tracking service.
Full Validation Mobile
Performs data validation and facial matching against the Guatemalan Civil Registry using the mobile platform.
Request body
Content-Type: application/json
Parameters
operation
string
Yes
Validation operation to perform. Value: "FULL".
platform
string
Yes
Platform from which the request is made. Value: "MOBILE".
tokenOcr
string
Yes
Token generated by the native or hybrid SelphID Widget, encrypted with AES256 and tokenized, sent in Base64 format. Contains the OCR result for the captured identity document.
templateRaw
string
Yes
Biometric Template generated by the Selphi Widget. Required for FACIAL or FULL operations.
countryCode
string
Yes
Country code in ISO 3166-1 alpha-3 format. Value: "GTM".
returnPII
boolean
No
Indicates whether to receive the personal data generated by the OCR service and the Civil Registry response.
documentValidation
boolean
No
Indicates whether to start document validation, returning scanReference and type.
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
serviceResultCode
integer
Code indicating the overall result of the service execution. See Service Result Code.
serviceTime
string
Total processing time (milliseconds).
serviceResultLog
string
Descriptive field for the result of the service execution. Includes details when there is an error or exception.
serviceTransactionId
string
Transaction identifier associated with the request processed by the API.
civilDataValidation
array
Array representing OCR validations against the data obtained from the Civil Registry. Its presence depends on the Civil Registry queried.
civilDataValidation[].field
string
Name of the validated field (e.g. firstName, lastName, dateOfBirth).
civilDataValidation[].code
string
Validation result code. "0": Successfully validated. "-99": Possibly tampered with.
civilDataValidation[].message
string
Descriptive message for the validation result.
serviceFacialAuthenticationResult
integer
Code indicating the facial match result. See Service Facial Authentication Result.
serviceFacialSimilarityResult
number
Value indicating the facial similarity between the face in the document photo and the user's selfie. 1.0 = 100%.
serviceFacialAuthenticationHash
string
Integrity hash of the biometric template used in a positive or uncertain facial authentication.
serviceDocument
string
JSON string representing the captured document. Its properties are all the fields extracted by the OCR process.
civilServiceData
string
JSON string containing personal data obtained from the Civil Registry (returned only if returnPII was sent as true in the request).
Response example
Full Validation Web
Validates data and performs facial matching against Guatemala's Civil Registry using the web platform.
Request body
Content-Type: application/json
Parameters
operation
string
Yes
Validation operation to perform. Value: "FULL".
platform
string
Yes
Platform used to submit the request. Value: "WEB".
imageFrontDocument
string
Yes
Front image of the document, Base64-encoded without the MIME type header. Required for the WEB platform.
imageBackDocument
string
Yes
Back image of the document, Base64-encoded without the MIME type header. Required for the WEB platform.
templateRaw
string
Yes
Biometric Template generated by the Selphi Widget. Required for FACIAL or FULL operations.
countryCode
string
Yes
Country code in ISO 3166-1 alpha-3 format. Value: "GTM".
returnPII
boolean
No
Indicates whether to receive the personal data generated by the OCR service and the Civil Registry response.
documentValidation
boolean
No
Indicates whether to start document validation, returning scanReference and type.
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
serviceResultCode
integer
Code indicating the overall result of the service execution. See Service Result Code.
serviceTime
string
Total processing time (milliseconds).
serviceResultLog
string
Descriptive field for the result of the service execution. Includes details when there is an error or exception.
serviceTransactionId
string
Transaction identifier associated with the request processed by the API.
civilDataValidation
array
Array representing OCR validations against the data obtained from the Civil Registry. Its presence depends on the Civil Registry queried.
civilDataValidation[].field
string
Name of the validated field (e.g. firstName, lastName, dateOfBirth).
civilDataValidation[].code
string
Validation result code. "0": Successfully validated. "-99": Possibly tampered with.
civilDataValidation[].message
string
Descriptive message for the validation result.
serviceFacialAuthenticationResult
integer
Code indicating the facial match result. See Service Facial Authentication Result.
serviceFacialSimilarityResult
number
Value indicating the facial similarity between the face in the document photo and the user's selfie. 1.0 = 100%.
serviceFacialAuthenticationHash
string
Integrity hash of the biometric template used in a positive or uncertain facial authentication.
serviceDocument
string
JSON string representing the captured document. Its properties are all the fields extracted by the OCR process.
civilServiceData
string
JSON string containing personal data obtained from the Civil Registry (returned only if returnPII was sent as true in the request).
Response example
Data Validation Mobile
Validates data against Guatemala's Civil Registry using the mobile platform. Does not include facial matching.
Request body
Content-Type: application/json
Parameters
operation
string
Yes
Validation operation to perform. Value: "DATA".
platform
string
Yes
Platform from which the request is made. Value: "MOBILE".
tokenOcr
string
Yes
Token generated by the native or hybrid SelphID Widget, encrypted with AES256 and tokenized, sent in Base64 format. Contains the OCR result for the captured identity document.
countryCode
string
Yes
Country code in ISO 3166-1 alpha-3 format. Value: "GTM".
returnPII
boolean
No
Indicates whether to receive the personal data generated by the OCR service and the Civil Registry response.
documentValidation
boolean
No
Indicates whether to start document validation, returning scanReference and type.
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
serviceResultCode
integer
Code indicating the overall result of the service execution. See Service Result Code.
serviceTime
string
Total processing time (milliseconds).
serviceResultLog
string
Descriptive field for the result of the service execution. Includes details when there is an error or exception.
serviceTransactionId
string
Transaction identifier associated with the request processed by the API.
civilDataValidation
array
Array representing OCR validations against the data obtained from the Civil Registry. Its presence depends on the Civil Registry queried.
civilDataValidation[].field
string
Name of the validated field (e.g. firstName, lastName, dateOfBirth).
civilDataValidation[].code
string
Validation result code. "0": Successfully validated. "-99": Possibly tampered with.
civilDataValidation[].message
string
Descriptive message for the validation result.
serviceDocument
string
JSON string representing the captured document. Its properties are all the fields extracted by the OCR process.
civilServiceData
string
JSON string containing personal data obtained from the Civil Registry (returned only if returnPII was sent as true in the request).
Response example
Data Validation Web
Validates data against Guatemala's Civil Registry using the web platform. Does not include facial matching.
Request body
Content-Type: application/json
Parameters
operation
string
Yes
Validation operation to perform. Value: "DATA".
platform
string
Yes
Platform used to submit the request. Value: "WEB".
imageFrontDocument
string
Yes
Front image of the document, Base64-encoded without the MIME type header. Required for the WEB platform.
imageBackDocument
string
Yes
Back image of the document, Base64-encoded without the MIME type header. Required for the WEB platform.
countryCode
string
Yes
Country code in ISO 3166-1 alpha-3 format. Value: "GTM".
returnPII
boolean
No
Indicates whether to receive the personal data generated by the OCR service and the Civil Registry response.
documentValidation
boolean
No
Indicates whether to start document validation, returning scanReference and type.
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
serviceResultCode
integer
Code indicating the overall result of the service execution. See Service Result Code.
serviceTime
string
Total processing time (milliseconds).
serviceResultLog
string
Descriptive field for the result of the service execution. Includes details when there is an error or exception.
serviceTransactionId
string
Transaction identifier associated with the request processed by the API.
civilDataValidation
array
Array representing OCR validations against the data obtained from the Civil Registry. Its presence depends on the Civil Registry queried.
civilDataValidation[].field
string
Name of the validated field (e.g. firstName, lastName, dateOfBirth).
civilDataValidation[].code
string
Validation result code. "0": Successfully validated. "-99": Possibly tampered with.
civilDataValidation[].message
string
Descriptive message for the validation result.
serviceDocument
string
JSON string representing the captured document. Its properties are all the fields extracted by the OCR process.
civilServiceData
string
JSON string containing personal data obtained from the Civil Registry (returned only if returnPII was sent as true in the request).
Response example
Facial Validation Mobile
Performs facial matching against official images from Guatemala's Civil Registry using the mobile platform. Does not include data validation.
Request body
Content-Type: application/json
Parameters
operation
string
Yes
Validation operation to perform. Value: "FACIAL".
platform
string
Yes
Platform from which the request is made. Value: "MOBILE".
templateRaw
string
Yes
Biometric Template generated by the Selphi Widget. Required for FACIAL or FULL operations.
documentNumber
string
No
User's document number. Required for FACIAL operations in Guatemala.
countryCode
string
Yes
Country code in ISO 3166-1 alpha-3 format. Value: "GTM".
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
serviceResultCode
integer
Code indicating the overall result of the service execution. See Service Result Code.
serviceTime
string
Total processing time (milliseconds).
serviceResultLog
string
Descriptive field for the result of the service execution. Includes details when there is an error or exception.
serviceTransactionId
string
Transaction identifier associated with the request processed by the API.
civilDataValidation
array
Array representing OCR validations against the data obtained from the Civil Registry. Its presence depends on the Civil Registry queried.
civilDataValidation[].field
string
Name of the validated field (e.g. firstName, lastName, dateOfBirth).
civilDataValidation[].code
string
Validation result code. "0": Successfully validated. "-99": Possibly tampered with.
civilDataValidation[].message
string
Descriptive message for the validation result.
serviceFacialAuthenticationResult
integer
Code indicating the facial match result. See Service Facial Authentication Result.
serviceFacialSimilarityResult
number
Value indicating the facial similarity between the face in the document photo and the user's selfie. 1.0 = 100%.
serviceFacialAuthenticationHash
string
Integrity hash of the biometric template used in a positive or uncertain facial authentication.
Response example
Facial Validation Web
Performs facial matching against official images from Guatemala's Civil Registry using the web platform. Does not include data validation.
Request body
Content-Type: application/json
Parameters
operation
string
Yes
Validation operation to perform. Value: "FACIAL".
platform
string
Yes
Platform used to submit the request. Value: "WEB".
templateRaw
string
Yes
Biometric Template generated by the Selphi Widget. Required for FACIAL or FULL operations.
documentNumber
string
No
User's document number. Required for FACIAL operations in Guatemala.
countryCode
string
Yes
Country code in ISO 3166-1 alpha-3 format. Value: "GTM".
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
serviceResultCode
integer
Code indicating the overall result of the service execution. See Service Result Code.
serviceTime
string
Total processing time (milliseconds).
serviceResultLog
string
Descriptive field for the result of the service execution. Includes details when there is an error or exception.
serviceTransactionId
string
Transaction identifier associated with the request processed by the API.
civilDataValidation
array
Array representing OCR validations against the data obtained from the Civil Registry. Its presence depends on the Civil Registry queried.
civilDataValidation[].field
string
Name of the validated field (e.g. firstName, lastName, dateOfBirth).
civilDataValidation[].code
string
Validation result code. "0": Successfully validated. "-99": Possibly tampered with.
civilDataValidation[].message
string
Descriptive message for the validation result.
serviceFacialAuthenticationResult
integer
Code indicating the facial match result. See Service Facial Authentication Result.
serviceFacialSimilarityResult
number
Value indicating the facial similarity between the face in the document photo and the user's selfie. 1.0 = 100%.
serviceFacialAuthenticationHash
string
Integrity hash of the biometric template used in a positive or uncertain facial authentication.
Response example
Reference tables
Service Result Code
The serviceResultCode indicates the overall result of the service execution:
0
The service execution was successful; the module processed the request correctly.
200
Service Facial Authentication Result
The serviceFacialAuthenticationResult indicates the result of facial matching operations (only for FULL and FACIAL operations):
0
NONE
Facial verification could not be performed.
1
NEGATIVE
The process completed successfully. The facial pattern comparison did not match.
3
POSITIVE
The process completed successfully. The facial pattern comparison was positive. The value of serviceFacialSimilarityResult indicates the % similarity between the compared images.
4
NONE BECAUSE POSE EXCEED
Facial verification could not be performed because of the face's position.
5
NONE BECAUSE INVALID EXTRACTIONS
Facial verification could not be performed due to problems extracting the facial pattern.
Common errors
400 Bad Request
401 Unauthorized
403 Forbidden
413 Payload Too Large
The request exceeds the maximum allowed size. The gateway rejects it without processing it: the response does not include serviceResultCode or serviceTransactionId. See Request size limit.
Request larger than 6 MB and up to 10 MB (Content-Type: application/json):
Request larger than 10 MB (10,485,760 bytes) (Content-Type: text; charset=utf-8, plain text, not JSON):
502 Bad Gateway
504 Gateway Timeout
Last updated