---
updatedAt: 2026-01-27T10:22:17.000Z
agentTools:
  siteIndex: https://developer.paylocity.com/llms.txt
  projectIndex: https://developer.paylocity.com/integrations/llms.txt
---

# Create New Payroll Batch

**Summary Description**

 The Pay Entry API allows API users to interface with Paylocity�s HR & Payroll module, specifically within the 'Run Payroll' feature. This API allows users to submit new payroll batches for a specified check date. The endpoint accepts summarized payroll data, allowing API users to import data from third-party systems.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Pay Entry",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://dc1demogwext.paylocity.com"
    }
  ],
  "paths": {
    "/apihub/payroll/v2/companies/{companyId}/payEntryImport": {
      "post": {
        "tags": [
          "Pay Entry"
        ],
        "description": "**Summary Description**\n\n The Pay Entry API allows API users to interface with Paylocity�s HR & Payroll module, specifically within the 'Run Payroll' feature. This API allows users to submit new payroll batches for a specified check date. The endpoint accepts summarized payroll data, allowing API users to import data from third-party systems.",
        "summary": "Create New Payroll Batch",
        "x-explorer-enabled": false,
        "operationId": "PayEntryV2_POSTPayEntryImport",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "description": "The Paylocity Company Identifier. This is the unique value provided by Paylocity to each specific Payroll Entity",
            "required": true,
            "schema": {}
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Bearer token",
            "required": true,
            "schema": {}
          }
        ],
        "requestBody": {
          "description": "pay entry request body",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PayEntry"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessResponse"
                }
              }
            }
          },
          "400": {
            "description": "invalid body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          },
          "403": {
            "description": "forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    }
  },
  "components": {
    "schemas": {
      "PayEntry": {
        "type": "object",
        "properties": {
          "autoAcknowledge": {
            "type": "boolean",
            "description": "Auto Acknowledge the batch (True/False)"
          },
          "batchName": {
            "type": "string",
            "description": "Name for the Payroll Batch you are creating"
          },
          "mergeBatchId": {
            "type": "integer",
            "format": "int32",
            "description": "Merge Batch"
          },
          "payPeriodBeginDate": {
            "type": "string",
            "format": "date-time",
            "description": "Pay Period Begin Date"
          },
          "payPeriodEndDate": {
            "type": "string",
            "format": "date-time",
            "description": "Pay Period End Date"
          },
          "checkDate": {
            "type": "string",
            "format": "date-time",
            "description": "Check Date for Payroll"
          },
          "checkType": {
            "type": "string",
            "description": "Check Type"
          },
          "payEntries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PayEntries"
            }
          }
        }
      },
      "PayEntries": {
        "type": "object",
        "properties": {
          "employeeId": {
            "type": "string",
            "description": "The employee's employee ID."
          },
          "det": {
            "type": "string",
            "description": "Identifies the type of record being imported. May be 'E' for earning, 'D' for deduction and 'A' for accrual balances."
          },
          "detCode": {
            "type": "string",
            "description": "The earning or deduction code. This must be a code currently defined on the company-level in Paylocity."
          },
          "hours": {
            "type": "string",
            "description": "The number of hours worked by the employee, or the used accrual hours."
          },
          "amount": {
            "type": "string",
            "description": "The dollar amount to pay the employee or the available accrual hours. If an amount is entered, any information entered in the hours, rate, and rateCode fields are ignored."
          },
          "tempRate": {
            "type": "string",
            "description": "Rate"
          },
          "rateCode": {
            "type": "string",
            "description": "The employee�s pay rate. If no rate is entered, the employees base rate will be used."
          },
          "costCenter1": {
            "type": "string",
            "description": "This field is used to enter an override value for the first-level cost center charged by the employee."
          },
          "costCenter2": {
            "type": "string",
            "description": "This field is used to enter an override value for the second-level cost center charged by the employee."
          },
          "costCenter3": {
            "type": "string",
            "description": "This field is used to enter an override value for the third-level cost center charged by the employee."
          },
          "jobCode": {
            "type": "string",
            "description": "This field is used to enter an override company-defined job code to be charged by the employee."
          },
          "shift": {
            "type": "string",
            "description": "This field is used to enter an override company-defined shift code to be charged by the employee."
          },
          "beginDate": {
            "type": "string",
            "description": "Begin Date associated with this line item"
          },
          "endDate": {
            "type": "string",
            "description": "End Date associated with this line item"
          },
          "workersCompCode": {
            "type": "string",
            "description": "The company defined workers comp code for work performed by the employee."
          },
          "sequence": {
            "type": "string",
            "description": "This field is used to indicate multiple checks. For example, if an employee should have two checks, then the entries which should create the first check will have a sequence of 1. The second check will have a sequence of 2. Sequence may be any number between 1-9."
          },
          "checkType": {
            "type": "string",
            "description": "This field is used to indicate an override check Type."
          },
          "checkNumber": {
            "type": "string",
            "description": "This field is used to indicate an override check Number. It is only valid when check Type is Manual. Check number for regular checks is assigned during processing."
          }
        }
      },
      "SuccessResponse": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string"
          },
          "timeImportFileTrackingId": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "Fields": {
            "type": "string"
          },
          "Code": {
            "type": "integer",
            "format": "int32"
          },
          "Message": {
            "type": "string"
          }
        }
      },
      "Unauthorized": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "Code": {
              "type": "integer",
              "format": "int32"
            },
            "ErrorId": {
              "type": "string"
            },
            "Message": {
              "type": "string"
            }
          }
        }
      },
      "Forbidden": {
        "type": "object",
        "properties": {
          "Code": {
            "type": "integer",
            "format": "int32"
          },
          "ErrorId": {
            "type": "string"
          },
          "Message": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```