# Terminal-Stempelung

`POST https://{tenant}.stamp.eu/rest/terminal/{code}`

Flat body (ADR 0005, frozen hardware contract — TerminalResponsePinTest):
the EventResource fields plus the top-level `terminal_message`. Documented
explicitly because the shape is assembled from a resolved resource, which
leaves nothing inferrable for the schema generator.

## Pfadparameter

| Name | Typ | Pflicht |
| --- | --- | --- |
| `code` | string | ja |

## Antworten

### 201: Stempelung erfasst

| Feld | Typ | Pflicht |
| --- | --- | --- |
| `id` | string | ja |
| `employee_id` | string \| null | ja |
| `state` | integer | ja |
| `type` | integer | ja |
| `timestamp` | string \| null | ja |
| `latitude` | string \| null | ja |
| `longitude` | string \| null | ja |
| `accuracy` | number \| null | ja |
| `nfc_tag_id` | string \| null | ja |
| `client_ip` | string \| null | ja |
| `metadata` | object \| null | ja |
| `early` | integer | nein |
| `created_at` | string \| null | ja |
| `updated_at` | string \| null | ja |
| `terminal_message` | string | ja |

### 403: An error

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `message` | string | ja | Error overview. |

### 404: Not found

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `message` | string | ja | Error overview. |

### 422

| Feld | Typ | Pflicht |
| --- | --- | --- |
| `message` | string | ja |
| `code` | string | ja |
| `earliest_clock_in` | string | ja |
| `shift_start` | string | ja |

### 429: An error

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `message` | string | ja | Error overview. |
