← HR API
Payslips
Singular: Payslip — Base-URL: https://hr-api.ayoune.app — Zugriff: read-only — Maschinenlesbare Beschreibung (JSON · YAML)
Jetzt ausprobieren
beta
Response (live)
Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.
Beispiel-Response (aufgezeichnet) Beispiel
Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.
{
"payload": {
"_id": "6a730ab649e8c09f08a92b1c",
"_employee": "6a618f4b26b6c912cdf85507",
"_payrollRun": "6a730a3f6da0f318dcca5a24",
"createdAt": "2026-08-05T10:04:38.721Z",
"employerCost": 350000,
"gross": 350000,
"isDraft": true,
"net": 350000,
"positions": [
{
"text": "Grundgehalt",
"amount": 350000,
"isDraft": true
}
],
"updatedAt": "2026-08-05T10:14:58.876Z",
"_document": "6a730d2249e8c09f08a92c66"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://hr-api.ayoune.app/payslips/6a730ab649e8c09f08a92b1c",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "PayrollRuns",
"title": "MODEL_PAYROLLRUN",
"href": "https://api.ayoune.app/hr/payrollruns/6a730a3f6da0f318dcca5a24",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "hr.payrollruns"
},
{
"rel": "Employees",
"title": "MODEL_EMPLOYEE",
"href": "https://api.ayoune.app/hr/employees/6a618f4b26b6c912cdf85507",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "hr.employees"
},
{
"rel": "Documents",
"title": "MODEL_DOCUMENT",
"href": "https://api.ayoune.app/crm/documents/6a730d2249e8c09f08a92c66",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.documents"
}
],
"relations": [
{
"rel": "PayrollRuns",
"title": "MODEL_PAYROLLRUN",
"href": "https://api.ayoune.app/hr/payrollruns",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "hr.payrollruns"
},
{
"rel": "Employees",
"title": "MODEL_EMPLOYEE",
"href": "https://api.ayoune.app/hr/employees",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "hr.employees"
},
{
"rel": "Documents",
"title": "MODEL_DOCUMENT",
"href": "https://api.ayoune.app/crm/documents",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.documents"
}
],
"debugId": "6a8d10ac0d04c8139da35a96",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_PAYSLIP",
"href": "https://api.ayoune.app/hr/payslips/6a730ab649e8c09f08a92b1c/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_PAYSLIP",
"href": "https://api.ayoune.app/hr/payslips/6a730ab649e8c09f08a92b1c",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.30.0",
"core": "2026.319.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "2252",
"reset": "1787633268",
"resetDate": "Tue Aug 25 2026"
},
"responseTime": 96.621838,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /payslips |
Liste mit Filtern/Paginierung | hr.payslips.view |
| GET | /payslips/:id |
Einzelner Datensatz via ID | hr.payslips.view |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.hr.payslips.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.hr.payslips.findById('OBJECT_ID').exec();