Workday Payroll · JSON Structure

Payroll Calculation Status Structure

CalculationStatus schema from Workday Payroll API

Type: object Properties: 6
CompensationEnterpriseHuman ResourcesPayrollSaaSTax

CalculationStatus is a JSON Structure definition published by Workday Payroll, describing 6 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id payRunId status startedAt completedAt errors

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/workday-payroll/refs/heads/main/json-structure/payroll-calculation-status-structure.json",
  "name": "CalculationStatus",
  "description": "CalculationStatus schema from Workday Payroll API",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Calculation job identifier",
      "example": "calc_20260430_00012"
    },
    "payRunId": {
      "type": "string",
      "description": "Associated pay run identifier",
      "example": "pr_20260430_weekly_001"
    },
    "status": {
      "type": "string",
      "enum": [
        "Queued",
        "Processing",
        "Completed",
        "Failed"
      ],
      "description": "Current status of the calculation",
      "example": "Queued"
    },
    "startedAt": {
      "type": "datetime",
      "description": "When the calculation started",
      "example": "2026-04-30T16:45:00Z"
    },
    "completedAt": {
      "type": "datetime",
      "description": "When the calculation completed",
      "example": "2026-04-30T16:45:00Z"
    },
    "errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Error"
      },
      "description": "Any errors encountered during calculation"
    }
  },
  "definitions": {
    "Error": {
      "name": "Error",
      "type": "object",
      "properties": {
        "error": {
          "type": "string",
          "description": "Error code",
          "example": "INVALID_REQUEST"
        },
        "message": {
          "type": "string",
          "description": "Human-readable error message",
          "example": "Validation failed for the provided fields."
        },
        "details": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "field": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            }
          },
          "description": "Detailed error information"
        }
      }
    }
  }
}