Stampfactory
Dokumentation
Sonstiges

Arbeitsbescheinigung stornieren

POST
/employees/{employee}/employment_certificates/{employmentCertificate}/cancel
AuthentifizierungBearer <token>

Bearer-Token, erhalten über den Login-Endpunkt (POST /rest/login).

Ort: header

Pfadparameter

employee*string

The employee ID

Formatuuid
employmentCertificate*string

The employment certificate ID

Formatuuid

Request-Body

application/json

TypeScript-Definitionen

TypeScript-Typ für request body.

Cancel an employment certificate (POST .../employment_certificates/{employmentCertificate}/cancel).

Response-Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/employees/497f6eca-6276-4993-bfeb-53cbbbba6f08/employment_certificates/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel" \  -H "Content-Type: application/json" \  -d '{    "reason": "string"  }'
{  "data": {    "id": "string",    "employee_id": "string",    "employment_period_id": "string",    "type": "sgb3_312",    "status": "draft",    "version": 0,    "supersedes_id": "string",    "requested_by": "agency",    "request_options": {      "earnings_24_months": true,      "period_from": "string",      "period_to": "string"    },    "schema_version": "string",    "document_id": "string",    "file_name": "string",    "issued_at": "string",    "issued_by": {      "id": "string",      "name": "string"    },    "cancelled_at": "string",    "cancel_reason": "string",    "created_at": "string",    "updated_at": "string"  }}