Stampfactory
Dokumentation
Sonstiges

Personalfragebogen absenden

Submit with declaration and signature bound to `content_hash`. 409 when the answers changed since the summary was shown

POST
/questionnaire/submit

Authentifizierung

questionnaireToken
X-Questionnaire-Token<token>

Token des Personalfragebogen-Links (nur im Header, nie in URL oder Query).

Ort: header

Request-Body

application/json

TypeScript-Definitionen

TypeScript-Typ für request body.

Einreichen: Erklärung, Unterschrift (Zeichnung als PNG-Data-URL + Name) und bei Minderjährigen die Unterschrift der gesetzlichen Vertretung. content_hash ist der Stand aus der Zusammenfassung; die Unterschrift bestätigt genau diesen Stand (D7).

Response-Body

application/json

application/json

application/json

curl -X POST "https://example.com/questionnaire/submit" \  -H "Content-Type: application/json" \  -d '{    "content_hash": "stringstringstringstringstringstringstringstringstringstringstri",    "declaration_accepted": true,    "employee_signature": {      "image": "string",      "name": "string"    }  }'
{  "data": {    "session_id": "string",    "status": "invited",    "editable": true,    "editable_fields": [      "string"    ],    "current_step": 0,    "step_count": 0,    "company_name": "string",    "first_name": "string",    "surname": "string",    "entry_date": "string",    "link_expires_at": "string",    "privacy_notice": "string",    "construction_industry": true,    "allow_cash_payment": true,    "employment_type": "string",    "flat_rate_taxation_planned": true,    "minijob_limit_cents": 0,    "answers": {      "property1": null,      "property2": null    },    "origins": {      "property1": "string",      "property2": "string"    },    "masked": [      "string"    ],    "bank": {      "country": "string",      "bic_required": true,      "bank_name": "string",      "bic": "string"    },    "evaluation": {      "visible": [        "string"      ],      "hidden": [        "string"      ],      "errors": {        "property1": [          {            "rule": "string",            "code": "string"          }        ],        "property2": [          {            "rule": "string",            "code": "string"          }        ]      },      "confirms": [        {          "rule": "string",          "key": "string",          "fields": [            "string"          ],          "confirmed": true        }      ],      "derived": {        "property1": {          "value": null,          "mode": "string",          "rule": "string",          "source": "string"        },        "property2": {          "value": null,          "mode": "string",          "rule": "string",          "source": "string"        }      },      "allowed": {        "property1": [          null        ],        "property2": [          null        ]      },      "required": [        "string"      ],      "missing": [        "string"      ],      "deferrable": [        "string"      ]    },    "documents": [      {        "id": "string",        "document_type": "string",        "field_id": "string",        "file_name": "string",        "mime_type": "string",        "size_bytes": 0,        "status": "string",        "locked": true,        "uploaded_at": "string"      }    ],    "open_query": {      "message": "string",      "field_ids": [        "string"      ],      "created_at": "string"    },    "submitted_at": "string",    "revision": 0,    "content_hash": "string",    "progress": {      "done": 0,      "total": 0,      "sections": {        "property1": true,        "property2": true      }    }  }}