Skip to content

id_card

A national identity card read at the device’s card reader. Emitted by zk-push 2.4 when the clock uploads the card it read. Every field is passed on as the device sent it, as text, and is "" when the device sent nothing for it. photo, fingerprint_1 and fingerprint_2 are the card’s portrait and fingerprint templates: biometric data, dropped unless the endpoint collects biometrics.

Schema id: urn:houradvantage:events:3:id_card

Fields

FieldTypeRequiredDescription
user_idstringyesThe id of the user on the device the card is bound to; "" when it is bound to none.
namestringyesThe holder’s name, as printed on the card.
id_numberstringyesThe identity number printed on the card.
serialstringyesThe card’s own serial number, read from its chip.
dn_numberstringyesThe card’s DN (document) number, where the card has one.
genderstringyesThe holder’s gender, as the card codes it (a number as text).
nationstringyesThe holder’s nationality or ethnic group, as the card codes it (a number as text).
birthdaystringyesThe holder’s date of birth, as the card holds it (“YYYYMMDD”).
validstringyesThe card’s period of validity, as the card holds it: start and end dates run together (“YYYYMMDDYYYYMMDD”).
addressstringyesThe holder’s address, as printed on the card.
issuerstringyesThe authority that issued the card.
additionalstringyesFurther information the card holds (such as a newer address).
photostringyesThe card’s portrait, base64, encoded as the card holds it. Biometric data.
fingerprint_1stringyesThe first fingerprint template the card holds, base64. Biometric data.
fingerprint_2stringyesThe second fingerprint template the card holds, base64. Biometric data.

Example

{
"user_id": "1001",
"name": "Ana Diaz",
"id_number": "ID-0000-0000",
"serial": "SN-0001",
"dn_number": "",
"gender": "2",
"nation": "1",
"birthday": "19900101",
"valid": "2020010120300101",
"address": "1 Example Road",
"issuer": "Example Office",
"additional": "",
"photo": "SlBFRw==",
"fingerprint_1": "",
"fingerprint_2": ""
}

JSON Schema

id_card.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:houradvantage:events:3:id_card",
"title": "id_card: data",
"description": "A national identity card read at the device's card reader. Emitted by zk-push 2.4 when the clock uploads the card it read. Every field is passed on as the device sent it, as text, and is \"\" when the device sent nothing for it. photo, fingerprint_1 and fingerprint_2 are the card's portrait and fingerprint templates: biometric data, dropped unless the endpoint collects biometrics.",
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "The id of the user on the device the card is bound to; \"\" when it is bound to none."
},
"name": {
"type": "string",
"description": "The holder's name, as printed on the card."
},
"id_number": {
"type": "string",
"description": "The identity number printed on the card."
},
"serial": {
"type": "string",
"description": "The card's own serial number, read from its chip."
},
"dn_number": {
"type": "string",
"description": "The card's DN (document) number, where the card has one."
},
"gender": {
"type": "string",
"description": "The holder's gender, as the card codes it (a number as text)."
},
"nation": {
"type": "string",
"description": "The holder's nationality or ethnic group, as the card codes it (a number as text)."
},
"birthday": {
"type": "string",
"description": "The holder's date of birth, as the card holds it (\"YYYYMMDD\")."
},
"valid": {
"type": "string",
"description": "The card's period of validity, as the card holds it: start and end dates run together (\"YYYYMMDDYYYYMMDD\")."
},
"address": {
"type": "string",
"description": "The holder's address, as printed on the card."
},
"issuer": {
"type": "string",
"description": "The authority that issued the card."
},
"additional": {
"type": "string",
"description": "Further information the card holds (such as a newer address)."
},
"photo": {
"type": "string",
"description": "The card's portrait, base64, encoded as the card holds it. Biometric data."
},
"fingerprint_1": {
"type": "string",
"description": "The first fingerprint template the card holds, base64. Biometric data."
},
"fingerprint_2": {
"type": "string",
"description": "The second fingerprint template the card holds, base64. Biometric data."
}
},
"required": [
"user_id",
"name",
"id_number",
"serial",
"dn_number",
"gender",
"nation",
"birthday",
"valid",
"address",
"issuer",
"additional",
"photo",
"fingerprint_1",
"fingerprint_2"
],
"examples": [
{
"user_id": "1001",
"name": "Ana Diaz",
"id_number": "ID-0000-0000",
"serial": "SN-0001",
"dn_number": "",
"gender": "2",
"nation": "1",
"birthday": "19900101",
"valid": "2020010120300101",
"address": "1 Example Road",
"issuer": "Example Office",
"additional": "",
"photo": "SlBFRw==",
"fingerprint_1": "",
"fingerprint_2": ""
}
]
}