# Paylocity API 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 endpoints. v1, while supported, won't be enhanced with additional functionality. For direct link to v1 documentation, please click [here](https://docs.paylocity.com/weblink/guides/Paylocity_Web_Services_API/v1/Paylocity_Web_Services_API.htm). For additional resources regarding v1/v2 differences and conversion path, please contact webservices@paylocity.com. ##### Setup Paylocity will provide the secure client credentials and set up the scope (type of requests and allowed company numbers). You will receive the unique client id, secret, and Paylocity public key for the data encryption. The secret will expire in 365 days. * Paylocity will send you an e-mail 10 days prior to the expiration date for the current secret. If not renewed, the second e-mail notification will be sent 5 days prior to secret's expiration. Each email will contain the code necessary to renew the client secret. * You can obtain the new secret by calling API endpoint using your current not yet expired credentials and the code that was sent with the notification email. For details on API endpoint, please see Client Credentials section. * Both the current secret value and the new secret value will be recognized during the transition period. After the current secret expires, you must use the new secret. * If you were unable to renew the secret via API endpoint, you can still contact Service and they will email you new secret via secure email. When validating the request, Paylocity API will honor the defaults and required fields set up for the company default New Hire Template as defined in Web Pay. # Authorization Paylocity Web Services API uses OAuth2.0 Authentication with JSON Message Format. All requests of the Paylocity Web Services API require a bearer token which can be obtained by authenticating the client with the Paylocity Web Services API via OAuth 2.0. The client must request a bearer token from the authorization endpoint: auth-server for production: https://api.paylocity.com/IdentityServer/connect/token auth-server for testing: https://apisandbox.paylocity.com/IdentityServer/connect/token Paylocity reserves the right to impose rate limits on the number of calls made to our APIs. Changes to API features/functionality may be made at anytime with or without prior notice. ##### Authorization Header The request is expected to be in the form of a basic authentication request, with the "Authorization" header containing the client-id and client-secret. This means the standard base-64 encoded user:password, prefixed with "Basic" as the value for the Authorization header, where user is the client-id and password is the client-secret. ##### Content-Type Header The "Content-Type" header is required to be "application/x-www-form-urlencoded". ##### Additional Values The request must post the following form encoded values within the request body: grant_type = client_credentials scope = WebLinkAPI ##### Responses Success will return HTTP 200 OK with JSON content: { "access_token": "xxx", "expires_in": 3600, "token_type": "Bearer" } # Encryption Paylocity uses a combination of RSA and AES cryptography. As part of the setup, each client is issued a public RSA key. Paylocity recommends the encryption of the incoming requests as additional protection of the sensitive data. Clients can opt-out of the encryption during the initial setup process. Opt-out will allow Paylocity to process unencrypted requests. The Paylocity Public Key has the following properties: * 2048 bit key size * PKCS1 key format * PEM encoding ##### Properties * key (base 64 encoded): The AES symmetric key encrypted w.

Paylocity API is a finance API from paylocity.com. Requests are authenticated with OAuth. It is served over HTTPS. Its OpenAPI description documents 30 endpoints.

## At a glance

- Category: [Finance](https://www.openparable.com/apis/category/finance)
- Provider: paylocity.com
- Authentication: OAuth
- HTTPS: Yes
- CORS: Not stated
- Base URL: https://api.paylocity.com/api
- Documentation: https://paylocity.com/
- OpenAPI description: https://api.apis.guru/v2/specs/paylocity.com/2/openapi.json
- Version: 2
- Specification updated: 2023-03-06

## Example request

```bash
curl -X GET "https://api.paylocity.com/api/v2/companies/COMPANYID/codes/CODERESOURCE" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

## Endpoints

- `GET /v2/companies/{companyId}/codes/{codeResource}` — Get All Company Codes
- `GET /v2/companies/{companyId}/customfields/{category}` — Get All Custom Fields
- `POST /v2/companies/{companyId}/employees` — Add new employee
- `GET /v2/companies/{companyId}/employees/` — Get all employees
- `GET /v2/companies/{companyId}/employees/{employeeId}` — Get employee
- `PATCH /v2/companies/{companyId}/employees/{employeeId}` — Update employee
- `PUT /v2/companies/{companyId}/employees/{employeeId}/additionalRates` — Add/update additional rates
- `PUT /v2/companies/{companyId}/employees/{employeeId}/benefitSetup` — Add/update employee's benefit setup
- `GET /v2/companies/{companyId}/employees/{employeeId}/directDeposit` — Get All Direct Deposit
- `GET /v2/companies/{companyId}/employees/{employeeId}/earnings` — Get All Earnings
- `PUT /v2/companies/{companyId}/employees/{employeeId}/earnings` — Add/Update Earning
- `GET /v2/companies/{companyId}/employees/{employeeId}/earnings/{earningCode}` — Get Earnings by Earning Code
- `GET /v2/companies/{companyId}/employees/{employeeId}/earnings/{earningCode}/{startDate}` — Get Earning by Earning Code and Start Date
- `DELETE /v2/companies/{companyId}/employees/{employeeId}/earnings/{earningCode}/{startDate}` — Delete Earning by Earning Code and Start Date
- `PUT /v2/companies/{companyId}/employees/{employeeId}/emergencyContacts` — Add/update emergency contacts
- `GET /v2/companies/{companyId}/employees/{employeeId}/localTaxes` — Get all local taxes
- `POST /v2/companies/{companyId}/employees/{employeeId}/localTaxes` — Add new local tax
- `GET /v2/companies/{companyId}/employees/{employeeId}/localTaxes/{taxCode}` — Get local taxes by tax code
- `DELETE /v2/companies/{companyId}/employees/{employeeId}/localTaxes/{taxCode}` — Delete local tax by tax code
- `PUT /v2/companies/{companyId}/employees/{employeeId}/nonprimaryStateTax` — Add/update non-primary state tax
- `GET /v2/companies/{companyId}/employees/{employeeId}/paystatement/details/{year}` — Get employee pay statement details data for the specified year.
- `GET /v2/companies/{companyId}/employees/{employeeId}/paystatement/details/{year}/{checkDate}` — Get employee pay statement details data for the specified year and check date.
- `GET /v2/companies/{companyId}/employees/{employeeId}/paystatement/summary/{year}` — Get employee pay statement summary data for the specified year.
- `GET /v2/companies/{companyId}/employees/{employeeId}/paystatement/summary/{year}/{checkDate}` — Get employee pay statement summary data for the specified year and check date.
- `PUT /v2/companies/{companyId}/employees/{employeeId}/primaryStateTax` — Add/update primary state tax
- `GET /v2/companies/{companyId}/employees/{employeeId}/sensitivedata` — Get sensitive data
- `PUT /v2/companies/{companyId}/employees/{employeeId}/sensitivedata` — Add/update sensitive data
- `GET /v2/companies/{companyId}/openapi` — Get Company-Specific Open API Documentation
- `POST /v2/credentials/secrets` — Obtain new client secret.
- `POST /v2/weblinkstaging/companies/{companyId}/employees/newemployees` — Add new employee to Web Link

## Questions

### Does the Paylocity API API need an API key?

Yes. The Paylocity API API uses OAuth authentication; the documentation explains how to get credentials.

### Does the Paylocity API API support HTTPS?

Yes, the Paylocity API API is served over HTTPS.

### How many endpoints does the Paylocity API API have?

Its OpenAPI description lists 30 endpoints in version 2. All of them are shown on this page.

### What are alternatives to the Paylocity API API?

Other Finance APIs include Stripe, SEC EDGAR Data, Plaid, Fed Treasury, Razorpay IFSC.

## Similar finance APIs

- [Stripe](https://www.openparable.com/apis/stripe): Payment processing, subscriptions, and financial management
- [SEC EDGAR Data](https://www.openparable.com/apis/sec-edgar-data): API to access annual reports of public US companies
- [Plaid](https://www.openparable.com/apis/plaid): Connect with user's bank accounts and access transaction data
- [Fed Treasury](https://www.openparable.com/apis/fed-treasury): U.S. Department of the Treasury Data
- [Razorpay IFSC](https://www.openparable.com/apis/razorpay-ifsc): Indian Financial Systems Code (Bank Branch Codes)
- [Klarna](https://www.openparable.com/apis/klarna): Klarna payment and shopping service
- [Citi](https://www.openparable.com/apis/citi): All Citigroup account and statement data APIs
- [Zoho Books](https://www.openparable.com/apis/zoho-books): Online accounting software, built for your business
- [FRED](https://www.openparable.com/apis/fred): Economic data from the Federal Reserve Bank of St. Louis
- [Polygon](https://www.openparable.com/apis/polygon): Historical stock market data
- [MercadoPago](https://www.openparable.com/apis/mercadopago): Mercado Pago API reference - all the information you need to develop your integrations
- [Open Banking - Payments initiation service](https://www.openparable.com/apis/open-banking-payments-initiation-service): Open Banking - Payments initiation service

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/paylocity (OpenParable). Cite the canonical URL above.
