{
  "info": {
    "_postman_id": "9e1d13c2-0448-5f15-83ee-576aef59ec7c",
    "name": "POS GROVE POS API — HR",
    "description": "Employees (hr.employees), attendance (hr.attendance), leave (hr.leaves) and payroll (hr.payroll). Read only. API keys need the `hr` scope.\n\n**Setup**\n1. Set the collection variable `baseUrl` to your POS GROVE address followed by `/api/v1`.\n2. Either paste an API key (Online store → API & Webhooks) into `accessToken`, or run **Get an access token** (in the *Sign in* or *Authentication* folder): it signs in with a username and password and saves the token for you (valid 12 hours).\n3. Send any request. A test checks the `{ success }` envelope on every answer.\n\nAll responses use `{ success, message, data, meta }`; errors use `{ success: false, message, error: { code, details, requestId } }`. Lists accept `page`, `limit`, `sort` and `fields`.\n\nReference: https://posgrove.com/docs/pos-api",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{accessToken}}",
        "type": "string"
      }
    ]
  },
  "event": [
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "exec": [
          "// POS GROVE APIs answer { success, message, data } (or { success: false, error, message }).",
          "pm.test(\"Response is JSON\", function () { pm.response.to.be.json; });",
          "pm.test(\"Envelope has a success flag\", function () {",
          "  var b = pm.response.json();",
          "  pm.expect(b).to.have.property(\"success\");",
          "  if (pm.response.code < 400) pm.expect(b.success).to.eql(true);",
          "});"
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://your-store.example.com/api/v1",
      "type": "string",
      "description": "Your POS GROVE address followed by /api/v1, e.g. https://shop.example.com/api/v1"
    },
    {
      "key": "accessToken",
      "value": "",
      "type": "string",
      "description": "An API key, or the token saved by the Get an access token request."
    }
  ],
  "item": [
    {
      "name": "Sign in",
      "description": "Run once: saves {{accessToken}} for the other requests (or paste an API key instead).",
      "item": [
        {
          "name": "Get an access token",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/auth/token",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "auth",
                "token"
              ]
            },
            "description": "Signs in with a username and password (and the 6-digit code when two-factor sign-in is on) and returns a bearer token valid for 12 hours. The token is shown only once. Five wrong passwords in a row disable the account, as on the sign-in page.\n\nNo authentication needed.\n\n`POST /auth/token` · operationId `auth.token`",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"username\": \"jane\",\n  \"password\": \"••••••••\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "auth": {
              "type": "noauth"
            }
          },
          "response": [
            {
              "name": "201 Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/auth/token",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "auth",
                    "token"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"username\": \"jane\",\n  \"password\": \"••••••••\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Success",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"message\": \"OK\",\n  \"data\": {\n    \"token\": \"mtk_<token shown once>\",\n    \"tokenType\": \"Bearer\",\n    \"expiresAt\": \"2026-10-02T21:30:00.000Z\",\n    \"expiresIn\": 43200,\n    \"user\": {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e502\",\n      \"username\": \"jane\",\n      \"name\": \"Jane Doe\"\n    }\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "var body = {};",
                  "try { body = pm.response.json(); } catch (e) {}",
                  "if (body && body.data && body.data.token) {",
                  "  pm.collectionVariables.set(\"accessToken\", body.data.token);",
                  "  if (pm.environment && pm.environment.has(\"accessToken\")) pm.environment.set(\"accessToken\", body.data.token);",
                  "  console.log(\"POS GROVE: access token saved to {{accessToken}} (valid until \" + body.data.expiresAt + \")\");",
                  "}",
                  "pm.test(\"Access token received\", function () { pm.expect(body.data && body.data.token).to.be.a(\"string\"); });"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "List employees",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/hr/employees",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "hr",
            "employees"
          ],
          "query": [
            {
              "key": "page",
              "value": "1",
              "description": "Page number (starts at 1).",
              "disabled": true
            },
            {
              "key": "limit",
              "value": "25",
              "description": "Items per page (max 100).",
              "disabled": true
            },
            {
              "key": "sort",
              "value": "",
              "description": "Comma-separated fields; prefix with - for descending. Example: -createdAt,name",
              "disabled": true
            },
            {
              "key": "fields",
              "value": "",
              "description": "Comma-separated fields to return. Example: id,name,status",
              "disabled": true
            },
            {
              "key": "q",
              "value": "",
              "description": "Search text.",
              "disabled": true
            },
            {
              "key": "department",
              "value": "",
              "description": "",
              "disabled": true
            },
            {
              "key": "designation",
              "value": "",
              "description": "",
              "disabled": true
            },
            {
              "key": "active",
              "value": "",
              "description": "",
              "disabled": true
            }
          ]
        },
        "description": "Permission: `hr.employees`.\n\nScope: `hr:read`.\n\n`GET /hr/employees` · operationId `hr.employees.list`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/hr/employees",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "hr",
                "employees"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1",
                  "description": "Page number (starts at 1).",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "25",
                  "description": "Items per page (max 100).",
                  "disabled": true
                },
                {
                  "key": "sort",
                  "value": "",
                  "description": "Comma-separated fields; prefix with - for descending. Example: -createdAt,name",
                  "disabled": true
                },
                {
                  "key": "fields",
                  "value": "",
                  "description": "Comma-separated fields to return. Example: id,name,status",
                  "disabled": true
                },
                {
                  "key": "q",
                  "value": "",
                  "description": "Search text.",
                  "disabled": true
                },
                {
                  "key": "department",
                  "value": "",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "designation",
                  "value": "",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "active",
                  "value": "",
                  "description": "",
                  "disabled": true
                }
              ]
            }
          },
          "status": "Success",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json; charset=utf-8"
            }
          ],
          "body": "{\n  \"success\": true,\n  \"message\": \"OK\",\n  \"data\": [\n    {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e511\",\n      \"employeeNumber\": \"E-014\",\n      \"name\": \"Emma Obi\",\n      \"email\": \"emma@example.com\",\n      \"mobile\": \"08055556666\",\n      \"department\": \"Sales\",\n      \"designation\": \"Cashier\",\n      \"role\": \"Staff\",\n      \"unit\": \"Front desk\",\n      \"location\": \"Main Street\",\n      \"employmentType\": \"Full time\",\n      \"gender\": \"Female\",\n      \"reportingTo\": \"Jane Doe\",\n      \"active\": true,\n      \"joinedOn\": \"2025-03-01\",\n      \"probationEndsOn\": \"2025-06-01\",\n      \"contractEndsOn\": null,\n      \"createdAt\": \"2026-10-01T09:30:00.000Z\",\n      \"updatedAt\": \"2026-10-02T14:05:00.000Z\"\n    }\n  ]\n}"
        }
      ]
    },
    {
      "name": "Get an employee",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/hr/employees/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "hr",
            "employees",
            ":id"
          ],
          "query": [
            {
              "key": "fields",
              "value": "",
              "description": "Comma-separated fields to return. Example: id,name,status",
              "disabled": true
            }
          ],
          "variable": [
            {
              "key": "id",
              "value": "",
              "description": "Pattern: ^[a-f0-9]{24}$"
            }
          ]
        },
        "description": "Includes salary, bank and pension details only when you have hr.payroll.\n\nPermission: `hr.employees`.\n\nScope: `hr:read`.\n\n`GET /hr/employees/{id}` · operationId `hr.employees.get`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/hr/employees/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "hr",
                "employees",
                ":id"
              ],
              "query": [
                {
                  "key": "fields",
                  "value": "",
                  "description": "Comma-separated fields to return. Example: id,name,status",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": "Pattern: ^[a-f0-9]{24}$"
                }
              ]
            }
          },
          "status": "Success",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json; charset=utf-8"
            }
          ],
          "body": "{\n  \"success\": true,\n  \"message\": \"OK\",\n  \"data\": {\n    \"id\": \"66f1c2a9e4b0a1b2c3d4e511\",\n    \"employeeNumber\": \"E-014\",\n    \"name\": \"Emma Obi\",\n    \"email\": \"emma@example.com\",\n    \"mobile\": \"08055556666\",\n    \"department\": \"Sales\",\n    \"designation\": \"Cashier\",\n    \"role\": \"Staff\",\n    \"unit\": \"Front desk\",\n    \"location\": \"Main Street\",\n    \"employmentType\": \"Full time\",\n    \"gender\": \"Female\",\n    \"reportingTo\": \"Jane Doe\",\n    \"active\": true,\n    \"joinedOn\": \"2025-03-01\",\n    \"probationEndsOn\": \"2025-06-01\",\n    \"contractEndsOn\": null,\n    \"createdAt\": \"2026-10-01T09:30:00.000Z\",\n    \"updatedAt\": \"2026-10-02T14:05:00.000Z\",\n    \"address\": \"7 Broad Street\",\n    \"country\": \"Nigeria\",\n    \"state\": \"Lagos\",\n    \"language\": \"English\",\n    \"salutation\": \"Ms\",\n    \"maritalStatus\": \"Single\",\n    \"skills\": \"Customer service\",\n    \"note\": \"\",\n    \"salary\": {\n      \"level\": 3,\n      \"gross\": 250000,\n      \"basic\": 180000,\n      \"allowance\": 50000,\n      \"other\": 20000,\n      \"cycle\": \"monthly\"\n    },\n    \"bank\": {\n      \"name\": \"First Bank\",\n      \"accountNumber\": \"0123456789\"\n    },\n    \"pension\": {\n      \"administrator\": \"Stanbic IBTC Pension\",\n      \"number\": \"PEN100200300\"\n    },\n    \"taxNumber\": \"12345678-0001\",\n    \"nhfNumber\": \"NHF-55001\"\n  }\n}"
        }
      ]
    },
    {
      "name": "Departments and head count",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/hr/departments",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "hr",
            "departments"
          ]
        },
        "description": "Departments set up in HR settings plus any used on employee records, with the number of employees in each.\n\nPermission: `hr.employees`.\n\nScope: `hr:read`.\n\n`GET /hr/departments` · operationId `hr.departments`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/hr/departments",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "hr",
                "departments"
              ]
            }
          },
          "status": "Success",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json; charset=utf-8"
            }
          ],
          "body": "{\n  \"success\": true,\n  \"message\": \"OK\",\n  \"data\": [\n    {\n      \"name\": \"Operations\",\n      \"employees\": 4\n    },\n    {\n      \"name\": \"Sales\",\n      \"employees\": 9\n    }\n  ]\n}"
        }
      ]
    },
    {
      "name": "Attendance records",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/hr/attendance",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "hr",
            "attendance"
          ],
          "query": [
            {
              "key": "page",
              "value": "1",
              "description": "Page number (starts at 1).",
              "disabled": true
            },
            {
              "key": "limit",
              "value": "25",
              "description": "Items per page (max 100).",
              "disabled": true
            },
            {
              "key": "sort",
              "value": "",
              "description": "Comma-separated fields; prefix with - for descending. Example: -createdAt,name",
              "disabled": true
            },
            {
              "key": "fields",
              "value": "",
              "description": "Comma-separated fields to return. Example: id,name,status",
              "disabled": true
            },
            {
              "key": "from",
              "value": "",
              "description": "Only items on or after this date (YYYY-MM-DD).",
              "disabled": true
            },
            {
              "key": "to",
              "value": "",
              "description": "Only items on or before this date (YYYY-MM-DD, whole day included).",
              "disabled": true
            },
            {
              "key": "employeeId",
              "value": "",
              "description": "",
              "disabled": true
            },
            {
              "key": "late",
              "value": "",
              "description": "",
              "disabled": true
            }
          ]
        },
        "description": "Permission: `hr.attendance`.\n\nScope: `hr:read`.\n\n`GET /hr/attendance` · operationId `hr.attendance.list`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/hr/attendance",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "hr",
                "attendance"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1",
                  "description": "Page number (starts at 1).",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "25",
                  "description": "Items per page (max 100).",
                  "disabled": true
                },
                {
                  "key": "sort",
                  "value": "",
                  "description": "Comma-separated fields; prefix with - for descending. Example: -createdAt,name",
                  "disabled": true
                },
                {
                  "key": "fields",
                  "value": "",
                  "description": "Comma-separated fields to return. Example: id,name,status",
                  "disabled": true
                },
                {
                  "key": "from",
                  "value": "",
                  "description": "Only items on or after this date (YYYY-MM-DD).",
                  "disabled": true
                },
                {
                  "key": "to",
                  "value": "",
                  "description": "Only items on or before this date (YYYY-MM-DD, whole day included).",
                  "disabled": true
                },
                {
                  "key": "employeeId",
                  "value": "",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "late",
                  "value": "",
                  "description": "",
                  "disabled": true
                }
              ]
            }
          },
          "status": "Success",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json; charset=utf-8"
            }
          ],
          "body": "{\n  \"success\": true,\n  \"message\": \"OK\",\n  \"data\": [\n    {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e512\",\n      \"employeeId\": \"66f1c2a9e4b0a1b2c3d4e511\",\n      \"employeeNumber\": \"E-014\",\n      \"name\": \"Emma Obi\",\n      \"role\": \"Cashier\",\n      \"clockIn\": \"2026-10-02T07:58:00.000Z\",\n      \"clockOut\": \"2026-10-02T17:02:00.000Z\",\n      \"late\": false,\n      \"location\": \"Main Street\",\n      \"workday\": \"2026-10-02\",\n      \"createdAt\": \"2026-10-02T14:05:00.000Z\"\n    }\n  ]\n}"
        }
      ]
    },
    {
      "name": "Leave requests",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/hr/leaves",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "hr",
            "leaves"
          ],
          "query": [
            {
              "key": "page",
              "value": "1",
              "description": "Page number (starts at 1).",
              "disabled": true
            },
            {
              "key": "limit",
              "value": "25",
              "description": "Items per page (max 100).",
              "disabled": true
            },
            {
              "key": "sort",
              "value": "",
              "description": "Comma-separated fields; prefix with - for descending. Example: -createdAt,name",
              "disabled": true
            },
            {
              "key": "fields",
              "value": "",
              "description": "Comma-separated fields to return. Example: id,name,status",
              "disabled": true
            },
            {
              "key": "from",
              "value": "",
              "description": "Only items on or after this date (YYYY-MM-DD).",
              "disabled": true
            },
            {
              "key": "to",
              "value": "",
              "description": "Only items on or before this date (YYYY-MM-DD, whole day included).",
              "disabled": true
            },
            {
              "key": "employeeId",
              "value": "",
              "description": "",
              "disabled": true
            },
            {
              "key": "status",
              "value": "",
              "description": "",
              "disabled": true
            }
          ]
        },
        "description": "Permission: `hr.leaves`.\n\nScope: `hr:read`.\n\n`GET /hr/leaves` · operationId `hr.leaves.list`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/hr/leaves",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "hr",
                "leaves"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1",
                  "description": "Page number (starts at 1).",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "25",
                  "description": "Items per page (max 100).",
                  "disabled": true
                },
                {
                  "key": "sort",
                  "value": "",
                  "description": "Comma-separated fields; prefix with - for descending. Example: -createdAt,name",
                  "disabled": true
                },
                {
                  "key": "fields",
                  "value": "",
                  "description": "Comma-separated fields to return. Example: id,name,status",
                  "disabled": true
                },
                {
                  "key": "from",
                  "value": "",
                  "description": "Only items on or after this date (YYYY-MM-DD).",
                  "disabled": true
                },
                {
                  "key": "to",
                  "value": "",
                  "description": "Only items on or before this date (YYYY-MM-DD, whole day included).",
                  "disabled": true
                },
                {
                  "key": "employeeId",
                  "value": "",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "description": "",
                  "disabled": true
                }
              ]
            }
          },
          "status": "Success",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json; charset=utf-8"
            }
          ],
          "body": "{\n  \"success\": true,\n  \"message\": \"OK\",\n  \"data\": [\n    {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e513\",\n      \"employeeId\": \"66f1c2a9e4b0a1b2c3d4e511\",\n      \"employeeNumber\": \"E-014\",\n      \"name\": \"Emma Obi\",\n      \"type\": \"Annual leave\",\n      \"status\": \"1\",\n      \"startDate\": \"2026-11-03\",\n      \"endDate\": \"2026-11-07\",\n      \"duration\": 5,\n      \"paid\": true,\n      \"note\": \"Family trip\",\n      \"createdAt\": \"2026-10-02T14:05:00.000Z\"\n    }\n  ]\n}"
        }
      ]
    },
    {
      "name": "Payroll records (payslips)",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/hr/payroll",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "hr",
            "payroll"
          ],
          "query": [
            {
              "key": "page",
              "value": "1",
              "description": "Page number (starts at 1).",
              "disabled": true
            },
            {
              "key": "limit",
              "value": "25",
              "description": "Items per page (max 100).",
              "disabled": true
            },
            {
              "key": "sort",
              "value": "",
              "description": "Comma-separated fields; prefix with - for descending. Example: -createdAt,name",
              "disabled": true
            },
            {
              "key": "fields",
              "value": "",
              "description": "Comma-separated fields to return. Example: id,name,status",
              "disabled": true
            },
            {
              "key": "from",
              "value": "",
              "description": "Only items on or after this date (YYYY-MM-DD).",
              "disabled": true
            },
            {
              "key": "to",
              "value": "",
              "description": "Only items on or before this date (YYYY-MM-DD, whole day included).",
              "disabled": true
            },
            {
              "key": "q",
              "value": "",
              "description": "Search text.",
              "disabled": true
            },
            {
              "key": "employeeId",
              "value": "",
              "description": "",
              "disabled": true
            },
            {
              "key": "department",
              "value": "",
              "description": "",
              "disabled": true
            }
          ]
        },
        "description": "Permission: `hr.payroll`.\n\nScope: `hr:read`.\n\n`GET /hr/payroll` · operationId `hr.payroll.list`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/hr/payroll",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "hr",
                "payroll"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1",
                  "description": "Page number (starts at 1).",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "25",
                  "description": "Items per page (max 100).",
                  "disabled": true
                },
                {
                  "key": "sort",
                  "value": "",
                  "description": "Comma-separated fields; prefix with - for descending. Example: -createdAt,name",
                  "disabled": true
                },
                {
                  "key": "fields",
                  "value": "",
                  "description": "Comma-separated fields to return. Example: id,name,status",
                  "disabled": true
                },
                {
                  "key": "from",
                  "value": "",
                  "description": "Only items on or after this date (YYYY-MM-DD).",
                  "disabled": true
                },
                {
                  "key": "to",
                  "value": "",
                  "description": "Only items on or before this date (YYYY-MM-DD, whole day included).",
                  "disabled": true
                },
                {
                  "key": "q",
                  "value": "",
                  "description": "Search text.",
                  "disabled": true
                },
                {
                  "key": "employeeId",
                  "value": "",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "department",
                  "value": "",
                  "description": "",
                  "disabled": true
                }
              ]
            }
          },
          "status": "Success",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json; charset=utf-8"
            }
          ],
          "body": "{\n  \"success\": true,\n  \"message\": \"OK\",\n  \"data\": [\n    {\n      \"id\": \"66f1c2a9e4b0a1b2c3d4e514\",\n      \"employeeId\": \"66f1c2a9e4b0a1b2c3d4e511\",\n      \"employeeNumber\": \"E-014\",\n      \"name\": \"Emma Obi\",\n      \"designation\": \"Cashier\",\n      \"department\": \"Sales\",\n      \"payDate\": \"2026-09-30T00:00:00.000Z\",\n      \"payType\": \"month\",\n      \"basic\": 180000,\n      \"allowance\": 50000,\n      \"other\": 20000,\n      \"gross\": 250000,\n      \"net\": 221500,\n      \"deductions\": {\n        \"tax\": 18500,\n        \"pension\": 10000\n      },\n      \"attendanceDays\": 21,\n      \"totalDays\": 22,\n      \"unpaidLeaveDays\": 0,\n      \"latenessCount\": 1,\n      \"createdAt\": \"2026-10-02T14:05:00.000Z\"\n    }\n  ]\n}"
        }
      ]
    },
    {
      "name": "Get a payroll record",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/hr/payroll/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "hr",
            "payroll",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "",
              "description": "Pattern: ^[a-f0-9]{24}$"
            }
          ]
        },
        "description": "Permission: `hr.payroll`.\n\nScope: `hr:read`.\n\n`GET /hr/payroll/{id}` · operationId `hr.payroll.get`"
      },
      "response": [
        {
          "name": "200 Success",
          "originalRequest": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/hr/payroll/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "hr",
                "payroll",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": "Pattern: ^[a-f0-9]{24}$"
                }
              ]
            }
          },
          "status": "Success",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json; charset=utf-8"
            }
          ],
          "body": "{\n  \"success\": true,\n  \"message\": \"OK\",\n  \"data\": {\n    \"id\": \"66f1c2a9e4b0a1b2c3d4e514\",\n    \"employeeId\": \"66f1c2a9e4b0a1b2c3d4e511\",\n    \"employeeNumber\": \"E-014\",\n    \"name\": \"Emma Obi\",\n    \"designation\": \"Cashier\",\n    \"department\": \"Sales\",\n    \"payDate\": \"2026-09-30T00:00:00.000Z\",\n    \"payType\": \"month\",\n    \"basic\": 180000,\n    \"allowance\": 50000,\n    \"other\": 20000,\n    \"gross\": 250000,\n    \"net\": 221500,\n    \"deductions\": {\n      \"tax\": 18500,\n      \"pension\": 10000\n    },\n    \"attendanceDays\": 21,\n    \"totalDays\": 22,\n    \"unpaidLeaveDays\": 0,\n    \"latenessCount\": 1,\n    \"createdAt\": \"2026-10-02T14:05:00.000Z\"\n  }\n}"
        }
      ]
    }
  ]
}