Table of contents

Paylocity offers a variety of solutions and services for HR, IT, and finance teams, from processing payroll to issuing corporate cards to managing assets (e.g., work laptops).
Given the variety of processes Paylocity supports and breadth of data stored in the platform, integrating it with your internal applications or product can unlock significant value.
Weâll break down why thatâs the case by showcasing several examples. But first, letâs walk through the basics of the Paylocity API and how you can authenticate to it.
The Paylocity API consists of endpoints that let you access data and functionality in the human capital management (HCM) solution.Â
You can use it in customer-facing scenarios, where youâre connecting your product to customersâ instances of Paylocity; and internal scenarios, where youâre integrating your organizationâs instance of Paylocity with other internal applications.

Related: How to use Paycor's API
While the endpoints youâll need depend on your integration use case for Paylocity, here are a few commonly-used ones:
âĒ GET /companies â Access details like company name, address, and industry
âĒ GET /employees â Fetch employee records (e.g., names, status, start date, DOB, etc.) in paginated batches
âĒ GET /payroll/batches/{batchId} â Retrieve the processing status for a payroll batch, including completion time and/or any error details
Paylocity currently doesnât provide any information on their rate limits.Â
Youâll need to learn what it is by either contacting Paylocity directly, relying on your 3rd-party integration solution to find out, and/or reading the rate limit details in API response headers (they may not provide this information, but itâs worth confirming).
Paylocity does a great job of laying out their most common error codes and messages to help you build to their endpoints proactively.
Hereâs a look at most of the errors theyâve listed:Â

The majority of these error messages are standard for any API provider, with the exception of 409 Gone (as missing resources usually return a 404 Resource not found error code) and 301 Moved Permanently (you'll only see this during rare events, like API version migrations or endpoint deprecations).
Before you can start using Paylocityâs API endpoints, youâll need to go through a formal approval process.
Namely, youâll need to submit a formal request for their endpoints via their âWeb Services Access Request Form.â The form asks for details like the endpoints you plan to use, the webhook push notifications you'd like to set up, and more.Â
If youâre approved, youâll receive a Client ID and Client Secret via email.Â
The following section breaks down how you can then use these client credentials to authenticate your Paylocity requests successfully.
Note: Certain endpointsâlike those within their LMS APIâalso require you to enter into a formal technology partnership with Paylocity. You can learn more about how you can become a technology partner and the benefits it can provide here.
Here are the steps youâll need to take:
Once youâve received your Client ID and Client Secret from Paylocity, youâll need to get your bearer token.
This requires you to make a request to Paylocityâs /token endpoint: <code class="blog_inline-code">https://dc1prodgwext.paylocity.com/public/security/v1/token</code>
Hereâs how you can format the request for retrieving your token:
Your access token will be provided in the response as an <code class="blog_inline-code">access_token value</code>.
Related: A guide to authenticating to HiBob's API
Your Company ID is the ID you used to login into Paylocity.

Itâs also the same ID youâll see in the upper left-hand corner of your Paylocity portal.Â

Use the bearer token value in the HTTP Header of your API request in the following format:Â <code class="blog_inline-code">Authorization: Bearer INSERT_TOKEN_HERE</code>
Youâll also need to pass in your Company ID as a path parameter in your API requests. For example:Â
Note: The bearer token is short-lived and will expire after 1 hour (youâll see 3600 in the response from the token endpoint)
Letâs highlight a few internal integration examples for Paylocity and then showcase several real-world, customer-facing scenarios.Â
To help your HR team keep employeesâ Paylocity profiles as the single source of truth, you can integrate your performance management platform (e.g., Lattice) with your instance of Paylocity and build the following custom integration: Once a performance review gets submitted in the performance management system, itâs automatically created in the employeeâs associated Paylocity profile.
Each POSTed review can include more context, like the feedback the reviewer shared, in case your HR and leadership teams want to dig deeper on any ratings.

Related: Examples of using the Workday API
To help your IT team learn about incoming hires and pre-board them effectively, you can connect Paylocity to their IT service management (ITSM) tool (e.g., ServiceNow) and build the following custom workflow: Once an employee is created in Paylocity, their profile gets created in the ITSM tool.Â
Based on the data thatâs synced over to a new hireâs profile in your ITSM solution, such as their department, address, and job title, your IT team should know what equipment they need to procure and provision for the new hire.
You can even make this integration bidirectional. That way, as IT makes progress on pre-boarding the new hire, HR can receive updates within Paylocity.Â

Say you offer a product that requires users to make requests that require manager approval.Â
To build this approval functionality in your product quickly, you can integrate with customersâ instances of Paylocity and sync employee informationâincluding hierarchical data (i.e., the employeeâs manager).
OneRange, a marketplace for learning and development, for example, uses integrated hierarchical employee data to facilitate approvals for learning resources (e.g., books).Â
More specifically, whenever an employee requests a learning resource in OneRange, the platform automatically surfaces the request to the employeeâs manager, who can approve or deny the request with the click of a button.

To help you add, update, and remove users in your product on time and without any issues, you can integrate your product with customersâ instances of Paylocity and implement the following auto-provision workflows:Â
You can also customize these workflows.Â
For example, Ramp, a leading financial operations platform, notifies admins when an employee is added in and/or removed from Paylocity.Â
The admin can then go on to add or remove the user with a few clicks in Ramp.

Here are a few tips for using Paylocityâs API effectively:
To that end, you can use a unified API solution, which offers a single, aggregated API that lets you access a whole category of integrations (including HRIS).

Merge, the leading unified API solution, lets you connect Paylocityâalong with 70+ other HRISsâwith your product through its Unified HRIS API.

Merge also provides:
Learn more about how Merge can help you add and support customer-facing HRIS integrations at scale by scheduling a demo with one of our integration experts.