> 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/en/products/physical-pos/terminal-api-integration/vuk-507-services/end-of-day.md).

# End Of Day

This service performs the end-of-day (**batch close**) operation for the GMU device.

As a result of the operation, a summary report is returned based on the acquirer.

#### **Retrieve End of Day Report**

## POST /v2/terminal-host/gmu/eod

> Performs the end-of-day batch close operation for the GMU device. The financial day of the device is closed and an acquirer-based summary report is returned.<br>

```json
{"openapi":"3.0.3","info":{"title":"Terminal API - GMU Payment and Transaction Services","version":"1.0.0"},"tags":[{"name":"GMU Payment","description":"GMU sale and transaction services"}],"servers":[{"url":"https://sandbox-api.iyzipay.com","description":"Sandbox Environment"},{"url":"https://api.iyzipay.com","description":"Live Environment"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer Token authentication is performed using the access token."}},"parameters":{"ContentTypeHeader":{"name":"Content-Type","in":"header","required":true,"schema":{"type":"string"},"description":"Content type"}},"schemas":{"GmuEodRequest":{"type":"object","required":["deviceUniqueId"],"properties":{"locale":{"type":"string","description":"Language code. Default is TR"},"conversationId":{"type":"string","description":"Correlation ID"},"deviceUniqueId":{"type":"string","description":"Device unique ID. Maximum 64 characters"},"useSummary":{"type":"boolean","description":"Whether summary end-of-day should be used"}}},"GmuEodResponse":{"type":"object","properties":{"status":{"type":"string","description":"success or failure"},"errorCode":{"type":"string","description":"Error code"},"errorMessage":{"type":"string","description":"Error details"},"conversationId":{"type":"string","description":"Correlation ID"},"systemTime":{"type":"integer","description":"Timestamp"},"batchNo":{"type":"string","description":"Closed batch number"},"resultMessage":{"type":"string","description":"End-of-day result message"},"tails":{"type":"array","description":"Acquirer-based end-of-day summary information","items":{"$ref":"#/components/schemas/TailDto"}}}},"TailDto":{"type":"object","properties":{"acquirerId":{"type":"string","description":"Acquirer bank ID"},"terminalId":{"type":"string","description":"Terminal ID"},"bankMerchantId":{"type":"string","description":"Bank merchant number"},"totalTransactionAmount":{"type":"string","description":"Total transaction amount"},"totalTransactionCount":{"type":"string","description":"Total transaction count"},"acquirerName":{"type":"string","description":"Bank name"},"batchNo":{"type":"string","description":"Batch number"},"responseCode":{"type":"string","description":"Acquirer response code"},"internalErrorCode":{"type":"string","nullable":true,"description":"Internal error code if present"}}}}},"paths":{"/v2/terminal-host/gmu/eod":{"post":{"tags":["GMU Payment"],"description":"Performs the end-of-day batch close operation for the GMU device. The financial day of the device is closed and an acquirer-based summary report is returned.\n","parameters":[{"$ref":"#/components/parameters/ContentTypeHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GmuEodRequest"}}}},"responses":{"200":{"description":"Successful end-of-day result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GmuEodResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GmuEodResponse"}}}}}}}}}
```


---

# 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/en/products/physical-pos/terminal-api-integration/vuk-507-services/end-of-day.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.
