Transactions

Query verification transactions recorded by your tenant's devices. All transactions are read-only — they are created automatically by the verification endpoints.

Note: Transaction records are immutable. No party can create or modify transactions through the API.

GET/api/tenant/transactions

List transactions for your tenant, sorted by createdAt descending. Supports filtering and pagination.

Headers

AuthorizationstringRequired

Bearer <access_token> — requires transactions:read scope

Query Parameters

limitnumberOptional

Maximum number of transactions to return

deviceIdstringOptional

Filter by device ID

resultstringOptional

Filter by result: "pass" | "fail"

startDatestringOptional

ISO 8601 date — return transactions on or after this date

endDatestringOptional

ISO 8601 date — return transactions on or before this date

Response

{
  "data": [
    {
      "id": "j57b2mNkR4e9...",
      "deviceId": "dev_abc123",
      "challengeType": "age",
      "challengeData": { "requiredAge": 18 },
      "verifiedBy": null,
      "verifyType": "pass",
      "ephemeralId": "eph_001",
      "result": "pass",
      "locationId": "loc_xyz",
      "createdAt": "2024-01-15T10:00:00.000Z"
    }
  ]
}
GET/api/tenant/transactions/:id

Retrieve a single transaction by ID.

Headers

AuthorizationstringRequired

Bearer <access_token> — requires transactions:read scope

Response

{
  "data": {
    "id": "j57b2mNkR4e9...",
    "deviceId": "dev_abc123",
    "challengeType": "age",
    "challengeData": { "requiredAge": 18 },
    "verifiedBy": null,
    "verifyType": "pass",
    "ephemeralId": "eph_001",
    "result": "pass",
    "locationId": "loc_xyz",
    "createdAt": "2024-01-15T10:00:00.000Z"
  }
}

Transaction Fields

FieldTypeDescription
idstringUnique transaction identifier
deviceIdstringDevice that recorded the transaction
challengeTypestringType of challenge: "age"
challengeDataobjectChallenge parameters (e.g. { "requiredAge": 18 })
verifiedBystring | nullEmployee ID for manual verifications; null otherwise
verifyTypestringVerification method used: "pass" | "eid" | "manual"
ephemeralIdstringEphemeral identifier for the customer
resultstring"pass" | "fail"
auditBlobstringEncrypted audit record (ML-KEM-768)
locationIdstringLocation where the transaction occurred
createdAtstringISO 8601 timestamp