add_earnings
Add one-time or recurring earnings like bonuses, commissions, or overtime to employee payroll records in Paylocity. Specify earning codes, amounts, dates, and cost centers for accurate compensation management.
Instructions
Add a one-time or recurring earning to an employee (bonus, commission, stipend, overtime, etc.). Use get_company_codes or check existing earnings for valid earning codes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"employeeId": "<employeeId>",
"earningCode": "<earningCode>",
"startDate": "<startDate>"
},
"name": "add_earnings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | No | Paylocity company ID (defaults to PAYLOCITY_COMPANY_ID env var) | |
| employeeId | Yes | Paylocity employee ID | |
| earningCode | Yes | Earning code (e.g. BONUS, COMM, OT — company-specific) | |
| amount | No | Dollar amount | |
| rate | No | Rate per hour/unit | |
| hoursOrUnits | No | Number of hours or units | |
| startDate | Yes | Start date YYYY-MM-DD | |
| endDate | No | End date YYYY-MM-DD (omit for one-time) | |
| costCenter1 | No | ||
| costCenter2 | No | ||
| costCenter3 | No |