# Get the reason for terminating delivery

Gets the default  application termination reason in the system and the user-configured custom application termination reason.

## Request

Facts | &nbsp;
---|---
HTTP URL | https://open.feishu.cn/open-apis/hire/v1/termination_reasons
HTTP Method | GET
Rate Limit | [1000 per minute、50 per second](https://open.feishu.cn/document/ukTMukTMukTM/uUzN04SN3QjL1cDN)
Supported app types | Custom App、Store App
Required scopes<br>**To use this API, you must have at least 1 of the listed scopes.**<br>Enable any scope from the list | Obtain application information(hire:application:readonly)<br>Update application information (hire:application)

### 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)

### Query parameters

Parameter | Type | Required | Description
---|---|---|---
page_token | string | No | Page identifier. It is not filled in the first request, indicating traversal from the beginning; when there will be more groups, the new page_token will be returned at the same time, and the next traversal can use the page_token to get more groups<br>**Example value**: eyJvZmZzZXQiOjEwLCJ0aW1lc3RhbXAiOjE2Mjc1NTUyMjM2NzIsImlkIjpudWxsfQ==
page_size | int | No | Number of records to get per page, default 10<br>**Example value**: 10<br>**Data validation rules**:<br>- Maximum value: `200`

## Response

### Response body

Parameter | Type | Description
---|---|---
code | int | Error codes, fail if not zero
msg | string | Error descriptions
data | \- | \-
items | termination_reason\[\] | List
id | string | Reason for termination ID
name | i18n | Termination reason name
zh_cn | string | Chinese
en_us | string | English
referral_name | i18n | Referral channel display copy
zh_cn | string | Chinese
en_us | string | English
termination_type | int | Type of termination reason<br>**Optional values are**:<br>- 1：We rejected the candidate<br>- 22：The candidate rejected us<br>- 27：Other
is_used_as_evaluation | boolean | Is it used for evaluation
active_status | int | Status<br>**Optional values are**:<br>- 1：Enabled<br>- 2：Deactivated
has_more | boolean | Whether the response body has more parameters
page_token | string | Page identifier, when has_more is true, a new page_token will also be returned. Otherwise, page_token will not be returned

### Response body example
```json
{
    "code": 0,
    "msg": "success",
    "data": {
        "items": [
            {
                "id": "10002",
                "name": {
                    "zh_cn": "测试",
                    "en_us": "test"
                },
                "referral_name": {
                    "zh_cn": "测试",
                    "en_us": "test"
                },
                "termination_type": 22,
                "is_used_as_evaluation": false,
                "active_status": 1
            }
        ],
        "has_more": true,
        "page_token": "eyJvZmZzZXQiOjEwLCJ0aW1lc3RhbXAiOjE2Mjc1NTUyMjM2NzIsImlkIjpudWxsfQ=="
    }
}
```

### Error code

HTTP status code | Error code | Description | Troubleshooting suggestions
---|---|---|---
500 | 1002001 | System error | Please debug by error message or reach for [technical support](https://applink.feishu.cn/TLJpeNdW)
400 | 1002002 | Parameter illegal | Check that the imported parameter format is correct

