You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Not able to create Salary using REST API

Accepted answer
80
Views
19
Comments
edited May 27, 2020 7:39PM in HCM Integrations 19 comments

Summary

Not able to create Salary using REST API

Content

Hi All,

I'm trying to create a salary for an Employee using REST API, but i'm getting error as below. PFB more details:

Error Response -

{
   "title": "Bad Request",
   "status": "400",
   "o:errorDetails": [{"title": "java.lang.NullPointerException"}]
}

URL: https://efix-test.fa.us6.oraclecloud.com/hcmRestApi/resources/latest/salaries

Method: POST

Input Payload:

{
"AssignmentId" : 300000*********,
"SalaryBasisId": 300000165810985,
"DateFrom" : "2020-02-05",
"DateTo" : "4712-12-31",
"SalaryAmount" : 10,
"ActionId": 300000000225870
}

I have referred the below REST API documentation:

https://docs.oracle.com/en/cloud/saas/human-resources/20b/farws/Add_a_Salary_Worker.html

Also I have followed the below thread and verified all the roles and privileges which are correct.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!