{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/workday-payroll/refs/heads/main/json-structure/payroll-deduction-collection-structure.json", "name": "DeductionCollection", "description": "DeductionCollection schema from Workday Payroll API", "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/$defs/Deduction" } }, "total": { "type": "int32", "description": "Total number of deductions", "example": 52 } }, "definitions": { "Deduction": { "name": "Deduction", "type": "object", "properties": { "id": { "type": "string", "description": "Unique deduction record identifier", "example": "ded_20260430_00211" }, "deductionCode": { "$ref": "#/$defs/DeductionCodeRef" }, "amount": { "type": "double", "description": "Deduction amount", "example": 2500.0 }, "frequency": { "type": "string", "enum": [ "PerPayPeriod", "Monthly", "Annual", "OneTime" ], "description": "Deduction frequency", "example": "PerPayPeriod" }, "preTax": { "type": "boolean", "description": "Whether the deduction is pre-tax", "example": true }, "effectiveDate": { "type": "date", "description": "Effective date of the deduction", "example": "2026-04-30" }, "endDate": { "type": "date", "description": "End date of the deduction", "example": "2026-04-30" } } }, "DeductionCodeRef": { "name": "DeductionCodeRef", "type": "object", "properties": { "id": { "type": "string", "description": "Deduction code identifier", "example": "MEDICAL_PRETAX" }, "descriptor": { "type": "string", "description": "Deduction code display name", "example": "Weekly USD Pay Group" } } } } }