# Returns the List to Create a Report

## GET /Report/ToReport

> Rapor oluşturulacak listeyi getirir.

OpenAPI:

```json
{"openapi":"3.0.1","info":{"title":"E-Serbest Meslek Makbuzu API","version":"v1"},"servers":[{"url":"/evoucher"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"API anahtar� giriniz","scheme":"Bearer","bearerFormat":"JWT"}}},"paths":{"/Report/ToReport":{"get":{"tags":["Report"],"summary":"Rapor oluşturulacak listeyi getirir.","parameters":[{"name":"PageSize","in":"query","schema":{"type":"integer","format":"int32"}},{"name":"Page","in":"query","schema":{"type":"integer","format":"int32"}},{"name":"Search","in":"query","schema":{"type":"string"}},{"name":"PeriodYear","in":"query","schema":{"type":"string"}},{"name":"PeriodMonth","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Rapor oluşturulacak listeyi getirir.","content":{"application/json":{"schema":{"type":"object","properties":{"Page":{"type":"integer","format":"int32"},"PageSize":{"type":"integer","format":"int32"},"TotalCount":{"type":"integer","format":"int32","nullable":true},"TotalPages":{"type":"integer","format":"int32","nullable":true,"readOnly":true},"Content":{"type":"array","items":{"type":"object","properties":{"UUID":{"type":"string","nullable":true},"VoucherNumber":{"type":"string","nullable":true},"IssueDate":{"type":"string","format":"date-time"},"PayableAmount":{"type":"number","format":"double"},"CurrencyCode":{"type":"string","nullable":true},"ReceiverTaxNumber":{"type":"string","nullable":true},"ReceiverName":{"type":"string","nullable":true},"IsCancel":{"type":"boolean"},"SendType":{"enum":["KAGIT","ELEKTRONIK"],"type":"string"}},"additionalProperties":false},"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"},"404":{"description":"Parametrede belirtilen kayıt bulunamadığında dönülür | Detaylar için <a target=\"_blank\" href=\"https://developer.nilvera.com/hata-kodlari#notfound-404\">tıklayınız</a>"}}}}}}
```

{% tabs %}
{% tab title="C#" %}
```csharp
var client = new RestClient("https://apitest.nilvera.com/evoucher/Report/ToReport");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <API KEY>");
IRestResponse response = client.Execute(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/evoucher/Report/ToReport',
  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
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://apitest.nilvera.com/evoucher/Report/ToReport',
  headers: { 
    'Authorization': 'Bearer <API KEY>'
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
```
{% endtab %}
{% endtabs %}
