---
title: "Retrieve a benefit"
url: "https://docs.unified.to/hris/benefit/Retrieve_a_benefit"
description: "API reference for Retrieve a benefit. Launch multiple pre-built Benefit integrations today with zero maintenance — all through a single API."
generated_at: "2026-05-21T13:55:11.811Z"
---
# Retrieve a benefit

 GET/hris/{connection\_id}/benefit/{id}

## Parameters

**fields**string array 

id

created\_at

updated\_at

name

description

company\_id

type

tax

frequency

is\_active

employer\_contribution\_type

employer\_contribution\_amount

employer\_contribution\_max\_amount

coverage\_level

currency

raw

Fields to return

**raw**string 

Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar

**connection\_id**string  required 

ID of the connection

**id**string  required 

ID of the Benefit

## Returns

[HrisBenefit](/hris/benefit/model)

Company-wide benefit plans available to employees.

**id**string 

**created\_at**date 

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**updated\_at**date 

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

**name**string 

e.g. "401(k) Plan"

**description**string 

e.g. "Company 401(k) retirement plan"

**company\_id**string 

(reference to HrisCompany)

**type** enum

Valid values:

 "RETIREMENT" 

 "HEALTH" 

 "DENTAL" 

 "VISION" 

 "LIFE" 

**tax** enum

Valid values:

 "PRE\_TAX" 

 "POST\_TAX" 

 "TAXABLE" 

 "NON\_TAXABLE" 

 "TAX" 

Tax describes the tax treatment of the benefit

**frequency** enum

Valid values:

 "ONE\_TIME" 

 "DAY" 

 "QUARTER" 

 "YEAR" 

 "HOUR" 

Frequency that costs accrue for this benefit. For insurance/benefits, usually "MONTHLY". For compensation, matches pay cycle (WEEKLY, BIWEEKLY, etc).

**is\_active**boolean 

**employer\_contribution\_type** enum

Valid values:

 "PERCENTAGE" 

 "FIXED" 

**employer\_contribution\_amount**number 

percentage or money

**employer\_contribution\_max\_amount**number 

always money

**coverage\_level** enum

Valid values:

 "EMPLOYEE\_ONLY" 

 "EMPLOYEE\_SPOUSE" 

 "EMPLOYEE\_CHILD" 

 "EMPLOYEE\_CHILDREN" 

 "EMPLOYEE\_FAMILY" 

**currency**string 

**raw**any 

## Code Samples

### Node.js SDK

```
import { UnifiedTo } from '@unified-api/typescript-sdk';

const sdk = new UnifiedTo({
    security: {
        jwt: '<YOUR_API_KEY_HERE>',
    },
});

const connectionId = '5de520f96e439b002043d8dc';

const id = '1234';

const results = await sdk.hris.getHrisBenefit({ connectionId, id, 
    fields: '',
    raw: '',
 });
```

### Node.js (axios)

```
const options = {
  method: 'GET',
  url: 'https://api.unified.to/hris/5de520f96e439b002043d8dc/benefit/5de520f96e439b002043d8d8',
  headers: {
    authorization: 'bearer .....'
  },
  params: {
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
```

### Java

```
AsyncHttpClient client = new DefaultAsyncHttpClient();

client.prepare("GET", "https://api.unified.to/hris/5de520f96e439b002043d8dc/benefit/5de520f96e439b002043d8d8?fields=&raw=")
  .setHeader("accept", "application/json")
  .setHeader("authorization", ".....")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
```

### Go

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

url := `https://api.unified.to/hris/5de520f96e439b002043d8dc/benefit/5de520f96e439b002043d8d8?fields=&raw=

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

req.Header.Add("accept", "application/json")
req.Header.Add("authorization", ".....")

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

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

### Python

```
import requests

url = "https://api.unified.to/hris/5de520f96e439b002043d8dc/benefit/5de520f96e439b002043d8d8?fields=&raw="

headers = {
    "accept": "application/json",
    "authorization": "....."
}

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

### PHP

```
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.unified.to/hris/5de520f96e439b002043d8dc/benefit/5de520f96e439b002043d8d8?fields=&raw=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: application/json",
    "authorization: ....."
  ],
]);
```

### Ruby

```
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://api.unified.to/hris/5de520f96e439b002043d8dc/benefit/5de520f96e439b002043d8d8?fields=&raw=")

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

request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["authorization"] = '....'

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

### cURL

```
curl --request GET \
  --url 'https://api.unified.to/hris/5de520f96e439b002043d8dc/benefit/5de520f96e439b002043d8d8?fields=&raw=' \
  --header 'accept: application/json' \
  --header 'authorization: .....'
```
