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

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
itemsAdd a nested json of itemsYes

##Nested json of items

KeyValuesRequired
nameAdd nameYes
categoryAdd category. Value should be basic_pay,allowance or deductionYes

Response Codes

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

Example of Request Body

   {
       "items": [
           {
               "name":"Basic Pay",
               "category":"basic_pay"
           },
               {
               "name":"Fuel Allowance",
               "category":"allowance"
           },
           {
               "name":"Internet Bundles Allowance",
               "category":"allowance"
           }
       ]
       
   }