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
| Field | Type | Required | Description |
|---|---|---|---|
user_id | string | yes | The id of the user on the device the card is bound to; "" when it is bound to none. |
name | string | yes | The holder’s name, as printed on the card. |
id_number | string | yes | The identity number printed on the card. |
serial | string | yes | The card’s own serial number, read from its chip. |
dn_number | string | yes | The card’s DN (document) number, where the card has one. |
gender | string | yes | The holder’s gender, as the card codes it (a number as text). |
nation | string | yes | The holder’s nationality or ethnic group, as the card codes it (a number as text). |
birthday | string | yes | The holder’s date of birth, as the card holds it (“YYYYMMDD”). |
valid | string | yes | The card’s period of validity, as the card holds it: start and end dates run together (“YYYYMMDDYYYYMMDD”). |
address | string | yes | The holder’s address, as printed on the card. |
issuer | string | yes | The authority that issued the card. |
additional | string | yes | Further information the card holds (such as a newer address). |
photo | string | yes | The card’s portrait, base64, encoded as the card holds it. Biometric data. |
fingerprint_1 | string | yes | The first fingerprint template the card holds, base64. Biometric data. |
fingerprint_2 | string | yes | The 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": "" } ]}