> For the complete documentation index, see [llms.txt](https://docs.iyzico.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.iyzico.com/urunler/fiziki-pos/terminal-api-entegrasyonu/vuk-509-servisleri/gun-sonu-alma-servisi.md).

# Gün Sonu Alma Servisi

### Gün Sonu Alma

## POST /v2/terminal-host/eod

> Bu servis, terminal için gün sonu (EOD) işlemini çalıştırır ve toplamları döner.\
> Örnek: "Gün sonu alınıp totals/batchNo/resultMessage alanları üzerinden özet raporlanır."\
> \
> Authorization (Bearer Token):\
> \- Token değeri OAuth token servisinden dönen access\_token'dır.\
> \- Header formatı:\
> &#x20; Authorization: Bearer {access\_token}<br>

```json
{"openapi":"3.0.3","info":{"title":"Terminal API – Outside Flow","version":"1.0.3"},"tags":[{"name":"Terminal Host"}],"servers":[{"url":"https://api.iyzipay.com"},{"url":"https://sandbox-api.iyzipay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer Token ile yetkilendirme.\nHeader formatı:\nAuthorization: Bearer {access_token}\n\naccess_token, OAuth token servisinden üretilir ve Terminal Host servislerinde kullanılır.\n"}},"schemas":{"EndOfDayRequest":{"type":"object","required":["conversationId","locale","deviceUniqueId"],"properties":{"conversationId":{"type":"string","description":"İstek ve yanıt eşleşmesi yapılacak ID değeri. Üye işyeri tarafından belirlenir, istekte gönderilen bilgi yanıtta geri döner."},"locale":{"type":"string","description":"İstek dili.","enum":["tr","en"]},"deviceUniqueId":{"type":"string","description":"İşlemin gerçekleştirildiği terminal / cihaz için tanımlı benzersiz kimlik bilgisi."},"useSummary":{"type":"boolean","description":"true gönderildiği taktirde, alınan slip üzerinde işlem detayları gösterilir. false gönderilirse slip üzerinde tüm işlem detayları görüntülenmemektedir.","enum":["tr","en"]}}},"TerminalEodSuccessResponse":{"type":"object","properties":{"status":{"type":"string","description":"İşlem sonucu. (SUCCESS, FAILURE vb.)"},"errorCode":{"type":"string","description":"İşlem başarısız ise dönen hata kodu. Başarılı işlemlerde boş döner."},"errorMessage":{"type":"string","description":"Hata oluşması durumunda açıklayıcı hata mesajı."},"errorGroup":{"type":"string","description":"Hatanın ait olduğu grup / kategori bilgisi."},"locale":{"type":"string","description":"Yanıt dili","enum":["tr","en"]},"systemTime":{"type":"integer","format":"int64","description":"İşlemin iyzico sistemlerinde işlendiği zamanın Unix timestamp değeri."},"conversationId":{"type":"string","description":"İstek–cevap eşleştirmesi ve işlem takibi için üye işyeri tarafından gönderilen benzersiz değer."},"totals":{"type":"array","items":{"$ref":"#/components/schemas/TerminalEodTotalsItem"}},"batchNo":{"type":"string","description":"İşlemin dahil olduğu batch (günsonu) numarası."},"resultMessage":{"type":"string","description":"Sonuç Mesajı"}}},"TerminalEodTotalsItem":{"type":"object","properties":{"acquirerId":{"type":"string","description":"İşlemi gerçekleştiren banka (acquirer) kurum kimliği."},"terminalId":{"type":"string","description":"Terminal Numarası"},"bankMerchantId":{"type":"string","description":"Banka nezdinde terminal için tanımlı terminal numarası."},"totalTransactionAmount":{"type":"string","description":"İlgili batch kapsamında gerçekleşen başarılı işlemlerin toplam tutarı."},"totalTransactionCount":{"type":"string","description":"İlgili batch kapsamında gerçekleşen başarılı işlem adedi."},"acquirerName":{"type":"string","description":"İşlemi gerçekleştiren banka (acquirer) adı.\""},"batchNo":{"type":"string","description":"İşlemin dahil olduğu batch (günsonu) numarası."},"responseCode":{"type":"string","description":"Günsonu (EOD) işleminin banka/host tarafından dönen sonuç kodu. Genellikle 00 başarılı anlamına gelir."},"internalErrorCode":{"type":"string","description":"Günsonu işlemi sırasında iyzico iç sistemlerinde oluşan hata kodu. Sadece hata durumlarında dolu döner."}}},"TerminalFailureResponse":{"type":"object","properties":{"status":{"type":"string","description":"İşlem sonucu. (SUCCESS, FAILURE vb.)"},"errorCode":{"type":"string","description":"İşlem başarısız ise dönen hata kodu. Başarılı işlemlerde boş döner."},"errorMessage":{"type":"string","description":"Hata oluşması durumunda açıklayıcı hata mesajı."},"errorGroup":{"type":"string","description":"Hatanın ait olduğu grup / kategori bilgisi."},"systemTime":{"type":"integer","format":"int64","description":"İşlemin iyzico sistemlerinde işlendiği zamanın Unix timestamp değeri."},"consumerErrorMessage":{"type":"string","description":"Son kullanıcıya gösterilmek üzere üretilmiş, teknik detay içermeyen hata mesajı."}}}}},"paths":{"/v2/terminal-host/eod":{"post":{"tags":["Terminal Host"],"description":"Bu servis, terminal için gün sonu (EOD) işlemini çalıştırır ve toplamları döner.\nÖrnek: \"Gün sonu alınıp totals/batchNo/resultMessage alanları üzerinden özet raporlanır.\"\n\nAuthorization (Bearer Token):\n- Token değeri OAuth token servisinden dönen access_token'dır.\n- Header formatı:\n  Authorization: Bearer {access_token}\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndOfDayRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerminalEodSuccessResponse"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerminalFailureResponse"}}}}}}}}}
```

### Örnek Collection

<table data-view="cards"><thead><tr><th></th></tr></thead><tbody><tr><td><a href="https://www.postman.com/iyzico/iyzico/request/47010871-94d14bfe-2213-4021-8143-60a7a4d37d89">Postman</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.iyzico.com/urunler/fiziki-pos/terminal-api-entegrasyonu/vuk-509-servisleri/gun-sonu-alma-servisi.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
