Get eTIMS Business Info

GET/api/v1/etims-info

Returns eTIMS configuration for your organisation, taxpayer PIN, branch ID, device serial, environment, and readiness (isReady requires device initialization via POST /api/v1/initialize).

Requires x-api-key

http://localhost:8100/api/v1/etims-info

Response Fields

FieldTypeRequiredDescription
tinstringOptionalTaxpayer PIN (TAXPAYER_PIN env var).
branchIdstringOptionalBranch ID (BRANCH_ID env var, default 00).
deviceSerialstringOptionalDevice serial number (DEVICE_SERIAL env var) or null if not set.
environmentstringOptionalCurrent Kenya Revenue Authority environment: 'sandbox' or 'production'.
kraEndpointstringOptionalBase URL for Kenya Revenue Authority eTIMS API calls.
sdcIdstringOptionalSDC identifier (SDC_ID env var) or null.
mrcNostringOptionalMRC number (MRC_NO env var) or null.
dvcIdstringOptionalDevice ID (DVC_ID env var) or null.
adapterstringOptionalStorage adapter in use: 'env' (Vercel) or 'file' (local).
isReadybooleanOptionalWhether the service has valid credentials and is ready to submit to Kenya Revenue Authority.

Response

{
  "success": true,
  "data": {
    "tin": "A000000000Z",
    "branchId": "00",
    "deviceSerial": "SN12345678",
    "environment": "sandbox",
    "kraEndpoint": "https://etims-api-sbx.kra.go.ke/etims-api",
    "sdcId": null,
    "mrcNo": null,
    "dvcId": null,
    "adapter": "env",
    "isReady": true
  }
}
curl http://localhost:8100/api/v1/etims-info \\
  -H "x-api-key: YOUR_API_KEY"