Workday Payroll · Schema

PayRunCollection

PayRunCollection schema from Workday Payroll API

CompensationEnterpriseHuman ResourcesPayrollSaaSTax

Properties

Name Type Description
data array
total integer Total number of pay runs matching the query
View JSON Schema on GitHub

JSON Schema

payroll-pay-run-collection-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/workday-payroll/refs/heads/main/json-schema/payroll-pay-run-collection-schema.json",
  "title": "PayRunCollection",
  "description": "PayRunCollection schema from Workday Payroll API",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PayRun"
      }
    },
    "total": {
      "type": "integer",
      "description": "Total number of pay runs matching the query",
      "example": 52
    }
  },
  "$defs": {
    "PayRun": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the pay run",
          "example": "pr_20260430_weekly_001"
        },
        "descriptor": {
          "type": "string",
          "description": "Human-readable name of the pay run",
          "example": "Weekly USD Pay Group"
        },
        "payGroup": {
          "$ref": "#/$defs/PayGroupRef"
        },
        "payPeriod": {
          "$ref": "#/$defs/PayPeriod"
        },
        "status": {
          "type": "string",
          "enum": [
            "Draft",
            "InProgress",
            "Completed",
            "Cancelled"
          ],
          "description": "Current status of the pay run",
          "example": "Draft"
        },
        "runCategory": {
          "type": "string",
          "enum": [
            "Regular",
            "OffCycle",
            "OnDemand"
          ],
          "description": "Category of the pay run",
          "example": "Regular"
        },
        "paymentDate": {
          "type": "string",
          "format": "date",
          "description": "Date payments will be distributed",
          "example": "2026-04-30"
        },
        "totalGrossPay": {
          "type": "number",
          "format": "double",
          "description": "Total gross pay for the pay run",
          "example": 245830.5
        },
        "totalNetPay": {
          "type": "number",
          "format": "double",
          "description": "Total net pay for the pay run",
          "example": 178452.3
        },
        "totalDeductions": {
          "type": "number",
          "format": "double",
          "description": "Total deductions for the pay run",
          "example": 38210.8
        },
        "totalTaxes": {
          "type": "number",
          "format": "double",
          "description": "Total tax withholdings for the pay run",
          "example": 29167.4
        },
        "workerCount": {
          "type": "integer",
          "description": "Number of workers included in the pay run",
          "example": 87
        },
        "currency": {
          "type": "string",
          "description": "ISO 4217 currency code",
          "example": "USD"
        },
        "createdOn": {
          "type": "string",
          "format": "date-time",
          "description": "When the pay run was created",
          "example": "2026-04-30T16:45:00Z"
        },
        "completedOn": {
          "type": "string",
          "format": "date-time",
          "description": "When the pay run was completed",
          "example": "2026-04-30T16:45:00Z"
        }
      }
    },
    "PayPeriod": {
      "type": "object",
      "properties": {
        "startDate": {
          "type": "string",
          "format": "date",
          "description": "Start date of the pay period",
          "example": "2026-04-30"
        },
        "endDate": {
          "type": "string",
          "format": "date",
          "description": "End date of the pay period",
          "example": "2026-04-30"
        }
      }
    },
    "PayGroupRef": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Pay group identifier",
          "example": "pg_weekly_usd"
        },
        "descriptor": {
          "type": "string",
          "description": "Pay group display name",
          "example": "Weekly USD Pay Group"
        }
      }
    }
  }
}