Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
POST
/api-v1/payroll/generate
curl \
--request POST 'https://wyzio.app/api-v1/payroll/generate' \
--header "Content-Type: application/json" \
--header "WEAL-TOKEN: string" \
--header "TARGET-ORGANIZATION-ID: 42" \
--data '{"calendarYear":42,"monthType":"JANUARY","monthStartDate":"2026-05-04T09:42:00Z","monthEndDate":"2026-05-04T09:42:00Z","date":"string","employees":[{"id":42,"staffId":42,"currencyId":42,"staffAccountId":42,"staffPayslipId":42,"organizationAccountId":42,"genderType":"MALE","salaryType":"MONTHLY","birthday":"string","payableToBankId":42,"hourlySalaryType":true}]}'
Request examples
# Headers
WEAL-TOKEN: string
TARGET-ORGANIZATION-ID: 42
# Payload
{
"calendarYear": 42,
"monthType": "JANUARY",
"monthStartDate": "2026-05-04T09:42:00Z",
"monthEndDate": "2026-05-04T09:42:00Z",
"date": "string",
"employees": [
{
"id": 42,
"staffId": 42,
"currencyId": 42,
"staffAccountId": 42,
"staffPayslipId": 42,
"organizationAccountId": 42,
"genderType": "MALE",
"salaryType": "MONTHLY",
"birthday": "string",
"payableToBankId": 42,
"hourlySalaryType": true
}
]
}
Response examples (200)
[
{
"id": 42,
"organizationId": 42,
"createdOn": "string",
"paymentDate": "string",
"calendarYear": 42,
"monthType": "JANUARY",
"monthStartDate": "2026-05-04T09:42:00Z",
"monthEndDate": "2026-05-04T09:42:00Z",
"staffEntityId": 42,
"contactEntityId": 42,
"currencyId": 42,
"employeeInfoId": 42,
"address": {
"id": 42,
"name": "string",
"line1": "string",
"line2": "string",
"city": "string",
"region": {
"id": 42,
"name": "string",
"code": "string",
"taxMode": "ANNUALLY"
},
"countryCode2": "string",
"postCode": "string",
"toTheAttentionOf": "string",
"position": 42,
"houseNumber": "string",
"countryId": 42,
"service": "string",
"readOnly": true
},
"grossSalary": "string",
"netSalary": "string",
"payable": "string",
"description": "string",
"status": "UNPAID",
"warnings": "string",
"isDeleted": true,
"payrollLines": [
{
"id": 42,
"payrollEntityId": 42,
"payslipLineEntityId": 42,
"number": 42,
"localizations": {
"id": 42,
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
},
"payslipValueType": "VALUE",
"isAutomaticallyAdded": true,
"payslipLineType": "EMPLOYEE_LINE",
"description": "string",
"baseAmount": "string",
"employeeRate": "string",
"employerRate": "string",
"employeeAmount": "string",
"employerAmount": "string",
"specialAttributionType": "BASE_SALARY",
"isChanged": true,
"isShownOnSalarySlip": true
}
],
"payrollPayments": [
{
"id": 42,
"payrollEntityId": 42,
"requestedDate": "string",
"plannedDate": "string",
"sentDate": "string",
"valueDate": "string",
"requestedAmount": "string",
"paidAmount": "string",
"bankCharges": "string",
"payableByAccountId": 42,
"payableToBankId": 42,
"isFromLockedAccountingPeriod": true
}
],
"journalEntryId": 42,
"staffPayslipId": 42,
"removedPayrollLineNumbers": [
42
],
"isFromLockedAccountingPeriod": true,
"organizationEmployeeGroupId": 42,
"isDocSent": true
}
]