Check an Israeli ID or company number
Step
validate-idextractChecks that a company, dealer or personal ID number is a real one, and says which kind it is. Nothing is sent anywhere.
At a glance
| Property | Value |
|---|---|
| Step name | validate-id |
| Resource | ClusterStep (lumen.ai/v1alpha1) |
| Palette group, category | extract, business |
| Credits | 0.2 credits each time it succeeds |
| Side effects | no |
| Installation must provide | nothing |
Inputs
| Property | Value |
|---|---|
| Needs | nothing |
| Produces | fields |
| Works on | item one document at a time |
Needs and Produces are data types (file, text, fields, email). The editor offers a step only where what it needs is already on the path. See Documents and data.
Outputs
A later node references an output as {nodeId.field} in text, or nodeId.field in a condition.
| Output | Type |
|---|---|
valid | boolean |
normalized | string |
kindDetected | string |
Settings
Set under config: on the flow node. Text settings may contain {nodeId.field} placeholders.
| Setting | Type | Default | Description |
|---|---|---|---|
kind | string | "auto" | Kind is what the number should be. Company numbers (ח״פ) must start with 5; an authorised dealer's (עוסק מורשה) and a personal ID (ת״ז) are held to the check digit alone. Auto holds it to that and reports what the prefix says it is.one of auto, company, osek, personal |
valuerequired | string | - | NumberminLength 1; maxLength 64 |
The full JSON Schema of these settings: validate-id.schema.json.
Example
Check a company number
config
kind: company
value: '{companyNumber}'
Use it in a flow
A node that runs validate-id goes under spec.nodes of a Flow. Give it any id, and list the next node ids in next.
flow.yaml
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: validate-id-example
namespace: tenant-acme
spec:
displayName: "Check an Israeli ID or company number"
triggers:
- id: start
ref: {name: manual-run}
next: [validate-id]
nodes:
- id: validate-id
stepRef: {name: validate-id}
config:
kind: company
value: '{companyNumber}'
Was this page helpful?