> ## Client identification
>
> Requests to this API should include a `Client-Platform` header alongside
> `Authorization`, identifying the application, tool, or model making the
> request. This is used for integration support and analytics.
>
> Use your model or tool name, for example `claude-code` or `chatgpt`.
>
> Example:
>
> ```bash
> curl https://api.salaryboxapp.com/... \
>   -H "Authorization: Api-Key <api-key>" \
>   -H "Client-Platform: claude-code"
> ```

# Fetch Employee ID Settings

GET https://api.salaryboxapp.com/v2/customer/v1/company/employee-id-config

Returns how SalaryBox numbers new staff automatically (the Employee ID settings in the app), so you know whether to send an `employee_id` when you add a staff member. Not paginated, no parameters. If the settings were never saved, the app's defaults are shown, switched off. Change them with Update Employee ID Settings.

- `next_employee_id` is the ID the next new staff member will get, for example `EMP0042`. It is `null` unless `enabled` and `available_on_plan` are both `true`.
- When `next_employee_id` is not `null`, Add Staff assigns the `employee_id` automatically.


Reference: https://docs.salarybox.in/api-reference/company/employee-id-config-retrieve

## Authentication

- `Authorization` header (required) (prefixed with ` Api-Key   `) — Format: "Api-Key \{api-key}"

## Response

### 200

- `message` (string, required)
- `status` (boolean, required)
- `data` (EmployeeIdConfigResponseData, required)

## Types

### EmployeeIdConfigResponseData

- `enabled` (boolean, required) — Automatic numbering is switched on in the app.
- `available_on_plan` (boolean, required) — The plan includes auto-generated employee IDs.
- `prefix` (string, required) — Letters put before the number, for example `EMP`. Empty when there is none.
- `next_number` (integer, required) — The number the next new staff member gets.
- `padding` (integer, required) — Digits the number is zero-padded to.
- `next_employee_id` (string, required, nullable) — The employee ID the next new staff member will get, for example `EMP0042`. `null` unless `enabled` and `available_on_plan` are both `true`. When it is not `null`, Add Staff assigns the `employee_id` automatically.

## Examples

**Response**

```json
{
  "message": "Data retrieved successfully",
  "status": true,
  "data": {
    "enabled": true,
    "available_on_plan": true,
    "prefix": "EMP",
    "next_number": 42,
    "padding": 4,
    "next_employee_id": "EMP0042"
  }
}
```

**SDK Code**

```python Example
import requests

url = "https://api.salaryboxapp.com/v2/customer/v1/company/employee-id-config"

headers = {"Authorization": "Api-Key  <apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Example
const url = 'https://api.salaryboxapp.com/v2/customer/v1/company/employee-id-config';
const options = {method: 'GET', headers: {Authorization: 'Api-Key  <apiKey>'}};

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

```go Example
package main

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

func main() {

	url := "https://api.salaryboxapp.com/v2/customer/v1/company/employee-id-config"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Api-Key  <apiKey>")

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

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

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

}
```

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

url = URI("https://api.salaryboxapp.com/v2/customer/v1/company/employee-id-config")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Api-Key  <apiKey>'

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

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

HttpResponse<String> response = Unirest.get("https://api.salaryboxapp.com/v2/customer/v1/company/employee-id-config")
  .header("Authorization", "Api-Key  <apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.salaryboxapp.com/v2/customer/v1/company/employee-id-config', [
  'headers' => [
    'Authorization' => 'Api-Key  <apiKey>',
  ],
]);

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

```csharp Example
using RestSharp;

var client = new RestClient("https://api.salaryboxapp.com/v2/customer/v1/company/employee-id-config");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Api-Key  <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Example
import Foundation

let headers = ["Authorization": "Api-Key  <apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.salaryboxapp.com/v2/customer/v1/company/employee-id-config")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```