Generates payrolls for the authenticated user's organization based on the provided information and returns the generated payrolls.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
Body
Required
-
Entity ID. If negative value, a new entity will be created
-
Calendar year
-
Payroll month
Values are
JANUARY,FEBRUARY,MARCH,APRIL,MAY,JUNE,JULY,AUGUST,SEPTEMBER,OCTOBER,NOVEMBER, orDECEMBER. -
Start date of the month period
-
End date of the month period
-
Generation date (format dd/MM/yyyy). Must not fall within a locked accounting period
-
Employee to generate a payroll entry for
POST
/api-v1/payroll/generate
curl \
--request POST 'https://wyzio.app/api-v1/payroll/generate' \
--header "Content-Type: application/json" \
--data '{"id":12345678,"calendarYear":2026,"monthType":"JUNE","monthStartDate":"2026-06-01","monthEndDate":"2026-06-30","date":"01/06/2026","employees":[{"id":12345678,"staffId":12345678,"currencyId":12345678,"staffAccountId":12345678,"staffPayslipId":12345678,"organizationAccountId":12345678,"genderType":"MALE","salaryType":"MONTHLY","birthday":"15/03/1985","payableToBankId":12345678}]}'
Request examples
# Headers
# Payload
{
"id": 12345678,
"calendarYear": 2026,
"monthType": "JUNE",
"monthStartDate": "2026-06-01",
"monthEndDate": "2026-06-30",
"date": "01/06/2026",
"employees": [
{
"id": 12345678,
"staffId": 12345678,
"currencyId": 12345678,
"staffAccountId": 12345678,
"staffPayslipId": 12345678,
"organizationAccountId": 12345678,
"genderType": "MALE",
"salaryType": "MONTHLY",
"birthday": "15/03/1985",
"payableToBankId": 12345678
}
]
}
Response examples (200)
[
{
"id": 42,
"organizationId": 42,
"createdOn": "2026-01-01T00:00:00.000Z",
"paymentDate": "2026-01-01T00:00:00.000Z",
"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": "100.55",
"employeeRate": "100.55",
"employerRate": "100.55",
"employeeAmount": "100.55",
"employerAmount": "100.55",
"specialAttributionType": "BASE_SALARY",
"isChanged": true,
"isShownOnSalarySlip": true,
"orgEmployeeGroupId": 42
}
],
"payrollPayments": [
{
"id": 42,
"payrollEntityId": 42,
"requestedDate": "2026-01-01T00:00:00.000Z",
"plannedDate": "2026-01-01T00:00:00.000Z",
"sentDate": "2026-01-01T00:00:00.000Z",
"valueDate": "2026-01-01T00:00:00.000Z",
"requestedAmount": "100.55",
"paidAmount": "100.55",
"bankCharges": "100.55",
"payableByAccountId": 42,
"payableToBankId": 42,
"isFromLockedAccountingPeriod": true
}
],
"journalEntryId": 42,
"staffPayslipId": 42,
"removedPayrollLineNumbers": [
42
],
"isFromLockedAccountingPeriod": true,
"isDocSent": true
}
]