# Get all social insurance types

Get all social insurance types

## Request

Facts | &nbsp;
---|---
HTTP URL | https://open.feishu.cn/open-apis/compensation/v1/social_insurances
HTTP Method | GET
Rate Limit | [10 per second](https://open.feishu.cn/document/ukTMukTMukTM/uUzN04SN3QjL1cDN)
Supported app types | Custom App
Required scopes<br>**To use this API, you must have at least 1 of the listed scopes.** | 获取社保公积金险种(corehr:compensation.insurance:read)

### Request header

Parameter | Type | Required | Description
---|---|---|---
Authorization | string | Yes | `tenant_access_token`<br>**Value format**: "Bearer `access_token`"<br>**Example value**: "Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>[How to choose and get access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use)

## Response

### Response body

Parameter | Type | Description
---|---|---
code | int | Error codes, fail if not zero
msg | string | Error descriptions
data | \- | \-
items | social_insurance\[\] | Insurance Detail
id | string | Insurance ID
name | i18n | 养老保险
zh_cn | string | Insurance Name
en_us | string | English Name
insurance_type | string | Insurance Type<br>**Optional values are**:<br>- social_insurance：Social Insurance<br>- provident_fund：Provident Fund
active | boolean | Active
is_system | boolean | Is System

### Response body example
```json
{
    "code": 0,
    "msg": "success",
    "data": {
        "items": [
            {
                "id": "i12345",
                "name": {
                    "zh_cn": "China Name",
                    "en_us": "english_name"
                },
                "insurance_type": "true",
                "active": true,
                "is_system": false
            }
        ]
    }
}
```

### Error code

HTTP status code | Error code | Description | Troubleshooting suggestions
---|---|---|---
500 | 2290001 | server error | server error
400 | 2290002 | param is invalid | param is invalid

