URL: {{base_url}}/modules/payroll/add_salary_to_employee

Method: POST

Bearer Token: Replace this with an actual token in the request

Headers

Subscription: Replace this with the subscription value

Access_Token: Replace this with the actual access token value

Request Body

KeyValuesRequired
uidEnter external employee unique id. Value can be string or intYes
salary_itemsEnter a json of salary itemsYes

##Json body for Salary Items

KeyValuesRequired
item_idEnter item idYes
amountEnter amountYes

Response Codes

CodeDescription
201Successful
500Internal Server Error
401Unauthorized: Check error message

Example of Request Body

   {
       "employee_uid":1,
       "salary_items":[
           {
                   "item_id":1,
                   "amount":4500
            },
                   {
                   "item_id":2,
                   "amount":1500
               },
                   {
                   "item_id":3,
                   "amount":1000
               }
           ]
   }