Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
POST
/api-v1/payroll/batch
curl \
--request POST 'https://wyzio.app/api-v1/payroll/batch' \
--header "Content-Type: application/json" \
--header "WEAL-TOKEN: string" \
--header "TARGET-ORGANIZATION-ID: 42" \
--data '[{"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}]'
Request examples
# Headers
WEAL-TOKEN: string
TARGET-ORGANIZATION-ID: 42
# Payload
[
{
"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
}
]
Response examples (200)
{
"items": [
{
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"freshRow": {},
"freshData": {},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"error": true,
"severeError": true
}
]
}