Skip to main content

Check an Israeli ID or company number

Stepvalidate-idextract

Checks 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​

PropertyValue
Step namevalidate-id
ResourceClusterStep (lumen.ai/v1alpha1)
Palette group, categoryextract, business
Credits0.2 credits each time it succeeds
Side effectsno
Installation must providenothing

Inputs​

PropertyValue
Needsnothing
Producesfields
Works onitem 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.

OutputType
validboolean
normalizedstring
kindDetectedstring

Settings​

Set under config: on the flow node. Text settings may contain {nodeId.field} placeholders.

SettingTypeDefaultDescription
kindstring"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
valuerequiredstring-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}'