Price Matrix Rules

How to access Price Matrixes of a position: you need to first include the billingSetting, and within that, include its priceMatrixRules as a dot member:

[GET] /positions/382?include=billingSetting,billingSetting.priceMatrixRules

{
       "name": "AB Guard",
       "description": "",
       "customId": "UA-1",
       "status": "ACTIVE",
       "account": 687,
       "contract": 135,
       "nonBillable": false,
       "shiftMemo": "",
       "beginDate": "2022-08-01T00:00:00+00:00",
       "endDate": null,
       "breakRule": 37,
       "taxClass": null,
       "payCodeLabel": null,
       "id": 382,
       "billingSetting": {
           "type": "HOURLY",
           "billItem": 1,
           "rate": 24.99,
           "discountRate": 0,
           "holidayGroup": 1,
           "billBreaks": "ALL",
           "holiday": "REGULAR",
           "holidayRate": null,
           "holidayMultiplier": null,
           "overtimeRule": null,
           "id": 382,
 ==>       "priceMatrixRules": []
       }
   }

GET /positions/382?include=payrollSetting,payrollSetting.priceMatrixRules,billingSetting,billingSetting.priceMatrixRules

{
       "name": "AB Guard",
       "description": "",
       "customId": "UA-1",
       "status": "ACTIVE",
       "account": 687,
       "contract": 135,
       "nonBillable": false,
       "shiftMemo": "",
       "beginDate": "2022-08-01T00:00:00+00:00",
       "endDate": null,
       "breakRule": 37,
       "taxClass": null,
       "payCodeLabel": null,
       "taxLocation": null,
       "id": 382,
       "billingSetting": {
           "type": "HOURLY",
           "billItem": 1,
           "rate": 24.99,
           "discountRate": 0,
           "holidayGroup": 1,
           "billBreaks": "ALL",
           "holiday": "REGULAR",
           "holidayRate": null,
           "holidayMultiplier": null,
           "overtimeRule": null,
           "effectiveBillSettingId": 375,
           "id": 382,
           "priceMatrixRules": [
               {
                   "days": "MON",
                   "startTime": "00:00:00",
                   "endTime": "06:00:00",
                   "price": 1.5,
                   "isPercentage": false,
                   "id": 97
               }
           ]
       },
       "payrollSetting": {
           "payPositionRate": false,
           "positionHourlyRate": null,
           "holiday": "",
           "holidayRate": null,
           "holidayMultiplier": null,
           "holidayGroup": 1,
           "payCode": null,
           "payBreaks": "NONE",
           "currentEffectivePaySettingId": 382,
           "id": 382,
           "priceMatrixRules": [
               {
                   "days": "MON",
                   "startTime": "09:00:00",
                   "endTime": "18:00:00",
                   "price": 5,
                   "isPercentage": false,
                   "id": 95
               },
               {
                   "days": "FRI",
                   "startTime": "17:00:00",
                   "endTime": "23:45:00",
                   "price": 7,
                   "isPercentage": false,
                   "id": 96
               }
           ]
       }
   }

 

Was this article helpful?
0 out of 0 found this helpful

Articles in this section