# Check an Israeli ID or company number

> Checks that a company, dealer or personal ID number is a real one, and says which kind it is. Nothing is sent anywhere.

Source: https://docs.go-lumen.ai/de/reference/steps/validate-id

## Auf einen Blick

| Eigenschaft | Wert |
| --- | --- |
| **Schrittname** | `validate-id` |
| **Ressource** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Palettengruppe, Kategorie** | extract, business |
| **Credits** | **0.2** Credits bei jedem Erfolg |
| **Externe Wirkung** | nein |
| **Die Installation muss bereitstellen** | nichts |

## Eingaben

| Eigenschaft | Wert |
| --- | --- |
| **Braucht** | nichts |
| **Liefert** | `fields` |
| **Arbeitet auf** | item: einem Dokument nach dem anderen |

Braucht und Liefert sind Datentypen (file, text, fields, email). Der Editor bietet einen Schritt nur dort an, wo das, was er braucht, schon auf dem Pfad liegt. Siehe [Dokumente und Daten](https://docs.go-lumen.ai/de/concepts/how-flows-run.md#documents-and-data).

## Ausgaben

Ein späterer Knoten verweist auf eine Ausgabe als `{nodeId.field}` in einem Text oder als `nodeId.field` in einer Bedingung.

| Ausgabe | Typ |
| --- | --- |
| `valid` | boolean |
| `normalized` | string |
| `kindDetected` | string |

## Einstellungen

Wird unter `config:` im Knoten des Flows gesetzt. Texteinstellungen dürfen Platzhalter wie `{nodeId.field}` enthalten.

| Einstellung | Typ | Standardwert | Beschreibung |
| --- | --- | --- | --- |
| `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) |
| `value` (erforderlich) | string |  | Number (minLength 1; maxLength 64) |

Das vollständige JSON Schema dieser Einstellungen: [validate-id.schema.json](https://docs.go-lumen.ai/schemas/steps/validate-id.schema.json).

## Beispiel

```yaml title="config"
kind: company
value: '{companyNumber}'
```

## Im Flow verwenden

Ein Knoten, der `validate-id` ausführt, steht unter `spec.nodes` eines [Flow](https://docs.go-lumen.ai/de/concepts/how-flows-run.md#the-flow-as-yaml). Geben Sie ihm eine beliebige id und nennen Sie in next die ids der nächsten Knoten.

```yaml title="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}'
```
