Add a Salary

To add a salary to a worker:

  1. Retrieve the required information such as SalaryBasisID and ActionID by performing a GET operation on the salaryBasisLov and actionsLOV resources.
  2. Perform a POST operation on the salaries resource by providing the details in the request body.

Example URL

Use this resource URL format.

POST

/hcmRestApi/resources/11.13.18.05/salaries

Example Request

Here's an example of the request body in JSON format.

Provide the headers.

Content-Type : application/vnd.oracle.adf.resourceitem+json
REST-Framework-Version : 4
{
"AssignmentId": 300100186717368,
"SalaryBasisId": 300100031583808,
"DateFrom": "2019-06-19",
"SalaryAmount": 12000,
"ActionId": 100010026278066
}

Example Response

Here's an example of the response body in JSON format.

{
"AssignmentId": 300100180005749,
"SalaryId": 300100186732230,
"SalaryBasisId": 300100031583808,
"SalaryFrequencyCode": "HOURLY",
"SalaryBasisType": "U",
"CurrencyCode": "USD",
"DateFrom": "2019-06-19",
"DateTo": "4712-12-31",
"SalaryAmount": 12000,
"AdjustmentAmount": null,
"AdjustmentPercentage": null,
"AnnualSalary": 37440000,
"AnnualFullTimeSalary": 24960000,
"Quartile": null,
"Quintile": null,
"CompaRatio": null,
"RangePosition": null,
"SalaryRangeMinimum": null,
"SalaryRangeMidPoint": null,
"SalaryRangeMaximum": null,
"SearchDate": null,
"FrequencyName": "Hourly",
"AssignmentNumber": null,
"DisplayName": "ZOTL Hourly SB1",
"ActionId": 100010026278066,
"ActionReasonId": null,
"ActionCode": null,
"ActionReasonCode": null,
"ActionReason": null,
"ActionName": null,
"Code": "ZOTL_Hourly_SB1",
"links": [...]
}