To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered.
For more information, please refer to this announcement explaining best practices for getting answers to questions.
Not able to create Salary using REST API
Summary
Not able to create Salary using REST APIContent
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.