Updates multiple salary configurations. Returns 200 on success, or 400 if any entry fails validation.
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
-
Parent salary config ID
-
Start date (format dd/MM/yyyy)
-
End date (format dd/MM/yyyy)
-
Calendar year
-
Country ID
-
ISO 3166-1 alpha-2 country code
-
Salary config type
Values are
COUNTRY,REGION, orCLA. -
Region this config applies to
-
CLA identifier
-
Payslip status
Values are
DRAFTorFINAL. -
Request model for a salary configuration line
-
Public holidays within the calendar year
-
Certificate insurance information
POST
/api-v1/payslip/batch
curl \
--request POST 'https://wyzio.app/api-v1/payslip/batch' \
--header "Content-Type: application/json" \
--data '[
{
"id": 12345678,
"parentPayslipId": 12345678,
"startDate": "01/01/2026",
"endDate": "31/12/2026",
"calendarYear": 2026,
"countryId": 12345678,
"countryCode": "CH",
"isRegionAvailable": true,
"type": "COMPANY",
"region": {
"id": 42,
"name": "string",
"code": "string",
"taxMode": "ANNUALLY"
},
"cla": "CLA-001",
"status": "ACTIVE",
"payslipLines": [
{
"id": 12345678,
"number": 100,
"localizations": {
"id": 12345678,
"en": "English translation",
"fr": "Traduction française",
"de": "Deutsche Übersetzung",
"it": "Traduzione in italiano"
},
"payslipLineType": "COMPANY_LINE",
"payslipLineSign": "POSITIVE",
"isShownOnSalarySlip": true,
"isAutomaticallyAdded": false,
"isLinkedToAccount": false,
"specialAttributionType": "NONE",
"payslipEntityId": 12345678,
"systemLine": {
"id": 12345678,
"payslipLineType": "COMPANY_LINE",
"systemAdjustmentLineNumber": 100
},
"parentPayslipLines": [
42
],
"touched": false,
"shouldIncludeVat": false,
"isHourlyWageLine": false
}
],
"holidays": [
{
"id": 42,
"date": "2026-01-01T00:00:00.000Z",
"name": "string"
}
],
"payslipCertificateInsuranceInfoEntity": {
"id": 12345678,
"salaryRent": [
12345678
],
"ancillaryWageBenefitsPensionHousing": [
12345678
],
"ancillaryWageBenefitsPrivateCarUse": [
12345678
],
"ancillaryWageBenefitsOther": [
12345678
],
"nonRecurringBenefits": [
12345678
],
"capitalBenefits": [
12345678
],
"participationFeeAccordingToAnnex": [
12345678
],
"allowancesOfTheMembersOfTheAdministration": [
12345678
],
"otherServices": [
12345678
],
"socialContributions": [
12345678
],
"occupationalBenefitsOrdinary": [
12345678
],
"occupationalBenefitsRePurchaseContributions": [
12345678
],
"directTaxAtSource": [
12345678
],
"costAllowancesTravelFoodLodging": [
12345678
],
"costAllowancesActualCosts": [
12345678
],
"costAllowancesFixedExpensesRepresentation": [
12345678
],
"costAllowancesFixedExpensesCar": [
12345678
],
"costAllowancesFixedExpensesOther": [
12345678
],
"developmentContributions": [
12345678
],
"avsSalary": [
12345678
],
"aciSalary": [
12345678
],
"aciiSalary": [
12345678
],
"laaSalary": [
12345678
],
"laacSalary": [
12345678
],
"laacExceesSalary": [
12345678
],
"apgSalary": [
12345678
]
}
}
]'
Request examples
# Headers
# Payload
[
{
"id": 12345678,
"parentPayslipId": 12345678,
"startDate": "01/01/2026",
"endDate": "31/12/2026",
"calendarYear": 2026,
"countryId": 12345678,
"countryCode": "CH",
"isRegionAvailable": true,
"type": "COMPANY",
"region": {
"id": 42,
"name": "string",
"code": "string",
"taxMode": "ANNUALLY"
},
"cla": "CLA-001",
"status": "ACTIVE",
"payslipLines": [
{
"id": 12345678,
"number": 100,
"localizations": {
"id": 12345678,
"en": "English translation",
"fr": "Traduction française",
"de": "Deutsche Übersetzung",
"it": "Traduzione in italiano"
},
"payslipLineType": "COMPANY_LINE",
"payslipLineSign": "POSITIVE",
"isShownOnSalarySlip": true,
"isAutomaticallyAdded": false,
"isLinkedToAccount": false,
"specialAttributionType": "NONE",
"payslipEntityId": 12345678,
"systemLine": {
"id": 12345678,
"payslipLineType": "COMPANY_LINE",
"systemAdjustmentLineNumber": 100
},
"parentPayslipLines": [
42
],
"touched": false,
"shouldIncludeVat": false,
"isHourlyWageLine": false
}
],
"holidays": [
{
"id": 42,
"date": "2026-01-01T00:00:00.000Z",
"name": "string"
}
],
"payslipCertificateInsuranceInfoEntity": {
"id": 12345678,
"salaryRent": [
12345678
],
"ancillaryWageBenefitsPensionHousing": [
12345678
],
"ancillaryWageBenefitsPrivateCarUse": [
12345678
],
"ancillaryWageBenefitsOther": [
12345678
],
"nonRecurringBenefits": [
12345678
],
"capitalBenefits": [
12345678
],
"participationFeeAccordingToAnnex": [
12345678
],
"allowancesOfTheMembersOfTheAdministration": [
12345678
],
"otherServices": [
12345678
],
"socialContributions": [
12345678
],
"occupationalBenefitsOrdinary": [
12345678
],
"occupationalBenefitsRePurchaseContributions": [
12345678
],
"directTaxAtSource": [
12345678
],
"costAllowancesTravelFoodLodging": [
12345678
],
"costAllowancesActualCosts": [
12345678
],
"costAllowancesFixedExpensesRepresentation": [
12345678
],
"costAllowancesFixedExpensesCar": [
12345678
],
"costAllowancesFixedExpensesOther": [
12345678
],
"developmentContributions": [
12345678
],
"avsSalary": [
12345678
],
"aciSalary": [
12345678
],
"aciiSalary": [
12345678
],
"laaSalary": [
12345678
],
"laacSalary": [
12345678
],
"laacExceesSalary": [
12345678
],
"apgSalary": [
12345678
]
}
}
]
Response examples (200)
{
"items": [
{
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"error": true,
"severeError": true
}
]
}