payroll.ratecard

Returns a payroll rate card.

SUPPORTED METHODS:

GET

ParametersTypeDescription
token (required)Valid token
id (required)integerRate card id

CREATE

ParametersTypeDescription
token (required)Valid token
name (required)varcharName
stack_overtime (accepted)enum (0, 1)Stack overtime

0: Do not stack overtime
1: Stack overtime

DELETE

ParametersTypeDescription
token (required)Valid token
id (required)integerRate card id
def (accepted)enum (0, 1)Default

0: Not default rate card
1: Default rate card

UPDATE

ParametersTypeDescription
token (required)Valid token
id (required)integerRate card id
name (accepted)varcharName
def (accepted)enum (0,1)Default

0: Not default rate card
1: Default rate card
rates (accepted)varcharUpdate rates
overtime (accepted)integerOvertime
day_limit (accepted)enum[CREATE,UPDATE,DELETE]Day limit

CREATE: Create day limit
UPDATE: Update day limit
DELETE: Delete day limit
day_limit_id (accepted)integerDay limit id
day_limit_minimum (accepted)integerDay limit minimum
day_limit_rate (accepted)integerDay limit rate
pay_code (accepted)varcharPay code
stack_overtime (accepted)enum[0,1]Stack overtime

0: Do not stack overtime
1: Stack overtime
override_payrollenum[0,1]

DOCUMENTATION

GET
Retrieves a payroll rate card by id.
Level 5 is required (all users can fetch this module)

--

Example Request:

{
   "method":"GET",
   "module":"payroll.ratecard",
   "request":{
      "id":"198"
   }
}

Example Response:

{
   "status":1,
   "data":{
      "id":"120",
      "name":"Wakatta 2",
      "overtime":"100",
      "created":"1339517515",
      "def":"0",
      "stack_overtime":"0",
      "rates":{
         "1":{
            "name":"Sun",
            "24":"100.00",
            "23":"100.00",
            "22":"100.00",
            "21":"100.00",
            "20":"100.00",
            "19":"100.00",
            "18":"100.00",
            "17":"100.00",
            "16":"100.00",
            "15":"100.00",
            "14":"100.00",
            "13":"100.00",
            "12":"100.00",
            "11":"100.00",
            "10":"100.00",
            "9":"100.00",
            "1":"100",
            "2":"100",
            "3":"100",
            "4":"100",
            "5":"100",
            "6":"100",
            "7":"100",
            "8":"100"
         },
         "2":{
            "name":"Mon",
            "1":"100",
            "2":"100",
            "3":"100",
            "4":"100",
            "5":"100",
            "6":"100",
            "7":"100",
            "8":"100",
            "9":"100",
            "10":"100",
            "11":"100",
            "12":"100",
            "13":"100",
            "14":"100",
            "15":"100",
            "16":"100",
            "17":"100",
            "18":"100",
            "19":"100",
            "20":"100",
            "21":"100",
            "22":"100",
            "23":"100",
            "24":"100"
         },
         "3":{
            "name":"Tue",
            "1":"100",
            "2":"100",
            "3":"100",
            "4":"100",
            "5":"100",
            "6":"100",
            "7":"100",
            "8":"100",
            "9":"100",
            "10":"100",
            "11":"100",
            "12":"100",
            "13":"100",
            "14":"100",
            "15":"100",
            "16":"100",
            "17":"100",
            "18":"100",
            "19":"100",
            "20":"100",
            "21":"100",
            "22":"100",
            "23":"100",
            "24":"100"
         },
         "4":{
            "name":"Wed",
            "1":"100",
            "2":"100",
            "3":"100",
            "4":"100",
            "5":"100",
            "6":"100",
            "7":"100",
            "8":"100",
            "9":"100",
            "10":"100",
            "11":"100",
            "12":"100",
            "13":"100",
            "14":"100",
            "15":"100",
            "16":"100",
            "17":"100",
            "18":"100",
            "19":"100",
            "20":"100",
            "21":"100",
            "22":"100",
            "23":"100",
            "24":"100"
         },
         "5":{
            "name":"Thu",
            "1":"100",
            "2":"100",
            "3":"100",
            "4":"100",
            "5":"100",
            "6":"100",
            "7":"100",
            "8":"100",
            "9":"100",
            "10":"100",
            "11":"100",
            "12":"100",
            "13":"100",
            "14":"100",
            "15":"100",
            "16":"100",
            "17":"100",
            "18":"100",
            "19":"100",
            "20":"100",
            "21":"100",
            "22":"100",
            "23":"100",
            "24":"100"
         },
         "6":{
            "name":"Fri",
            "1":"100",
            "2":"100",
            "3":"100",
            "4":"100",
            "5":"100",
            "6":"100",
            "7":"100",
            "8":"100",
            "9":"100",
            "10":"100",
            "11":"100",
            "12":"100",
            "13":"100",
            "14":"100",
            "15":"100",
            "16":"100",
            "17":"100",
            "18":"100",
            "19":"100",
            "20":"100",
            "21":"100",
            "22":"100",
            "23":"100",
            "24":"100"
         },
         "7":{
            "name":"Sat",
            "9":"200.00",
            "10":"200.00",
            "11":"200.00",
            "12":"200.00",
            "13":"200.00",
            "14":"200.00",
            "15":"200.00",
            "16":"200.00",
            "17":"200.00",
            "18":"200.00",
            "19":"200.00",
            "20":"200.00",
            "21":"200.00",
            "22":"200.00",
            "23":"200.00",
            "24":"200.00",
            "8":"200.00",
            "1":"100.00",
            "2":"100.00",
            "3":"100.00",
            "4":"100.00",
            "5":"100.00",
            "6":"100.00",
            "7":"100.00"
         }
      },
      "day_overtime":[
 
      ]
   },
   "token":"xxxxxxx"
}