> This page is for HR.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://paylocity.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://paylocity.ferndocs.com/_mcp/server.

# Create Job Code

POST https://api.paylocity.com/apiHub/payroll/v1/companies/{companyId}/jobs
Content-Type: application/json

**Summary Description**

The POST Single Job Code endpoint enables users to create precise values regarding Job Codes from the Paylocity instance of a client. In order to utilize this endpoint, it is necessary to provide the payload values in accordance with the established standards of the Paylocity API, as specified for the respective object type and description. It is required to provide the Company ID in the endpoint and the specifications of the Job Code in the payload body

**Use Cases**

- This API endpoint will allow an API user to create a Job Code record for a specific company ID
- Job Codes must be added before running payroll


Reference: https://paylocity.ferndocs.com/hr/api-reference/latest/paylocity-ap-is/company-level-information-job-codes/create-job-code

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `companyId` (string, required)

## Response

### 200

Successful response

## Examples

**Request**

```json
{
  "code": "<string>",
  "description": "<string>",
  "isActive": "<boolean>",
  "isCertified": "<boolean>",
  "payEntry": {
    "shift": "<string>",
    "rateCode": "<string>",
    "rate": "<double>",
    "addingRateConstant": "<double>",
    "multiplyingRateConstant": "<double>",
    "workerComputedCode": "<string>",
    "tax": {
      "state": "<string>",
      "local1": "<string>",
      "local2": "<string>",
      "local3": "<string>"
    },
    "dolore_334": {},
    "in_b": {}
  },
  "address": {
    "line1": "<string>",
    "line2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip": "<string>",
    "county": "<string>",
    "country": "<string>"
  },
  "payrollBasedJournal": {
    "jobTitleCode": "<string>",
    "facilityId": "<string>",
    "stateId": "<string>",
    "commodo_16": {},
    "veniam44": {},
    "eiusmod7d": {}
  }
}
```

**Response**

```json
{}
```

**SDK Code**

```python
import requests

url = "https://api.paylocity.com/apiHub/payroll/v1/companies/companyId/jobs"

payload = {
    "code": "<string>",
    "description": "<string>",
    "isActive": "<boolean>",
    "isCertified": "<boolean>",
    "payEntry": {
        "shift": "<string>",
        "rateCode": "<string>",
        "rate": "<double>",
        "addingRateConstant": "<double>",
        "multiplyingRateConstant": "<double>",
        "workerComputedCode": "<string>",
        "tax": {
            "state": "<string>",
            "local1": "<string>",
            "local2": "<string>",
            "local3": "<string>"
        },
        "dolore_334": {},
        "in_b": {}
    },
    "address": {
        "line1": "<string>",
        "line2": "<string>",
        "city": "<string>",
        "state": "<string>",
        "zip": "<string>",
        "county": "<string>",
        "country": "<string>"
    },
    "payrollBasedJournal": {
        "jobTitleCode": "<string>",
        "facilityId": "<string>",
        "stateId": "<string>",
        "commodo_16": {},
        "veniam44": {},
        "eiusmod7d": {}
    }
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.paylocity.com/apiHub/payroll/v1/companies/companyId/jobs';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"code":"<string>","description":"<string>","isActive":"<boolean>","isCertified":"<boolean>","payEntry":{"shift":"<string>","rateCode":"<string>","rate":"<double>","addingRateConstant":"<double>","multiplyingRateConstant":"<double>","workerComputedCode":"<string>","tax":{"state":"<string>","local1":"<string>","local2":"<string>","local3":"<string>"},"dolore_334":{},"in_b":{}},"address":{"line1":"<string>","line2":"<string>","city":"<string>","state":"<string>","zip":"<string>","county":"<string>","country":"<string>"},"payrollBasedJournal":{"jobTitleCode":"<string>","facilityId":"<string>","stateId":"<string>","commodo_16":{},"veniam44":{},"eiusmod7d":{}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.paylocity.com/apiHub/payroll/v1/companies/companyId/jobs"

	payload := strings.NewReader("{\n  \"code\": \"<string>\",\n  \"description\": \"<string>\",\n  \"isActive\": \"<boolean>\",\n  \"isCertified\": \"<boolean>\",\n  \"payEntry\": {\n    \"shift\": \"<string>\",\n    \"rateCode\": \"<string>\",\n    \"rate\": \"<double>\",\n    \"addingRateConstant\": \"<double>\",\n    \"multiplyingRateConstant\": \"<double>\",\n    \"workerComputedCode\": \"<string>\",\n    \"tax\": {\n      \"state\": \"<string>\",\n      \"local1\": \"<string>\",\n      \"local2\": \"<string>\",\n      \"local3\": \"<string>\"\n    },\n    \"dolore_334\": {},\n    \"in_b\": {}\n  },\n  \"address\": {\n    \"line1\": \"<string>\",\n    \"line2\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"zip\": \"<string>\",\n    \"county\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"payrollBasedJournal\": {\n    \"jobTitleCode\": \"<string>\",\n    \"facilityId\": \"<string>\",\n    \"stateId\": \"<string>\",\n    \"commodo_16\": {},\n    \"veniam44\": {},\n    \"eiusmod7d\": {}\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.paylocity.com/apiHub/payroll/v1/companies/companyId/jobs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"code\": \"<string>\",\n  \"description\": \"<string>\",\n  \"isActive\": \"<boolean>\",\n  \"isCertified\": \"<boolean>\",\n  \"payEntry\": {\n    \"shift\": \"<string>\",\n    \"rateCode\": \"<string>\",\n    \"rate\": \"<double>\",\n    \"addingRateConstant\": \"<double>\",\n    \"multiplyingRateConstant\": \"<double>\",\n    \"workerComputedCode\": \"<string>\",\n    \"tax\": {\n      \"state\": \"<string>\",\n      \"local1\": \"<string>\",\n      \"local2\": \"<string>\",\n      \"local3\": \"<string>\"\n    },\n    \"dolore_334\": {},\n    \"in_b\": {}\n  },\n  \"address\": {\n    \"line1\": \"<string>\",\n    \"line2\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"zip\": \"<string>\",\n    \"county\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"payrollBasedJournal\": {\n    \"jobTitleCode\": \"<string>\",\n    \"facilityId\": \"<string>\",\n    \"stateId\": \"<string>\",\n    \"commodo_16\": {},\n    \"veniam44\": {},\n    \"eiusmod7d\": {}\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.paylocity.com/apiHub/payroll/v1/companies/companyId/jobs")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"code\": \"<string>\",\n  \"description\": \"<string>\",\n  \"isActive\": \"<boolean>\",\n  \"isCertified\": \"<boolean>\",\n  \"payEntry\": {\n    \"shift\": \"<string>\",\n    \"rateCode\": \"<string>\",\n    \"rate\": \"<double>\",\n    \"addingRateConstant\": \"<double>\",\n    \"multiplyingRateConstant\": \"<double>\",\n    \"workerComputedCode\": \"<string>\",\n    \"tax\": {\n      \"state\": \"<string>\",\n      \"local1\": \"<string>\",\n      \"local2\": \"<string>\",\n      \"local3\": \"<string>\"\n    },\n    \"dolore_334\": {},\n    \"in_b\": {}\n  },\n  \"address\": {\n    \"line1\": \"<string>\",\n    \"line2\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"zip\": \"<string>\",\n    \"county\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"payrollBasedJournal\": {\n    \"jobTitleCode\": \"<string>\",\n    \"facilityId\": \"<string>\",\n    \"stateId\": \"<string>\",\n    \"commodo_16\": {},\n    \"veniam44\": {},\n    \"eiusmod7d\": {}\n  }\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.paylocity.com/apiHub/payroll/v1/companies/companyId/jobs', [
  'body' => '{
  "code": "<string>",
  "description": "<string>",
  "isActive": "<boolean>",
  "isCertified": "<boolean>",
  "payEntry": {
    "shift": "<string>",
    "rateCode": "<string>",
    "rate": "<double>",
    "addingRateConstant": "<double>",
    "multiplyingRateConstant": "<double>",
    "workerComputedCode": "<string>",
    "tax": {
      "state": "<string>",
      "local1": "<string>",
      "local2": "<string>",
      "local3": "<string>"
    },
    "dolore_334": {},
    "in_b": {}
  },
  "address": {
    "line1": "<string>",
    "line2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip": "<string>",
    "county": "<string>",
    "country": "<string>"
  },
  "payrollBasedJournal": {
    "jobTitleCode": "<string>",
    "facilityId": "<string>",
    "stateId": "<string>",
    "commodo_16": {},
    "veniam44": {},
    "eiusmod7d": {}
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.paylocity.com/apiHub/payroll/v1/companies/companyId/jobs");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"code\": \"<string>\",\n  \"description\": \"<string>\",\n  \"isActive\": \"<boolean>\",\n  \"isCertified\": \"<boolean>\",\n  \"payEntry\": {\n    \"shift\": \"<string>\",\n    \"rateCode\": \"<string>\",\n    \"rate\": \"<double>\",\n    \"addingRateConstant\": \"<double>\",\n    \"multiplyingRateConstant\": \"<double>\",\n    \"workerComputedCode\": \"<string>\",\n    \"tax\": {\n      \"state\": \"<string>\",\n      \"local1\": \"<string>\",\n      \"local2\": \"<string>\",\n      \"local3\": \"<string>\"\n    },\n    \"dolore_334\": {},\n    \"in_b\": {}\n  },\n  \"address\": {\n    \"line1\": \"<string>\",\n    \"line2\": \"<string>\",\n    \"city\": \"<string>\",\n    \"state\": \"<string>\",\n    \"zip\": \"<string>\",\n    \"county\": \"<string>\",\n    \"country\": \"<string>\"\n  },\n  \"payrollBasedJournal\": {\n    \"jobTitleCode\": \"<string>\",\n    \"facilityId\": \"<string>\",\n    \"stateId\": \"<string>\",\n    \"commodo_16\": {},\n    \"veniam44\": {},\n    \"eiusmod7d\": {}\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "code": "<string>",
  "description": "<string>",
  "isActive": "<boolean>",
  "isCertified": "<boolean>",
  "payEntry": [
    "shift": "<string>",
    "rateCode": "<string>",
    "rate": "<double>",
    "addingRateConstant": "<double>",
    "multiplyingRateConstant": "<double>",
    "workerComputedCode": "<string>",
    "tax": [
      "state": "<string>",
      "local1": "<string>",
      "local2": "<string>",
      "local3": "<string>"
    ],
    "dolore_334": [],
    "in_b": []
  ],
  "address": [
    "line1": "<string>",
    "line2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip": "<string>",
    "county": "<string>",
    "country": "<string>"
  ],
  "payrollBasedJournal": [
    "jobTitleCode": "<string>",
    "facilityId": "<string>",
    "stateId": "<string>",
    "commodo_16": [],
    "veniam44": [],
    "eiusmod7d": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.paylocity.com/apiHub/payroll/v1/companies/companyId/jobs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```