---
updatedAt: 2026-05-20T13:36:26.000Z
agentTools:
  projectIndex: https://developers.getknit.dev/llms.txt
---

# Employee Payroll API

Get payroll statement for a month for an employee

> 📘 Specify either the `month` or `startDate` and `endDate`
>
> You have two options to pass the time range:
>
> * `month`: For example, 2022-05. It would fetch the list of pay runs for that month
> * `startDate` and `endDate`: It would fetch the list of pay runs within the range

### Supported Apps

Here are the list of apps that support this API.

<Accordion title="Darwinbox (darwinbox)">
You must provide the `month` parameter

Does not support `startDate` and `endDate`
</Accordion>

<Accordion title="Keka HR (keka)">
</Accordion>

<Accordion title="GreytHR (greythr)">
You must provide the `month` parameter

Does not support `startDate` and `endDate`
</Accordion>

<Accordion title="Zoho People (zoho-people)">
</Accordion>

<Accordion title="RazorpayX Payroll (razorpayx-payroll)">
You must provide the `month` parameter

Does not support `startDate` and `endDate`
</Accordion>

<Accordion title="Paychex (paychex)">
</Accordion>

<Accordion title="SAP SuccessFactors (successfactors)">
</Accordion>

<Accordion title="Workday (workday)">
</Accordion>

<Accordion title="ADP Run (adp-run)">
</Accordion>

<Accordion title="UKG Pro (ukgpro-hris)">
</Accordion>

<Accordion title="Paycor (paycor)">
</Accordion>

<Accordion title="Ceredian Dayforce (ceridianDayforce)">
</Accordion>

<Accordion title="Oracle HCM (oracle-hcm)">
</Accordion>

<Accordion title="People HR (peopleHR)">
</Accordion>

<Accordion title="PrismHR (prismhr)">
Refer api specific guides - [PrismHR API Guide](https://developers.getknit.dev/docs/prismhr-api-guides)
</Accordion>

<Accordion title="Avionte (avionte)">
</Accordion>

<Accordion title="Quickbooks Payroll (quickbooks-payroll)">
  **Supported Request Fields:**
 
  * `employeeId` - Required
  * `startDate` - Required
  * `endDate` - Required
  * `originData`

  **Supported Response Fields:**

  * `payroll`
  * `payroll.employeeId`
  * `payslips.grossPay`
  * `payslips.netPay`
  * `payslips.processedDate`
  * `payslips.payDate`
  * `payslips.payPeriodStartDate`
  * `payslips.payPeriodEndDate`
  * `payslips.earnings.type`
  * `payslips.earnings.amount`
  * `payslips.deductions.type`
  * `payslips.deductions.amount`
  * `originData`
</Accordion>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "base-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.getknit.dev/v1.0"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      },
      "sec1": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Knit-Integration-Id"
      }
    }
  },
  "security": [
    {
      "sec0": [],
      "sec1": []
    }
  ],
  "paths": {
    "/hr.employees.payroll.get": {
      "get": {
        "summary": "Employee Payroll API",
        "description": "Get payroll statement for a month for an employee",
        "operationId": "employee-payroll-api",
        "parameters": [
          {
            "name": "employeeId",
            "in": "query",
            "description": "The employee id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "month",
            "in": "query",
            "description": "Month in yyyy-mm format",
            "schema": {
              "type": "string",
              "default": "2022-05"
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "originData",
            "in": "query",
            "description": "If `true`, we will include origin API response in the return. Default value is `false`",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": true,\n  \"data\": {\n    \"payroll\": [\n      {\n        \"employeeId\": \"e12613dsf\",\n        \"grossPay\": 11000.0,\n        \"netPay\": 8800.0,\n        \"processedDate\": \"2023-01-01T00:00:00Z\",\n        \"payDate\": \"2023-01-01T00:00:00Z\",\n        \"payPeriodStartDate\": \"2023-01-01T00:00:00Z\",\n        \"payPeriodEndDate\": \"2023-01-01T00:00:00Z\",\n        \"earnings\": [\n          {\n            \"type\": \"BASIC\",\n            \"amount\": 100000.0\n          },\n          {\n            \"type\": \"LTA\",\n            \"amount\": 10000.0\n          }\n        ],\n        \"contributions\": [\n          {\n            \"type\": \"PF\",\n            \"amount\": 10000.0\n          },\n          {\n            \"type\": \"MEDICAL_INSURANCE\",\n            \"amount\": 10000.0\n          }\n        ],\n        \"deductions\": [\n          {\n            \"type\": \"PROF_TAX\",\n            \"amount\": 200.0\n          }\n        ]\n      }\n    ]\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "payroll": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "employeeId": {
                                "type": "string",
                                "example": "e12613dsf"
                              },
                              "grossPay": {
                                "type": "integer",
                                "example": 11000,
                                "default": 0
                              },
                              "netPay": {
                                "type": "integer",
                                "example": 8800,
                                "default": 0
                              },
                              "processedDate": {
                                "type": "string",
                                "example": "2023-01-01T00:00:00Z"
                              },
                              "payDate": {
                                "type": "string",
                                "example": "2023-01-01T00:00:00Z"
                              },
                              "payPeriodStartDate": {
                                "type": "string",
                                "example": "2023-01-01T00:00:00Z"
                              },
                              "payPeriodEndDate": {
                                "type": "string",
                                "example": "2023-01-01T00:00:00Z"
                              },
                              "earnings": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "example": "BASIC"
                                    },
                                    "amount": {
                                      "type": "integer",
                                      "example": 100000,
                                      "default": 0
                                    }
                                  }
                                }
                              },
                              "contributions": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "example": "PF"
                                    },
                                    "amount": {
                                      "type": "integer",
                                      "example": 10000,
                                      "default": 0
                                    }
                                  }
                                }
                              },
                              "deductions": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "example": "PROF_TAX"
                                    },
                                    "amount": {
                                      "type": "integer",
                                      "example": 200,
                                      "default": 0
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": false,\n  \"error\": {\n    \"msg\": \"error msg\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "msg": {
                          "type": "string",
                          "example": "error msg"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```