Workday Payroll · JSON Structure

Payroll Earning Code Structure

EarningCode schema from Workday Payroll API

Type: object Properties: 5
CompensationEnterpriseHuman ResourcesPayrollSaaSTax

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

Properties

id descriptor type taxable active

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-earning-code-structure.json",
  "name": "EarningCode",
  "description": "EarningCode schema from Workday Payroll API",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the earning code",
      "example": "REGULAR"
    },
    "descriptor": {
      "type": "string",
      "description": "Display name of the earning code",
      "example": "Weekly USD Pay Group"
    },
    "type": {
      "type": "string",
      "enum": [
        "Regular",
        "Overtime",
        "Bonus",
        "Commission",
        "Holiday",
        "PTO",
        "Supplemental",
        "Other"
      ],
      "description": "Category of the earning",
      "example": "Regular"
    },
    "taxable": {
      "type": "boolean",
      "description": "Whether this earning is subject to taxation",
      "example": true
    },
    "active": {
      "type": "boolean",
      "description": "Whether the earning code is currently active",
      "example": true
    }
  }
}