# İlgili Aydaki Defterlerin Statülerini Getirir

## GET /Gib/Status

> İlgili aydaki defterlerin statülerini döner.

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"E-Ledger API","version":"v1"},"servers":[{"url":"/eledger"}],"paths":{"/Gib/Status":{"get":{"tags":["Gib"],"summary":"İlgili aydaki defterlerin statülerini döner.","parameters":[{"name":"Year","in":"query","schema":{"type":"string"}},{"name":"Period","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"İlgili aydaki defterlerin statülerini döner.","content":{"text/plain":{"schema":{"type":"object","properties":{"FileName":{"type":"string","nullable":true},"StatusCode":{"type":"integer","format":"int32"},"StatusDetail":{"type":"string","nullable":true},"FileType":{"type":"string","nullable":true}},"additionalProperties":false}},"application/json":{"schema":{"type":"object","properties":{"FileName":{"type":"string","nullable":true},"StatusCode":{"type":"integer","format":"int32"},"StatusDetail":{"type":"string","nullable":true},"FileType":{"type":"string","nullable":true}},"additionalProperties":false}},"text/json":{"schema":{"type":"object","properties":{"FileName":{"type":"string","nullable":true},"StatusCode":{"type":"integer","format":"int32"},"StatusDetail":{"type":"string","nullable":true},"FileType":{"type":"string","nullable":true}},"additionalProperties":false}}}},"400":{"description":"Geçersiz İstek | Gönderdiğiniz istekte geçersiz veriler bulunduğu anlamında gelmektedir | Detaylar için <a target=\"_blank\" href=\"https://developer.nilvera.com/hata-kodlari#badrequest-400\">tıklayınız</a>"},"403":{"description":"Yetkisiz Erişim | Bu uca erişmek için gerekli yetkiye sahip olmadığınız durumda dönülür"}}}}},"components":{"securitySchemes":{"Bearer":{"type":"http","description":"API anahtar� giriniz","scheme":"Bearer","bearerFormat":"JWT"}}},"security":[{"Bearer":[]}]}
```

{% tabs %}
{% tab title="C#" %}
```csharp
var options = new RestClientOptions("https://apitest.nilvera.com")
{
  MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/eledger/Gib/Status?Year=2222&Period=22", Method.Get);
request.AddHeader("Authorization", "Bearer <API KEY>");
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);
```
{% endtab %}

{% tab title="PHP - cURL" %}
```php
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://apitest.nilvera.com/eledger/Gib/Status?Year=2222&Period=22',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer <API KEY>'
  ),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
```
{% endtab %}

{% tab title="NodeJs - Axios" %}
```javascript
const axios = require('axios');
let config = {
  method: 'get',
  maxBodyLength: Infinity,
  url: 'https://apitest.nilvera.com/eledger/Gib/Status?Year=2222&Period=22',
  headers: { 
    'Authorization': 'Bearer <API KEY>'
  }
};
axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});
```
{% endtab %}
{% endtabs %}
