APIHub
Back to Explore

Paylocity API

For general questions and support of the API, contact: webservices@paylocity.com # Overview Paylocity Web Services API is an externally facing RESTful Internet protocol. The Paylocity API uses HTTP verbs and a RESTful endpoint structure. OAuth 2.0 is used as the API Authorization framework. Request and response payloads are formatted as JSON. Paylocity supports v1 and v2 versions of its API endpoi

Finance
OAuth
HTTPS
CORS: Unknown
Visit official documentation

Latency

Not monitored yet

Uptime

Not monitored yet

Playground

Verified

live

Endpoints

REST · JSON
PUT

/v2/companies/{companyId}/employees/{employeeId}/earnings

Add/Update Earning

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
GET

/v2/companies/{companyId}/codes/{codeResource}

Get All Company Codes

  • companyId (path, required) — Company Id
  • codeResource (path, required) — Type of Company Code. Common values costcenter1, costcenter2, costcenter3, deductions, earnings, taxes, paygrade, positions.
GET

/v2/companies/{companyId}/customfields/{category}

Get All Custom Fields

  • companyId (path, required) — Company Id
  • category (path, required) — Custom Fields Category
POST

/v2/companies/{companyId}/employees

Add new employee

  • companyId (path, required) — Company Id
GET

/v2/companies/{companyId}/employees/

Get all employees

  • companyId (path, required) — Company Id
  • pagesize (query, limit) — Number of records per page. Default value is 25.
  • pagenumber (query, page) — Page number to retrieve; page numbers are 0-based (so to get the first page of results, pass pagenumber=0). Default value is 0.
  • includetotalcount (query) — Whether to include the total record count in the header's X-Pcty-Total-Count property. Default value is true.
GET

/v2/companies/{companyId}/employees/{employeeId}

Get employee

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
PATCH

/v2/companies/{companyId}/employees/{employeeId}

Update employee

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
PUT

/v2/companies/{companyId}/employees/{employeeId}/additionalRates

Add/update additional rates

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
PUT

/v2/companies/{companyId}/employees/{employeeId}/benefitSetup

Add/update employee's benefit setup

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
GET

/v2/companies/{companyId}/employees/{employeeId}/directDeposit

Get All Direct Deposit

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
GET

/v2/companies/{companyId}/employees/{employeeId}/earnings

Get All Earnings

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
GET

/v2/companies/{companyId}/employees/{employeeId}/earnings/{earningCode}

Get Earnings by Earning Code

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
  • earningCode (path, required) — Earning Code
DELETE

/v2/companies/{companyId}/employees/{employeeId}/earnings/{earningCode}/{startDate}

Delete Earning by Earning Code and Start Date

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
  • earningCode (path, required) — Earning Code
  • startDate (path, required) — Start Date
GET

/v2/companies/{companyId}/employees/{employeeId}/earnings/{earningCode}/{startDate}

Get Earning by Earning Code and Start Date

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
  • earningCode (path, required) — Earning Code
  • startDate (path, required) — Start Date
PUT

/v2/companies/{companyId}/employees/{employeeId}/emergencyContacts

Add/update emergency contacts

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
GET

/v2/companies/{companyId}/employees/{employeeId}/localTaxes

Get all local taxes

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
POST

/v2/companies/{companyId}/employees/{employeeId}/localTaxes

Add new local tax

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
DELETE

/v2/companies/{companyId}/employees/{employeeId}/localTaxes/{taxCode}

Delete local tax by tax code

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
  • taxCode (path, required) — Tax Code
GET

/v2/companies/{companyId}/employees/{employeeId}/localTaxes/{taxCode}

Get local taxes by tax code

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
  • taxCode (path, required) — Tax Code
PUT

/v2/companies/{companyId}/employees/{employeeId}/nonprimaryStateTax

Add/update non-primary state tax

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
GET

/v2/companies/{companyId}/employees/{employeeId}/paystatement/details/{year}

Get employee pay statement details data for the specified year.

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
  • year (path, required) — The year for which to retrieve pay statement data
  • pagesize (query, limit) — Number of records per page. Default value is 25.
  • pagenumber (query, page) — Page number to retrieve; page numbers are 0-based (so to get the first page of results, pass pagenumber=0). Default value is 0.
  • includetotalcount (query) — Whether to include the total record count in the header's X-Pcty-Total-Count property. Default value is true.
  • codegroup (query) — Retrieve pay statement details related to specific deduction, earning or tax types. Common values include 401k, Memo, Reg, OT, Cash Tips, FED and SITW.
GET

/v2/companies/{companyId}/employees/{employeeId}/paystatement/details/{year}/{checkDate}

Get employee pay statement details data for the specified year and check date.

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
  • year (path, required) — The year for which to retrieve pay statement data
  • checkDate (path, required) — The check date for which to retrieve pay statement data
  • pagesize (query, limit) — Number of records per page. Default value is 25.
  • pagenumber (query, page) — Page number to retrieve; page numbers are 0-based (so to get the first page of results, pass pagenumber=0). Default value is 0.
  • includetotalcount (query) — Whether to include the total record count in the header's X-Pcty-Total-Count property. Default value is true.
  • codegroup (query) — Retrieve pay statement details related to specific deduction, earning or tax types. Common values include 401k, Memo, Reg, OT, Cash Tips, FED and SITW.
GET

/v2/companies/{companyId}/employees/{employeeId}/paystatement/summary/{year}

Get employee pay statement summary data for the specified year.

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
  • year (path, required) — The year for which to retrieve pay statement data
  • pagesize (query, limit) — Number of records per page. Default value is 25.
  • pagenumber (query, page) — Page number to retrieve; page numbers are 0-based (so to get the first page of results, pass pagenumber=0). Default value is 0.
  • includetotalcount (query) — Whether to include the total record count in the header's X-Pcty-Total-Count property. Default value is true.
  • codegroup (query) — Retrieve pay statement details related to specific deduction, earning or tax types. Common values include 401k, Memo, Reg, OT, Cash Tips, FED and SITW.
GET

/v2/companies/{companyId}/employees/{employeeId}/paystatement/summary/{year}/{checkDate}

Get employee pay statement summary data for the specified year and check date.

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
  • year (path, required) — The year for which to retrieve pay statement data
  • checkDate (path, required) — The check date for which to retrieve pay statement data
  • pagesize (query, limit) — Number of records per page. Default value is 25.
  • pagenumber (query, page) — Page number to retrieve; page numbers are 0-based (so to get the first page of results, pass pagenumber=0). Default value is 0.
  • includetotalcount (query) — Whether to include the total record count in the header's X-Pcty-Total-Count property. Default value is true.
  • codegroup (query) — Retrieve pay statement details related to specific deduction, earning or tax types. Common values include 401k, Memo, Reg, OT, Cash Tips, FED and SITW.
PUT

/v2/companies/{companyId}/employees/{employeeId}/primaryStateTax

Add/update primary state tax

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
GET

/v2/companies/{companyId}/employees/{employeeId}/sensitivedata

Get sensitive data

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
PUT

/v2/companies/{companyId}/employees/{employeeId}/sensitivedata

Add/update sensitive data

  • companyId (path, required) — Company Id
  • employeeId (path, required) — Employee Id
GET

/v2/companies/{companyId}/openapi

Get Company-Specific Open API Documentation

  • Authorization (header, required) — Bearer + JWT
  • companyId (path, required) — Company Id
POST

/v2/credentials/secrets

Obtain new client secret.

POST

/v2/weblinkstaging/companies/{companyId}/employees/newemployees

Add new employee to Web Link

  • companyId (path, required) — Company Id

30 endpoints auto-detected

Authentication

This API requires authentication: OAuth.

curl -X PUT \
  "https://api.paylocity.com/api/v2/companies/{companyId}/employees/{employeeId}/earnings"

api.paylocity.com · HTTPS only