# API Cek Pensiun

### **Version : 1.0**

<p class="callout info">**Endpoint** `:<a href="https://webservice.mahkamahagung.go.id/api-sikep-mainnet/">https://webservice.mahkamahagung.go.id/api-sikep-mainnet/cekPensiun/</a><strong>{parameter}</strong>`</p>

<table border="1" id="bkmrk-method-post" style="border-collapse: collapse; width: 99.3827%; border: 1px solid rgb(0, 0, 0);"><colgroup><col style="width: 14.0915%;"></col><col style="width: 85.9085%;"></col></colgroup><tbody><tr><td style="border-width: 1px; border-color: rgb(0, 0, 0);">**Method**</td><td style="border-width: 1px; border-color: rgb(0, 0, 0);">`POST`</td></tr></tbody></table>

<table border="1" id="bkmrk-headers%C2%A0-token-your-" style="border-collapse: collapse; width: 99.6296%; border: 1px solid rgb(0, 0, 0); height: 89.3907px;"><colgroup><col style="width: 14.5161%;"></col><col style="width: 85.4849%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td colspan="2" style="border-width: 1px; border-color: rgb(0, 0, 0); height: 29.7969px;">**Headers** </td></tr><tr style="height: 29.7969px;"><td style="border-width: 1px; border-color: rgb(0, 0, 0); height: 29.7969px;">`token`</td><td style="border-width: 1px; border-color: rgb(0, 0, 0); height: 29.7969px;">*your token (will be generated further)*</td></tr><tr style="height: 29.7969px;"><td style="border-width: 1px; border-color: rgb(0, 0, 0); height: 29.7969px;">`names`</td><td style="border-width: 1px; border-color: rgb(0, 0, 0); height: 29.7969px;">*your username (will be generated further)*</td></tr></tbody></table>

<table border="1" id="bkmrk-parameters-nama-or-j" style="border-collapse: collapse; width: 99.7531%; border: 1px solid rgb(0, 0, 0);"><colgroup><col style="width: 14.5859%;"></col><col style="width: 85.4141%;"></col></colgroup><tbody><tr><td style="border-width: 1px; border-color: rgb(0, 0, 0);">**Parameters**</td><td style="border-width: 1px; border-color: rgb(0, 0, 0);">`NIP`  
</td></tr></tbody></table>

<p class="callout success">**Response** : `<span style="color: rgb(22, 145, 121);">Success (200)</span>`</p>

```json
{
    "status": "true",
    "data": {
        "IdPegawai": 3233,
        "NIK": "1234567891234567",
        "NIPBaru": "123456789012",
        "NamaLengkap": "Im Yoon A",
        "TanggalNonAktif": "2023-02-01",
        "StatusPegawai": 4
    }
}
```

<p class="callout success">**Response :** `<span style="color: rgb(22, 145, 121);">Success (data not found) (200)</span>`</p>

```json
{
    "status": "false",
    "data": null
}
```

<p class="callout danger">**Response :** `<span style="color: rgb(186, 55, 42);">Error (500)</span>`</p>

```json
{
    "status": "please check your params and method again"
}
```

***NOTE: TO ACCESS ALL APIs, YOUR IP ADDRESS (PUBLIC) MUST BE REGISTERED/WHITELISTED IN OUR SIDE***