List payroll_periods
GET/v1/payroll_periods
List payroll_periods for the active tenant.
Data model
This operation works on the entity Payroll Period (payroll_period). All 12 fields — type, validation, required status, relationships — are listed in the schema reference.
-
Required fields:
employeeProfileId,period,status,ciphertext,iv,alg,keyId -
Server-managed:
_id,schema,schemaVersion,tenantId,version,createdAt,updatedAt,createdBy,updatedBy,deletedAt,deletedBy,keyId,lockedAt,lockedBy— the platform assigns these fields; they are discarded in the request.
Query parameters
| Name | Type | Description |
|---|---|---|
cursor | string | |
limit | number | |
includeDeleted | boolean |
Example
curl -X GET https://api.codemeta-os.de/v1/payroll_periods \
-H "X-Tenant-Id: $TENANT" \
-b cookies.txtconst result = await cm.payroll_periods.list();Response codes
| HTTP | Meaning |
|---|---|
200 |
Default Response |